CVE-2026-89823 PUBLISHED

drm: fix race between partial drm_dev_register() failure and ioctl

Assigner: Linux
Reserved: 11.09.2026 Published: 16.09.2026 Updated: 16.09.2026

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

drm: fix race between partial drm_dev_register() failure and ioctl

If drm_dev_register() fails after registering a minor (e.g. render minor registered, primary minor fails), userspace could have opened the first minor and entered a drm_dev_enter() critical section. Since the unplugged flag was never set, the ioctl proceeds while the error path tears down device resources.

Fix this by introducing drm_dev_synchronize_unplug(), which sets the unplugged flag and waits for the SRCU barrier, ensuring all in-flight drm_dev_enter() critical sections complete before cleanup proceeds; call it on the error path of drm_dev_register().

Metrics

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

AV:L - The race is entered by opening a newly published DRM minor (/dev/dri/renderD or card) and issuing ioctl/mmap into drm_dev_enter(); that is a local char-dev syscall path, not network, adjacent-radio, or USB packet processing. AC:L - The attacker controls the userspace side (inotify on the new node, open, concurrent DRM_RENDER_ALLOW ioctl/mmap) and can force later drm_dev_register() steps to fail after the first minor is live (ENOMEM in create_compat_control_link or drm_modeset_register_all). Modern drivers skip drm_global_mutex, so open is not serialized with register. PR:L - The commit's example publishes the render minor first; that node has no CAP_SYS_ADMIN check, and the overlapping ioctls are DRM_RENDER_ALLOW. Unprivileged local users on phones, desktops, and GPU VMs routinely open /dev/dri/renderD*. UI:N - The attacker opens their own DRM fd and issues ioctls; GPU or hotplug display probe runs in kernel driver init and does not require a victim to mount media or open a file. S:U - The use-after-free is of host-kernel DRM/driver resources that drm_dev_enter() is meant to protect, remaining in the same kernel authority; this is not a VM escape or IOMMU/DMA bypass. C:H - On drm_dev_register() error, probe rollback frees devm MMIO and driver objects while an in-flight drm_dev_enter() ioctl/mmap still uses them, a use-after-free that enables kernel memory disclosure. I:H - The same use-after-free of driver state during concurrent ioctl/mmap allows heap spraying, arbitrary writes, and control-flow hijack, matching kernel guidance that UAF is Integrity High. A:H - Racing ioctl/mmap against probe teardown oopses or panics via stale mappings or freed objects; a use-after-free also crashes when not fully exploited.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from bee330f3d67273a68dcb99f59480d59553c008b2 to 26d9162213952927cd59c0d94b7e0e992b347bec (excl.)
  • affected from bee330f3d67273a68dcb99f59480d59553c008b2 to 24d28d15c0f7f7d4a1c229f8730314f0f8758810 (excl.)
  • affected from bee330f3d67273a68dcb99f59480d59553c008b2 to 6729990df9e70623bf53f855b521ae71ca9cb278 (excl.)
  • affected from bee330f3d67273a68dcb99f59480d59553c008b2 to a0a7e2e177f2f18b9e7318a4c64ac44efd9ef22c (excl.)
  • affected from bee330f3d67273a68dcb99f59480d59553c008b2 to 19dbfe4d586aecfed121cb3fa62281761d9d341f (excl.)
  • affected from bee330f3d67273a68dcb99f59480d59553c008b2 to 79d09cfe90304ff4f195e47d569800f5e0f8b854 (excl.)
  • affected from bee330f3d67273a68dcb99f59480d59553c008b2 to 2d1215a72159d00001e08dee162e27718934bee9 (excl.)
  • affected from bee330f3d67273a68dcb99f59480d59553c008b2 to eb197f7d60f00d0f5b1b3505dfc86a7e36045a3e (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.18 is affected
  • unaffected from 0 to 4.18 (excl.)
  • unaffected from 5.10.270 to 5.10.* (incl.)
  • unaffected from 5.15.221 to 5.15.* (incl.)
  • unaffected from 6.1.188 to 6.1.* (incl.)
  • unaffected from 6.6.157 to 6.6.* (incl.)
  • unaffected from 6.12.110 to 6.12.* (incl.)
  • unaffected from 6.18.51 to 6.18.* (incl.)
  • unaffected from 7.2.5 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References