PT-2026-152652
CVE-2026-99773
·
تاريخ النشر
2026-11-20
·
تاريخ التحديث
2026-11-20
الوصف من
CVSS 3.1
7.8
عاليةالمقاييسAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
In the Linux kernel, the following vulnerability has been resolved:
drm/drm crtc: ensure dma fence ops remain valid during device unbind
In [1], sashiko reported the following issue:
=== snip ===
Looking at how these fences are managed, drm crtc create fence()
creates a dma fence without taking a reference to the drm device or
drm crtc. Because the sync file framework exposes this fence to
userspace, the fence can outlive the CRTC.
The dma fence contract requires that data accessed by dma fence ops
(like get driver name) must remain valid for an RCU grace period after
the fence is signaled. However, drm crtc cleanup() and the subsequent
freeing of the device do not wait for an RCU grace period via
synchronize rcu().
If userspace calls ioctl(SYNC IOC FILE INFO) concurrently with a device
hot-unplug:
CPU1 (Userspace)
sync file get name()
ops = rcu dereference(fence->ops);
if (!dma fence test signaled flag())
// Preempted or delayed here
CPU2 (Driver Teardown)
Signals the fence (setting fence->ops = NULL)
Destroys and frees the CRTC without waiting for an RCU grace period
CPU1 (Resumes)
ops->get driver name(fence) -> drm crtc fence get driver name()
crtc = fence to crtc(fence); // Casts to the freed CRTC
return crtc->dev->driver->name; // Use-after-free
...
Does the CRTC or DRM device need to be kept alive for the RCU grace
period, or should the fence hold a proper reference to prevent the
use-after-free when get driver name() and get timeline name() access
the freed CRTC structure?
=== snap ===
I believe this to be a correct observation and this patch implements
the suggestion of waiting for an RCU grace period before proceeding
with destruction of the drm crtc, so that get driver name() and
get timeline name() can still work.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾