CVE-2026-46215

EUVD-2026-32842
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
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.8 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 3%
Affected Products (NVD)
VendorProductVersion
linuxlinux_kernel
6.18 ≤
𝑥
< 6.18.32
linuxlinux_kernel
6.19 ≤
𝑥
< 7.0.9
linuxlinux_kernel
7.1:rc1
linuxlinux_kernel
7.1:rc2
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
linux
bookworm
6.1.176-1
fixed
bookworm (security)
6.1.176-1
fixed
bullseye
5.10.223-1
fixed
bullseye (security)
5.10.259-1
fixed
forky
7.1.3-1
fixed
sid
7.1.3-1
fixed
trixie
6.12.94-1
fixed
trixie (security)
6.12.95-1
fixed
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
bpftool6.18
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
bpftool6.18-debuginfo
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel-livepatch-6.18.33-63.124
Amazon Linux 2023
1:1.0-0.amzn2023
fixed
kernel6.18
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-debuginfo
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-debuginfo-common-aarch64
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-debuginfo-common-x86_64
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-devel
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-headers
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-modules-extra
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-modules-extra-common
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-tools
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-tools-debuginfo
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
kernel6.18-tools-devel
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
perf6.18
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
perf6.18-debuginfo
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
python3-perf6.18
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed
python3-perf6.18-debuginfo
Amazon Linux 2023
1:6.18.33-63.124.amzn2023
fixed