CVE-2025-38449 Information
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]
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
Reference
https://git.kernel.org/stable/c/08480e285c6a82ce689008d643e4a51db0aaef8b https://git.kernel.org/stable/c/3cf520d9860d4ec9f7f32068825da31f18dd3f25 https://git.kernel.org/stable/c/5307dce878d4126e1b375587318955bd019c3741 https://git.kernel.org/stable/c/cb4c956a15f8b7f870649454771fc3761f504b5f
Related CNNVD
CNNVD-202507-3300 (Published: 2025-07-25)
Share on: