Skip to main content

Linux Kernel EUVDEUVD-2026-39236

| CVE-2026-53145 HIGH
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-06-25 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-x237-c35r-5vq5
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access to DRM device node
  2. Delivery
    Spawn racing change_handle and gem_close threads
  3. Exploit
    Win IDR reference-stealing race window
  4. Execution
    Trigger use-after-free on GEM object
  5. Persist
    Corrupt kernel memory or leak data
  6. Impact
    Escalate privileges or disclose info

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Exploitation requires local access to a DRM device node (/dev/dri/card* or renderD*) on a kernel built with the DRM/GEM stack (the AMD GPU driver path is specifically implicated by source tags), plus the ability to issue ioctls concurrently from multiple threads to win the race between GEM change_handle and gem_close. Limiting factors: it is local-only (AV:L) with no remote surface; it needs at least low local privileges sufficient to open a DRM device (PR:L), which in hardened/headless or container environments may be unavailable; and despite the vendor's AC:L rating, it is a tight timing race that realistically demands repeated attempts and is not guaranteed on a single try. Default desktop systems with logged-in GPU users are the realistic exposure; servers without DRM device access to untrusted users are largely out of scope.

Impact

The provided CVSS 3.1 score is 7.8 High (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), indicating local, low-privilege, no-interaction access with full confidentiality, integrity and availability impact. However, the AC:L rating is questionable: the defect is a narrow race window between two ioctls, which in practice requires precise timing and repeated attempts, so a more honest assessment is AC:H. Corroborating real-world signals are modest - EPSS is only 0.17% (7th percentile), there is no CISA KEV listing and no public exploit identified, which together point to low likelihood of widespread opportunistic exploitation. The realistic risk profile is a local attacker (or malicious/compromised process with DRM device access, e.g., a sandbox escape primitive) on AMD/DRM-enabled systems; this is a meaningful local LPE/UAF candidate worth patching on multi-user and container hosts, but it is not an internet-facing or wormable issue. Note the conflict to verify: vendor CVSS says AC:L while the description explicitly frames this as an extremely tricky race that even kernel maintainers could not get right - treat exploitation as non-trivial.

Exploit ScenarioDerived

An unprivileged local user (or a compromised, sandboxed process that has been granted access to a DRM render node) repeatedly invokes the GEM change_handle ioctl on one thread while racing gem_close on the new handle in another thread, aiming to win the timing window where the object's only IDR-inherited reference is stolen. Hitting the race frees the GEM object while a stale reference remains, yielding a use-after-free that can be groomed for information disclosure or memory corruption and potentially privilege escalation. No public proof-of-concept is identified at this time, and success requires many timing attempts.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 28, 2026

Local privilege escalation and memory corruption in the Linux kernel DRM/GEM subsystem stems from a race condition in the GEM change_handle ioctl when it runs concurrently with gem_close, where botched two-stage idr_replace handling against the wrong idr slot allows a concurrent close to steal the object's only inherited reference. The flaw affects systems using the DRM graphics stack (notably AMD GPU paths, per source tags) and an unprivileged local user with access to a DRM render/card device can trigger a use-after-free, with the upstream resolution disabling the change_handle ioctl entirely until the locking can be proven correct. No public exploit identified at time of analysis and EPSS is low (0.17%, 7th percentile), consistent with a local-only, hard-to-win race rather than mass exploitation.

RemediationAI

Vendor-released patch: upgrade to a fixed stable kernel build - 6.18.36 or later on the 6.18.x branch, and 7.0.13 or later on the 7.0.x branch, which incorporate the corrected change_handle handling and disable the ioctl pending IGT test coverage. The corresponding upstream commits are available at https://git.kernel.org/stable/c/1a4f03d22fb655e5f192244fb2c87d8066fcfca2, https://git.kernel.org/stable/c/1d9b93df7fc768228906e24220591ec1cddad391 and https://git.kernel.org/stable/c/c0639ede2f24ac224b2079cd35ecd5fd8ad4e3cd. Because the upstream fix itself disables the vulnerable ioctl, the most effective compensating control where patching is delayed is to restrict access to DRM device nodes (/dev/dri/card* and /dev/dri/renderD*) to trusted users and services via group membership and udev permissions, and to deny these device nodes to untrusted containers and sandboxes - the trade-off is that unprivileged GPU-accelerated workloads (compositors, browsers, ML/compute jobs) lose direct device access and may break. Where feasible, run untrusted graphics workloads under seccomp filters that block the GEM change_handle ioctl.

Affected VersionsENISA

Linux 0dfa42cfe4dbe114533480503934f43e33c1e83d
Linux cde2c9257cbe8463b9dcf7b1075177b72b5fd938
Linux 6.18.32 <6.18.36
Linux 7.0.9 <7.0.13
Linux 5e28b7b94408897e41c63477aabc9e1db439bc8c <1a4f03d22fb655e5f192244fb2c87d8066fcfca2
Linux 61bd96d3e5472c253f9c1ab77608f0c8aaa9d025 <1d9b93df7fc768228906e24220591ec1cddad391
Linux 672464dd53231509c9c771110798c56d4660e19e <c0639ede2f24ac224b2079cd35ecd5fd8ad4e3cd
Linux 38f12d0e10d83b66fa1466400d876a3a8da31542
Linux 318b995cffcfcaa69a234d28123a3f4ae186a9df

Affected Packages

euvd linux fix: 6.18.36, 7.0.13

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected technology is the Direct Rendering Manager (DRM) GEM (Graphics Execution Manager) buffer-object handle layer in the Linux kernel, which maps userspace integer handles to kernel GEM objects through a per-file IDR (ID radix) table. The change_handle ioctl swaps the IDR slot of an object using an idr_replace sequence, and PRIME export/import plus gem_close manipulate the same table. The root cause is a classic concurrency defect (CWE-362 race condition leading to CWE-416 use-after-free): three prior fix attempts (commits 5e28b7b94408, 7164d78559b0, dc366607c41c) confused the local 'handle' variable with args->handle (new vs. old handle), applied the two-stage swap to the wrong slot, and omitted error handling and IS_ERR_OR_NULL checks on idr_replace. The fix renames the variable to new_handle, merges the GEM object lookup with the idr_replace, adopts the create_tail two-stage reference pattern so a concurrent gem_close cannot steal the sole inherited reference, and disables the ioctl pending proper IGT test coverage.

Know when Enterprise Linux gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

Local DRM-device access needed (AV:L, PR:L); it is a tight timing race so AC:H; a winning UAF can corrupt kernel memory giving full C/I/A:H.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 7.0 HIGH

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Jun 28, 2026 - 08:22 NVD
7.8 (HIGH)
Patch available
Jun 25, 2026 - 10:32 EUVD
CVE Published
Jun 25, 2026 - 09:16 cve.org
UNKNOWN (no severity yet)
CVE Published
Jun 25, 2026 - 09:16 cve.org
HIGH 7.8

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

drm/gem: Try to fix change_handle ioctl, attempt 4

[airlied: just added some comments on how to reenable] On-list because the cat is out of the bag and we're clearly not good enough to figure this out in private. The story thus far:

5e28b7b94408 ("drm: Set old handle to NULL before prime swap in change_handle") tried to fix a race condition between the gem_close and gem_change_handle ioctls, but got a few things wrong:

  • There's a confusion with the local variable handle, which is actually

the new handle, and so the two-stage trick was actually applied to the wrong idr slot. 7164d78559b0 ("drm/gem: fix race between change_handle and handle_delete") tried to fix that by adding yet another code block, but forgot to add the error handling. Which meant we now have two paths, both kinda wrong.

  • dc366607c41c ("drm: Replace old pointer to new idr") tried to apply

another fix, but inconsistently, again because of the handle confusion

  • this would be the right fix (kinda, somewhat, it's a mess) if we'd

do the two-stage approach for the new handle. Except that wasn't the intent of the original fix.

We also didn't have an igt merged for the original ioctl, which is a big no-go. This was attempted to address off-list in the original bugfix, and amd QA people claimed the bug was fixed now. Very clearly that's not the case. Here's my attempt to sort this out:

  • Rename the local variable to new_handle, the old aliasing with

args->handle is just too dangerously confusing.

  • Merge the gem obj lookup with the two-stage idr_replace so that we

avoid getting ourselves confused there.

  • This means we don't have a surplus temporary reference anymore, only

an inherited from the idr. A concurrent gem_close on the new_handle could steal that. Fix that with the same two-stage approach create_tail uses. This is a bit overkill as documented in the comment, but I also don't trust my ability to understand this all correctly, so go with the established pattern we have from other ioctls instead for maximum paranoia.

  • Adjust error paths. I've tried to make the error and success paths

common, because they are identical except for which handle is removed and on which we call idr_replace to (re)install the object again. But that made things messier to read, so I've left it at the more verbose version, which unfortunately hides the symmetry in the entire code flow a bit.

  • While at it, also replace the 7 space indent with 1 tab.

And finally, because I flat out don't trust my abilities here at all anymore:

  • Disable the ioctl until we have the igt situation and everything else

sorted out on-list and with full consensus.

v2:

Sashiko noticed that I didn't handle the error path for idr_replace correctly, it must be checked with IS_ERR_OR_NULL like in gem_handle_delete. So yeah, definitely should just the existing paths 1:1 because this is endless amounts of tricky.

Also add the Fixes: line for the original ioctl, I forgot that too.

Executive ViewAI

Why It Matters

CVE-2026-53145 is a local privilege escalation vulnerability in Linux systems with AMD GPU hardware that allows unprivileged users with graphics device access to gain system privileges through a kernel memory corruption flaw. This affects organizations running Linux workstations or servers with AMD graphics, particularly environments where multiple local users share system access.

Business Impact: Medium
Compensating Controls

Apply vendor patch. If patching is delayed, restrict access to graphics device nodes (/dev/dri/*) to only authorized users and applications, and consider disabling GPU acceleration features if not operationally required.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Ubiquitous
Linux kernel DRM/GEM ships in virtually all Linux desktops and GPU hosts
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2014-6271 CRITICAL POC
9.8 Sep 24

GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which

CVE-2021-40438 CRITICAL POC
9.0 Sep 16

A crafted request uri-path can cause mod_proxy to forward the request to an origin server choosen by the remote user.4.4

CVE-2014-7169 CRITICAL POC
9.8 Sep 25

GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed function definitions in the values of

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2016-5195 HIGH POC
7.0 Nov 10

Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by lev

CVE-2023-4911 HIGH POC
7.8 Oct 03

Local privilege escalation in the GNU C Library (glibc) dynamic loader ld.so allows unprivileged local users on affected

CVE-2017-1000253 HIGH POC
7.8 Oct 05

Linux distributions that have not patched their long-term kernels with https://git.kernel.org/linus/a87938b2e246b81b4fb7

CVE-2017-5645 CRITICAL POC
9.8 Apr 17

In Apache Log4j 2.x before 2.8.2, when using the TCP socket server or UDP socket server to receive serialized log events

CVE-2015-0240 CRITICAL POC
10.0 Feb 24

The Netlogon server implementation in smbd in Samba 3.5.x and 3.6.x before 3.6.25, 4.0.x before 4.0.25, 4.1.x before 4.1

CVE-2016-6662 CRITICAL POC
9.8 Sep 20

Oracle MySQL through 5.5.52, 5.6.x through 5.6.33, and 5.7.x through 5.7.15; MariaDB before 5.5.51, 10.0.x before 10.0.2

CVE-2025-32463 CRITICAL POC
9.3 Jun 30

Sudo before 1.9.17p1 contains a local root escalation vulnerability (CVE-2025-32463, CVSS 9.3) through the --chroot opti

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy