Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38449

published high CVSS 3.1 · 7.8

drm/gem: Acquire references on GEM handles for framebuffers

Published
25 Jul 2025, 15:27:30 UTC
Updated
15 Oct 2026, 21:52:16 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux319c933c71f3dbdb2b3274d1634d3494c70efa06 to < cb4c956a15f8b7f870649454771fc3761f504b5f · 319c933c71f3dbdb2b3274d1634d3494c70efa06 to < 08480e285c6a82ce689008d643e4a51db0aaef8b · 319c933c71f3dbdb2b3274d1634d3494c70efa06 to < 3cf520d9860d4ec9f7f32068825da31f18dd3f25 · 319c933c71f3dbdb2b3274d1634d3494c70efa06 to < 5307dce878d4126e1b375587318955bd019c3741 · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.12 (affected) · 0 to < 3.12 (unaffected · semver) · 6.6.99 through 6.6.* (unaffected · semver) · 6.12.39 through 6.12.* (unaffected · semver) · 6.15.7 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1145 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-55.31.1.el10_0 ALSA-2025:15447
AlmaLinux 10 kernel-doc Advisory build 6.12.0-55.31.1.el10_0 ALSA-2025:15447
AlmaLinux 8 bpftool Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 kernel Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.75.1.rt7.416.el8_10 ALSA-2025:15786
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 perf Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.75.1.el8_10 ALSA-2025:15785
AlmaLinux 9 kernel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-debug Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-devel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-doc Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-headers Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-modules Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-debug-kvm Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-kvm Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-tools Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-570.42.2.el9_6 ALSA-2025:15661

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: drm/gem: Acquire references on GEM handles for framebuffers A GEM handle can be released while the GEM buffer object is attached to a DRM framebuffer. This leads to the release of the dma-buf backing the buffer object, if any. [1] Trying to use the framebuffer in further mode-setting operations leads to a segmentation fault. Most easily happens with driver that use shadow planes for vmap-ing the dma-buf during a page flip. An example is shown below. [ 156.791968] ------------[ cut here ]------------ [ 156.796830] WARNING: CPU: 2 PID: 2255 at drivers/dma-buf/dma-buf.c:1527 dma_buf_vmap+0x224/0x430 [...] [ 156.942028] RIP: 0010:dma_buf_vmap+0x224/0x430 [ 157.043420] Call Trace: [ 157.045898] <TASK> [ 157.048030] ? show_trace_log_lvl+0x1af/0x2c0 [ 157.052436] ? show_trace_log_lvl+0x1af/0x2c0 [ 157.056836] ? show_trace_log_lvl+0x1af/0x2c0 [ 157.061253] ? drm_gem_shmem_vmap+0x74/0x710 [ 157.065567] ? dma_buf_vmap+0x224/0x430 [ 157.069446] ? __warn.cold+0x58/0xe4 [ 157.073061] ? dma_buf_vmap+0x224/0x430 [ 157.077111] ? report_bug+0x1dd/0x390 [ 157.080842] ? handle_bug+0x5e/0xa0 [ 157.084389] ? exc_invalid_op+0x14/0x50 [ 157.088291] ? asm_exc_invalid_op+0x16/0x20 [ 157.092548] ? dma_buf_vmap+0x224/0x430 [ 157.096663] ? dma_resv_get_singleton+0x6d/0x230 [ 157.101341] ? __pfx_dma_buf_vmap+0x10/0x10 [ 157.105588] ? __pfx_dma_resv_get_singleton+0x10/0x10 [ 157.110697] drm_gem_shmem_vmap+0x74/0x710 [ 157.114866] drm_gem_vmap+0xa9/0x1b0 [ 157.118763] drm_gem_vmap_unlocked+0x46/0xa0 [ 157.123086] drm_gem_fb_vmap+0xab/0x300 [ 157.126979] drm_atomic_helper_prepare_planes.part.0+0x487/0xb10 [ 157.133032] ? lockdep_init_map_type+0x19d/0x880 [ 157.137701] drm_atomic_helper_commit+0x13d/0x2e0 [ 157.142671] ? drm_atomic_nonblocking_commit+0xa0/0x180 [ 157.147988] drm_mode_atomic_ioctl+0x766/0xe40 [...] [ 157.346424] ---[ end trace 0000000000000000 ]--- Acquiring GEM handles for the framebuffer's GEM buffer objects prevents this from happening. The framebuffer's cleanup later puts the handle references. Commit 1a148af06000 ("drm/gem-shmem: Use dma_buf from GEM object instance") triggers the segmentation fault easily by using the dma-buf field more widely. The underlying issue with reference counting has been present before. v2: - acquire the handle instead of the BO (Christian) - fix comment style (Christian) - drop the Fixes tag (Christian) - rename err_ gotos - add missing Link tag

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

63

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is triggered purely through DRM ioctls (PRIME_FD_TO_HANDLE, ADDFB2, GEM_CLOSE, MODE_ATOMIC/PAGE_FLIP) on a local device node /dev/dri/card*. There is no network or remote-peer data path into drm_gem_fb_init_with_funcs() or drm_gem_object_handle_put_unlocked(). AC:L - The attacker performs the entire sequence themselves — import a dma-buf, create a framebuffer, close the GEM handle, then commit the framebuffer — and the resulting release of the still-referenced dma-buf is deterministic, with no race or memory-layout condition outside the attacker's control. Where a window is involved (begin_fb_access in prepare_planes vs. end_fb_access in cleanup_planes), the attacker drives both sides from their own threads. PR:L - Only an unprivileged local account with access to a DRM primary node is needed (video group, active-seat ACL, Android graphics group); ADDFB2/RMFB/GEM_CLOSE require no master or auth flags at all. DRM master, needed for the atomic commit, is handed out by drm_master_open() to the first opener of the node with no capability check, and is also available via DRM leases — no real root is required. UI:N - A single attacker-controlled process performs every step — buffer import, framebuffer creation, handle close, and the mode-setting commit. No victim action or cooperating process is involved. S:U - The premature release and subsequent misuse of the GEM object's dma-buf occur entirely within the kernel's own security authority on the same host. No VM, IOMMU, or sandbox boundary is crossed. C:H - This is a reference-counting/lifetime defect that releases the dma-buf backing a framebuffer that remains live and in active use by plane state, the scanout engine and shadow-plane kernel mappings — a use-after-free-class flaw. Such premature release of a GEM/dma-buf backing store, with attacker-controlled heap grooming via DUMB_CREATE and repeated import/close cycles, is leverageable into disclosure of reallocated kernel memory contents. I:H - The same missing handle reference lets the kernel continue writing through stale framebuffer state (shadow-plane blits, damage handling) into storage whose backing reference has been dropped, and the unguarded dma_buf_end_cpu_access() path performs an indirect call through dmabuf->ops on a released/invalid dma_buf. This gives a memory-corruption and control-flow primitive rather than a benign failure. A:H - The documented result is a WARNING splat in dma_buf_vmap() (a panic on the widely deployed panic_on_warn configurations) and a kernel oops — dma_buf_end_cpu_access() only does WARN_ON(!dmabuf) without returning and then dereferences dmabuf->resv and dmabuf->ops. Any local user with DRM access can trigger this repeatedly to crash the machine.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 319c933c71f3dbdb2b3274d1634d3494c70efa06 to < cb4c956a15f8b7f870649454771fc3761f504b5f (affected · git)319c933c71f3dbdb2b3274d1634d3494c70efa06 to < 08480e285c6a82ce689008d643e4a51db0aaef8b (affected · git)319c933c71f3dbdb2b3274d1634d3494c70efa06 to < 3cf520d9860d4ec9f7f32068825da31f18dd3f25 (affected · git)319c933c71f3dbdb2b3274d1634d3494c70efa06 to < 5307dce878d4126e1b375587318955bd019c3741 (affected · git)Default: unaffected Linux · cna
Linux Linux 3.12 (affected)0 to < 3.12 (unaffected · semver)6.6.99 through 6.6.* (unaffected · semver)6.12.39 through 6.12.* (unaffected · semver)6.15.7 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

2

Linux · cna

drm/gem: Acquire references on GEM handles for framebuffers

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
e42573594abb1e40664b36b5033a0f3dd93e811947fdaab30cd5ac890b6405f1
Ingested
15 Oct 2026, 23:26:24 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected