Use-after-free in Linux kernel DRM/GEM framebuffer handling
CVE-2025-38449 is a reference-counting vulnerability in the Linux kernel DRM/GEM subsystem. A GEM handle can be released while its GEM buffer object remains attached to a DRM framebuffer, prematurely releasing the backing dma-buf. Subsequent modesetting or page-flip operations can access the released backing object and trigger a kernel segmentation fault, including in dma_buf_vmap(). Drivers using shadow planes to map dma-bufs during page flips are particularly susceptible. The underlying lifetime-management flaw predates changes that expanded use of the GEM object's dma-buf field.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A local low-privileged user with sufficient access to the graphics subsystem can trigger a kernel fault, causing denial of service and potentially disrupting the entire system. Kernel crashes are the established consequence; reliable privilege escalation, arbitrary code execution, or information disclosure is not established.
If you can’t patch tonight, do this now.
Where graphics functionality is unnecessary, prevent the drm kernel module from loading. This mitigation can disable graphics functionality and is not applicable when DRM is built into the kernel. Restrict untrusted local users' access to DRM graphics devices and modesetting interfaces until the kernel can be updated.
Patch, then assume compromise.
Install a vendor-supported kernel update containing the DRM/GEM framebuffer reference-management fix and reboot into the updated kernel. Upstream fixed releases include 6.6.99, 6.12.39, 6.15.7, and 6.16-rc5; prefer a current supported stable release rather than individually cherry-picking fixes. The fix retains GEM-handle references for the framebuffer's GEM buffer objects and releases those references during framebuffer cleanup. Distribution kernels may contain backported fixes despite having older version numbers.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
25 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.