CVE-2026-99773: drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

drm/drmcrtc: ensure dmafenceops remain valid during device unbind

In [1], sashiko reported the following issue:

=== snip === Looking at how these fences are managed, drmcrtccreatefence() creates a dmafence without taking a reference to the drmdevice or drmcrtc. Because the syncfile framework exposes this fence to userspace, the fence can outlive the CRTC.

The dmafence contract requires that data accessed by dmafenceops (like getdrivername) must remain valid for an RCU grace period after the fence is signaled. However, drmcrtccleanup() and the subsequent freeing of the device do not wait for an RCU grace period via synchronizercu().

If userspace calls ioctl(SYNCIOCFILEINFO) concurrently with a device hot-unplug:

CPU1 (Userspace) syncfilegetname() ops = rcudereference(fence->ops); if (!dmafencetestsignaledflag()) // 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->getdrivername(fence) -> drmcrtcfencegetdrivername() crtc = fencetocrtc(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 getdrivername() and gettimelinename() 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 drmcrtc, so that getdrivername() and gettimelinename() can still work.

Affected Software

3 affected componentsFixes available
linux/kernel>=4.10.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Compensating control

    Wait for an RCU grace period (for example, with synchronize_rcu()) before proceeding with drm_crtc destruction during device unbind, so dma_fence_ops callbacks cannot access a freed CRTC.

Frequently Asked Questions

1

Who is exposed to this issue?

Systems using the Linux kernel DRM subsystem may be exposed when a DRM device can be hot-unplugged while userspace holds or queries a sync_file-backed CRTC fence.

2

What attacker or user action is needed to trigger it?

A userspace process must invoke SYNC_IOC_FILE_INFO on an exposed fence concurrently with DRM device hot-unplug and teardown. The race can cause fence operations to access a CRTC after it has been freed.

3

Is this limited to a particular driver or default configuration?

The available information identifies the DRM CRTC fence handling path in the Linux kernel, but does not identify a specific driver, configuration, or default exposure condition.

4

How can I tell whether a system is affected?

The supplied data does not provide affected version ranges or runtime indicators. Review the referenced stable-kernel commits to determine whether the relevant fixes are present in the running kernel source or package.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203