PT-2026-44338 · Linux · Linux
Published
2026-05-28
·
Updated
2026-05-28
·
CVE-2026-46215
None
No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Linux