Skip to main content
Network Thinking Solutions Logo

CVE-2023-53181

Linux kernel: dma-buf/dma-resv: Stop leaking on krealloc() failure

All CVEs
CVE-2023-53181Published 9/15/2025

Linux kernel: dma-buf/dma-resv: Stop leaking on krealloc() failure

Vendor advisory
CVSS5.5Medium

Overview

In the Linux kernel, the following vulnerability has been resolved: dma-buf/dma-resv: Stop leaking on krealloc() failure Currently dma_resv_get_fences() will leak the previously allocated array if the fence iteration got restarted and the krealloc_array() fails. Free the old array by hand, and make sure we still clear the returned *fences so the caller won't end up accessing freed memory. Some (but not all) of the callers of dma_resv_get_fences() seem to still trawl through the array even when dma_resv_get_fences() failed. And let's zero out *num_fences as well for good measure.

Published
9/15/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.16, < 6.1.42

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.4.7

Verify advisory

Source
linux kernel
linux
6.5

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ d3c80698c9f58a0683badf78793eebaa0c71afbd, < 19e7b9f1f7e1cb92a4cc53b4c064f7fb4b1f1983

Verify advisory

Source
Linux
Linux
≥ d3c80698c9f58a0683badf78793eebaa0c71afbd, < 819656cc03dec7f7f7800274dfbc8eb49f888e9f

Verify advisory

Source
Linux
Linux
≥ d3c80698c9f58a0683badf78793eebaa0c71afbd, < 05abb3be91d8788328231ee02973ab3d47f5e3d2

Verify advisory

Source
Linux
Linux
5.16

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.