{"id":"CVE-2026-99773","aliases":[],"title":"drm/drm_crtc: ensure dma_fence_ops remain valid during device unbind","originalDescription":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/drm_crtc: ensure dma_fence_ops remain valid during device unbind\n\nIn [1], sashiko reported the following issue:\n\n=== snip ===\nLooking at how these fences are managed, drm_crtc_create_fence()\ncreates a dma_fence without taking a reference to the drm_device or\ndrm_crtc. Because the sync_file framework exposes this fence to\nuserspace, the fence can outlive the CRTC.\n\nThe dma_fence contract requires that data accessed by dma_fence_ops\n(like get_driver_name) must remain valid for an RCU grace period after\nthe fence is signaled. However, drm_crtc_cleanup() and the subsequent\nfreeing of the device do not wait for an RCU grace period via\nsynchronize_rcu().\n\nIf userspace calls ioctl(SYNC_IOC_FILE_INFO) concurrently with a device\nhot-unplug:\n\nCPU1 (Userspace)\nsync_file_get_name()\n  ops = rcu_dereference(fence->ops);\n  if (!dma_fence_test_signaled_flag())\n    // Preempted or delayed here\n\nCPU2 (Driver Teardown)\nSignals the fence (setting fence->ops = NULL)\nDestroys and frees the CRTC without waiting for an RCU grace period\n\nCPU1 (Resumes)\n  ops->get_driver_name(fence) -> drm_crtc_fence_get_driver_name()\n  crtc = fence_to_crtc(fence); // Casts to the freed CRTC\n  return crtc->dev->driver->name; // Use-after-free\n\n...\n\nDoes the CRTC or DRM device need to be kept alive for the RCU grace\nperiod, or should the fence hold a proper reference to prevent the\nuse-after-free when get_driver_name() and get_timeline_name() access\nthe freed CRTC structure?\n=== snap ===\n\nI believe this to be a correct observation and this patch implements\nthe suggestion of waiting for an RCU grace period before proceeding\nwith destruction of the drm_crtc, so that get_driver_name() and\nget_timeline_name() can still work.","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00152,"percentile":0.04583},"exploitDb":null},"affected":[{"ecosystem":"Linux","name":"Kernel","range":">=4.10.0, <5.10.275","fixed":"5.10.275"},{"ecosystem":"Linux","name":"Kernel","range":">=4.10.0, <6.12.118","fixed":"6.12.118"},{"ecosystem":"Linux","name":"Kernel","range":">=5.11.0, <5.15.226","fixed":"5.15.226"},{"ecosystem":"Linux","name":"Kernel","range":">=5.16.0, <6.1.193","fixed":"6.1.193"},{"ecosystem":"Linux","name":"Kernel","range":">=6.13.0, <6.18.64","fixed":"6.18.64"},{"ecosystem":"Linux","name":"Kernel","range":">=6.19.0, <7.3.5","fixed":"7.3.5"},{"ecosystem":"Linux","name":"Kernel","range":">=6.2.0, <6.6.163","fixed":"6.6.163"},{"ecosystem":"Linux","name":"Kernel","range":">=6.7.0, <6.12.118","fixed":"6.12.118"},{"ecosystem":"vendor","name":"Linux","range":">=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <07b2d7a3f2b984c20f5f2630a94f43ede387a8dc","fixed":"07b2d7a3f2b984c20f5f2630a94f43ede387a8dc"},{"ecosystem":"vendor","name":"Linux","range":">=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <1b0bfef4e31f3c02ed54de519b15b840d5dad804","fixed":"1b0bfef4e31f3c02ed54de519b15b840d5dad804"},{"ecosystem":"vendor","name":"Linux","range":">=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <3be436cbd3d265fe4fcfbb5b650edad7b2108443","fixed":"3be436cbd3d265fe4fcfbb5b650edad7b2108443"},{"ecosystem":"vendor","name":"Linux","range":">=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <54c350d71a158f005c4613f32f1b0a57777d0a2a","fixed":"54c350d71a158f005c4613f32f1b0a57777d0a2a"},{"ecosystem":"vendor","name":"Linux","range":">=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <6b046b7132b194c73078d237e4220497516011dd","fixed":"6b046b7132b194c73078d237e4220497516011dd"},{"ecosystem":"vendor","name":"Linux","range":">=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <d07a8465cd50a78d55b745ed002d5accf4a6d0a6","fixed":"d07a8465cd50a78d55b745ed002d5accf4a6d0a6"},{"ecosystem":"vendor","name":"Linux","range":">=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <dd9a96b2271e28340acf2e3764914fe5f32f6102","fixed":"dd9a96b2271e28340acf2e3764914fe5f32f6102"},{"ecosystem":"vendor","name":"Linux","range":">=6d6003c4b613c93973e4e870d83f4bed2ad9ac34, <f8e6f4deb868fd9da3eda95db222609ab1edc18d","fixed":"f8e6f4deb868fd9da3eda95db222609ab1edc18d"}],"references":[{"url":"https://git.kernel.org/stable/c/dd9a96b2271e28340acf2e3764914fe5f32f6102","type":"other"},{"url":"https://git.kernel.org/stable/c/07b2d7a3f2b984c20f5f2630a94f43ede387a8dc","type":"other"},{"url":"https://git.kernel.org/stable/c/f8e6f4deb868fd9da3eda95db222609ab1edc18d","type":"other"},{"url":"https://git.kernel.org/stable/c/3be436cbd3d265fe4fcfbb5b650edad7b2108443","type":"other"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99773.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99773","type":"advisory"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","type":"package"},{"url":"https://git.kernel.org/stable/c/6b046b7132b194c73078d237e4220497516011dd","type":"other"},{"url":"https://git.kernel.org/stable/c/54c350d71a158f005c4613f32f1b0a57777d0a2a","type":"other"},{"url":"https://git.kernel.org/stable/c/1b0bfef4e31f3c02ed54de519b15b840d5dad804","type":"other"},{"url":"https://git.kernel.org/stable/c/d07a8465cd50a78d55b745ed002d5accf4a6d0a6","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-23T08:46:27.642Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99773","license":"NVD terms of use","firstSeenAt":"2026-11-20T06:30:46.424Z"},{"name":"osv","at":"2026-11-23T10:59:11.318Z","url":"https://osv.dev/vulnerability/CVE-2026-99773","license":"CC-BY 4.0","firstSeenAt":"2026-11-22T13:31:43.109Z"},{"name":"cvelistV5","at":"2026-11-23T21:31:00.039Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99773","license":"CVE Terms of Use","firstSeenAt":"2026-11-20T06:28:17.209Z"}],"firstSeenAt":"2026-11-20T06:28:17.209Z","publishedAt":"2026-11-20T05:51:37.923Z","modifiedAt":"2026-11-23T10:02:16.744Z"}