CVE-2023-53181

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

published September 15, 2025

CVSS
—
EPSS
0%
Percentile
4.5
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00157 · 4.5th percentile
Published
2025-09-15T14:04Z
EPSS history
Timeline
  • 15 SEP 14:04Z
    dma-buf/dma-resv: Stop leaking on krealloc() failure
    cvelistv5