CVE-2026-46215
drm: Set old handle to NULL before prime swap in change_handle
Reported by linux · Published May 28, 2026
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
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-core | errata.rockylinux.org | 6.12.0-211.37.1.el10 |
| kernel-modules-extra | errata.rockylinux.org | 5.14.0-687.29.1.el9 |
| kernel-rt-64k-debug-modules-core | errata.rockylinux.org | 5.14.0-687.29.1.el9 |
| kernel-rt-debug-modules-extra | errata.rockylinux.org | 5.14.0-687.29.1.el9 |
| kernel6.18-modules-extra | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel-rt-modules-core | errata.rockylinux.org | 5.14.0-687.29.1.el9 |
| kernel-tools-libs-devel | errata.rockylinux.org | 6.12.0-211.37.1.el10, 5.14.0-687.29.1.el9 |
| kernel6.18-devel | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel-debug-debuginfo | errata.rockylinux.org | 6.12.0-211.37.1.el10 |
| libperf | errata.rockylinux.org | 5.14.0-687.29.1.el9 |
| kernel-debug-modules-extra | errata.rockylinux.org | 6.12.0-211.37.1.el10, 5.14.0-687.29.1.el9 |
| kernel-debug-devel | errata.rockylinux.org | 6.12.0-211.37.1.el10, 5.14.0-687.29.1.el9 |
22 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 53096728b8910c6916ecc6c46a5abc5c678b58d9, 53096728b8910c6916ecc6c46a5abc5c678b58d9, 53096728b8910c6916ecc6c46a5abc5c678b58d9 |
| Linux | Linux | 6.18, 0, 6.18.32 |
| amazon:2023 | kernel6.18-modules-extra | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| Linux | Linux | 7.0.9, 6.18.32, 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| linux | linux_kernel | 6.18, 6.18, 6.18 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel-livepatch-6.18.33-63.124 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
Timeline
- May 27, 2026 CVE Published
- May 28, 2026 EPSS Score (21 in total, the first dated here)
- Jun 1, 2026 Security Advisory (133 in total, the first dated here)
- Jun 4, 2026 Coalition ESS Score
- Jul 22, 2026 Distribution Patch (132 in total, the first dated here)
- Sep 16, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-46215
vulnetix vdb fixes CVE-2026-46215
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-46215/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart