CVE-2026-46215

Source
https://cve.org/CVERecord?id=CVE-2026-46215
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46215.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-46215
Downstream
Related
Published
2026-05-28T09:40:32.050Z
Modified
2026-07-10T04:13:03.919548859Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
drm: Set old handle to NULL before prime swap in change_handle
Details

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 changehandle. The ioctl briefly had a single object with two idr entries; a concurrent gemclose 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 gemclose itself does. (f6cd7daecff5 drm: Release driver references to handle before making it available again) First idrreplace the old handle to NULL. Later, if the prime operations are successful, actually close it.

createtail required a similar dance to avoid a similar problem. (bd46cece51a3 drm/gem: Fix race in drmgemhandlecreatetail()) It idrallocs 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 drmprime, and changehandle holds the prime lock for the entire duration.

v2: cleanups of error paths

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46215.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
53096728b8910c6916ecc6c46a5abc5c678b58d9
Fixed
672464dd53231509c9c771110798c56d4660e19e
Fixed
61bd96d3e5472c253f9c1ab77608f0c8aaa9d025
Fixed
5e28b7b94408897e41c63477aabc9e1db439bc8c

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46215.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.18.0
Fixed
6.18.32
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.0.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46215.json"