CVE-2023-53181

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

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:04 PM UTC
Updated: June 17, 2026 at 06:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.16 ≤ v < 6.1.425.16 ≤ v < 6.4.75.16 ≤ v < 6.56.2 ≤ v < 6.4.75.166.5 rc16.5 rc2d3c80698c9f58a0683badf78793eebaa0c71afbd
Vendor states this is fixed in 05abb3be91d8788328231ee02973ab3d47f5e3d2 (fixed)
Vendor states this is fixed in 19e7b9f1f7e1cb92a4cc53b4c064f7fb4b1f1983 (fixed)
Vendor states this is fixed in 819656cc03dec7f7f7800274dfbc8eb49f888e9f (fixed)
Vendor states this is fixed in 5.16 (unaffected)
Vendor states this is fixed in 6.1.42 (unaffected)
Vendor states this is fixed in 6.4.7 (unaffected)
Vendor states this is fixed in 6.5 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/05abb3be91d8788328231ee02973ab3d47f5e3d2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/19e7b9f1f7e1cb92a4cc53b4c064f7fb4b1f1983
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/819656cc03dec7f7f7800274dfbc8eb49f888e9f

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card