CVE-2026-46215Linux Kernel Use After Free
NVDCVSS scored by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Vulnerability Summary
In the Linux kernel, the following vulnerability has been resolved:
drm: Set old handle to NULL before prime swap in change_handle
There was a potential race condition in change_handle. The ioctl
briefly had a single object with two idr entries; a concurrent
gem_close could delete the object and remove one of the handles
while leaving the other one dangling, which could subsequently
be dereferenced for a use-after-free.
To fix this, do the same dance that gem_close itself does.
(f6cd7daecff5 drm: Release driver references to handle before making it available again)
First idr_replace the old handle to NULL. Later, if the prime
operations are successful, actually close it.
create_tail required a similar dance to avoid a similar problem.
(bd46cece51a3 drm/gem: Fix race in drm_gem_handle_create_tail())
It idr_allocs the new handle with NULL, then swaps in the correct
object later to avoid races. We don't need to do that here, since
the only operations that could race are drm_prime, and
change_handle holds the prime lock for the entire duration.
v2: cleanups of error paths
drm: Set old handle to NULL before prime swap in change_handle
There was a potential race condition in change_handle. The ioctl
briefly had a single object with two idr entries; a concurrent
gem_close could delete the object and remove one of the handles
while leaving the other one dangling, which could subsequently
be dereferenced for a use-after-free.
To fix this, do the same dance that gem_close itself does.
(f6cd7daecff5 drm: Release driver references to handle before making it available again)
First idr_replace the old handle to NULL. Later, if the prime
operations are successful, actually close it.
create_tail required a similar dance to avoid a similar problem.
(bd46cece51a3 drm/gem: Fix race in drm_gem_handle_create_tail())
It idr_allocs the new handle with NULL, then swaps in the correct
object later to avoid races. We don't need to do that here, since
the only operations that could race are drm_prime, and
change_handle holds the prime lock for the entire duration.
v2: cleanups of error paths
CVSS v3.1 Base Metrics — Score 7.8 (HIGH)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAttack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Linux Kernel >= 6.18 and < 6.18.32
- Linux Kernel >= 6.19 and < 7.0.9
- Linux Kernel
- Linux >= 53096728b8910c6916ecc6c46a5abc5c678b58d9 and < 672464dd53231509c9c771110798c56d4660e19e
- Linux >= 53096728b8910c6916ecc6c46a5abc5c678b58d9 and < 61bd96d3e5472c253f9c1ab77608f0c8aaa9d025
- Linux >= 53096728b8910c6916ecc6c46a5abc5c678b58d9 and < 5e28b7b94408897e41c63477aabc9e1db439bc8c
- Linux 6.18
- Linux Kernel 6.18.32
- Linux Kernel 7.0.9
- Linux 672464dd53231509c9c771110798c56d4660e19e
- Linux 61bd96d3e5472c253f9c1ab77608f0c8aaa9d025
- Linux 5e28b7b94408897e41c63477aabc9e1db439bc8c
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run Linux Kernel and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- May 28, 2026Published
- Jul 10, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Linux kernel CVEsYou are reading CVE-2026-46215. Get an email when KEV listings, exploits or new CVEs match your stack.
Notify me about Linux kernel CVEsAll Linux kernel vulnerabilities →
External References
Data last checked: Nov 28, 2026 01:14 UTC