← VULNERABILITIES

CVE-2026-99773

drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind

High · 7.8Fix available
CVSS
7.8
EPSS
0.15% (p5)
Published
2026-11-20
Age
14d old
Modified
2026-11-23
Product
Linux Linux

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

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.

Fixed in

07b2d7a3f2b984c20f5f2630a94f43ede387a8dc · 1b0bfef4e31f3c02ed54de519b15b840d5dad804 · 3be436cbd3d265fe4fcfbb5b650edad7b2108443 · 5.10.275 · 5.15.226 · 54c350d71a158f005c4613f32f1b0a57777d0a2a · 6.1.193 · 6.12.118 · 6.18.64 · 6.6.163 · 6b046b7132b194c73078d237e4220497516011dd · 7.3.5 · d07a8465cd50a78d55b745ed002d5accf4a6d0a6 · dd9a96b2271e28340acf2e3764914fe5f32f6102 · f8e6f4deb868fd9da3eda95db222609ab1edc18d

Affected packages

EcosystemPackageRangeFixed
LinuxKernel>=4.10.0, <5.10.2755.10.275
LinuxKernel>=4.10.0, <6.12.1186.12.118
LinuxKernel>=5.11.0, <5.15.2265.15.226
LinuxKernel>=5.16.0, <6.1.1936.1.193
LinuxKernel>=6.13.0, <6.18.646.18.64
LinuxKernel>=6.19.0, <7.3.57.3.5
LinuxKernel>=6.2.0, <6.6.1636.6.163
LinuxKernel>=6.7.0, <6.12.1186.12.118
vendorLinux>=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <07b2d7a3f2b984c20f5f2630a94f43ede387a8dc07b2d7a3f2b984c20f5f2630a94f43ede387a8dc
vendorLinux>=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <1b0bfef4e31f3c02ed54de519b15b840d5dad8041b0bfef4e31f3c02ed54de519b15b840d5dad804
vendorLinux>=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <3be436cbd3d265fe4fcfbb5b650edad7b21084433be436cbd3d265fe4fcfbb5b650edad7b2108443
vendorLinux>=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <54c350d71a158f005c4613f32f1b0a57777d0a2a54c350d71a158f005c4613f32f1b0a57777d0a2a
vendorLinux>=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <6b046b7132b194c73078d237e4220497516011dd6b046b7132b194c73078d237e4220497516011dd
vendorLinux>=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <d07a8465cd50a78d55b745ed002d5accf4a6d0a6d07a8465cd50a78d55b745ed002d5accf4a6d0a6
vendorLinux>=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <dd9a96b2271e28340acf2e3764914fe5f32f6102dd9a96b2271e28340acf2e3764914fe5f32f6102
vendorLinux>=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <f8e6f4deb868fd9da3eda95db222609ab1edc18df8e6f4deb868fd9da3eda95db222609ab1edc18d

Sources

  • NVD · first seen 14d ago · NVD terms of use
  • OSV · first seen 11d ago · CC-BY 4.0
  • CVE List · first seen 14d ago · CVE Terms of Use

References

JSON