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-2026-99773

published high CVSS 3.1 · 7.8

drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind

Published
20 Nov 2026, 05:51:37 UTC
Updated
23 Nov 2026, 08:07:17 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 6b046b7132b194c73078d237e4220497516011dd · 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 54c350d71a158f005c4613f32f1b0a57777d0a2a · 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 1b0bfef4e31f3c02ed54de519b15b840d5dad804 · 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < d07a8465cd50a78d55b745ed002d5accf4a6d0a6 · 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < dd9a96b2271e28340acf2e3764914fe5f32f6102 · 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 07b2d7a3f2b984c20f5f2630a94f43ede387a8dc · 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < f8e6f4deb868fd9da3eda95db222609ab1edc18d · 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 3be436cbd3d265fe4fcfbb5b650edad7b2108443 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.10 (affected) · 0 to < 4.10 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment
Debian trixie linux Advisory build 6.12.118-1 DSA-6652-1

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

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 - Local DRM_IOCTL_MODE_ATOMIC (drm_mode_atomic_ioctl -> prepare_signaling -> drm_crtc_create_fence) publishes the fence, and local SYNC_IOC_FILE_INFO uses it while drm_crtc_cleanup runs from drm_mode_config_cleanup on USBDEVFS_DISCONNECT or driver unbind. No network message supplies the bug; the missing synchronize_rcu() is in drm_crtc_cleanup. AC:L - A local DRM master creates the out-fence, then proc_ioctl(USBDEVFS_DISCONNECT) runs udl_usb_disconnect, gud_disconnect, or appletbdrm_disconnect. The last drm_release drops the drm_device ref so drm_mode_config_cleanup calls drm_crtc_cleanup. SYNC_IOC_FILE_INFO then runs; dma_fence_get_status locks the freed crtc->fence_lock with no condition the attacker cannot set up. PR:L - drm_master_open grants DRM_MASTER to the first opener of the DRM node with no CAP_SYS_ADMIN check, and drm_setclientcap enables atomic for that fd. USBDEVFS_DISCONNECT in proc_ioctl unbinds udl/gud/appletbdrm with no capable() check, and those USB device nodes are mode 0664, so a session user can tear the device down without init-namespace root. UI:N - The same local process opens the device, posts the atomic commit that returns the sync_file, disconnects the USB interface, closes the DRM fd, and calls SYNC_IOC_FILE_INFO. No other user has to mount media or accept a prompt. S:U - drm_crtc_fence_get_driver_name and dma_fence_get_status corrupt kernel memory of the host that owns the CRTC. This is not a KVM guest-to-host escape or an IOMMU boundary crossing. C:H - udl_usb_disconnect never signals the out-fence, so SYNC_IOC_FILE_INFO still calls drm_crtc_fence_get_driver_name and drm_crtc_fence_get_timeline_name. Those container_of fence->extern_lock back to the freed drm_crtc and return crtc->dev->driver->name and crtc->timeline_name into the ioctl buffer; reclaiming the slab turns that into a kernel string read. I:H - drm_crtc_create_fence stores &crtc->fence_lock as the dma-fence external lock. sync_file_ioctl_fence_info always calls dma_fence_get_status, which spin_lock()s that lock even after the fence is signaled. After drm_crtc_cleanup memsets the CRTC and the device is kfreed, that spin_lock writes reclaimed kernel memory. A:H - SYNC_IOC_FILE_INFO either NULL-dereferences crtc->dev after drm_crtc_cleanup's memset or spin_lock()s the freed crtc->fence_lock. Both fault in kernel context and oops the machine. The missing synchronize_rcu() in drm_crtc_cleanup is what lets the ioctl run against a CRTC that is already gone.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 6b046b7132b194c73078d237e4220497516011dd (affected · git)6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 54c350d71a158f005c4613f32f1b0a57777d0a2a (affected · git)6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 1b0bfef4e31f3c02ed54de519b15b840d5dad804 (affected · git)6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < d07a8465cd50a78d55b745ed002d5accf4a6d0a6 (affected · git)6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < dd9a96b2271e28340acf2e3764914fe5f32f6102 (affected · git)6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 07b2d7a3f2b984c20f5f2630a94f43ede387a8dc (affected · git)6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < f8e6f4deb868fd9da3eda95db222609ab1edc18d (affected · git)6d6003c4b613c93973e4e870d83f4bed2ad9ac34 to < 3be436cbd3d265fe4fcfbb5b650edad7b2108443 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.10 (affected)0 to < 4.10 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind

Provenance

Schema
5.2
Searchable
yes
Content hash
990f5f54c5bd45031b336f18685c16184ed8db3a09b5aba59fa9996cfb4e168d
Ingested
23 Nov 2026, 14:37:13 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