Linux KernelOperating system · Linux

CVE-2026-53145

HIGH · 7.8 CVSS v3.1 Published 2026-06-25
Fix available
A fix is available. Upgrade to 6.18.36 / 7.0.13 or later.
See remediation →
80/100
Remediation priority · High
Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

This is a race condition vulnerability in the Linux kernel's DRM (Direct Rendering Manager) subsystem, specifically in the gem_change_handle ioctl. Multiple attempted fixes (commits 5e28b7b94408, 7164d78559b0, dc366607c41c) failed due to confusion between handle variables and incorrect application of a two-stage idr_replace pattern. A concurrent gem_close could steal the object reference during handle replacement, leading to use-after-free or other memory corruption issues.

MitigationThe ioctl has been disabled in the kernel pending proper fix and IGT test coverage. Until a proper fix is merged, avoid using the change_handle ioctl or ensure no concurrent gem_close operations occur on affected handles.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Linux KernelOperating system
Affected:>= 6.18.32, < 6.18.36>= 7.0.9, < 7.0.13= 7.1
Enterprise LinuxOperating system
Affected:= 7.0= 8.0= 9.0= 10.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check installed kernel version
    Run `uname -r` or `cat /proc/version` to obtain the running kernel version
    Affected if The kernel version falls within >= 6.18.32 and < 6.18.36, >= 7.0.9 and < 7.0.13, or equals 7.1
  2. Verify DRM subsystem is in use
    Check for loaded DRM-related kernel modules via `lsmod | grep -i drm` or check /sys/class/drm/ for graphics device presence
    Affected if The system uses DRM (Direct Rendering Manager) for graphics, which indicates the vulnerable code path could be reached
  3. Check if vulnerable ioctl is accessible
    Examine kernel configuration for CONFIG_DRM and look for DRM_IOCTL_GEM_CHANGE_HANDLE availability in the running kernel - this typically requires kernel source analysis or checking if the ioctl number (0x09 in DRM driver) is handled
    Affected if The DRM subsystem is compiled with the gem change_handle ioctl handler present and accessible to userspace
  4. Confirm userspace graphics stack exposure
    Check for presence of graphics-intensive applications or IGT (Intel Graphics Technology) test tools that could invoke the gem_close/change_handle paths via `ps aux | grep -i -E 'igt|glx|drm' or listing /dev/dri/* device nodes
    Affected if Applications or test tools that interact with DRM gem handles are in use, potentially triggering the race condition

The system is affected if it runs a Linux kernel version within the specified vulnerable ranges AND uses the DRM subsystem with graphics workloads capable of invoking the gem_change_handle ioctl.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 6.18.36 / 7.0.13 or later
Fixed in 6.18.367.0.13
Vendor patch git.kernel.org →
Interim mitigation

The ioctl has been disabled in the kernel pending proper fix and IGT test coverage. Until a proper fix is merged, avoid using the change_handle ioctl or ensure no concurrent gem_close operations occur on affected handles.

Recommended fix High confidence

Linux Kernel 6.18.36, 7.0.13, or 7.1.x (or later stable releases); Red Hat Enterprise Linux 7.0, 8.0, 9.0, 10.0 with latest security updates

  1. Check current kernel version using `uname -r`
  2. For RHEL/CentOS/EL systems: Run `dnf update` or `yum update` to apply the latest kernel security fixes
  3. For other Linux distributions: Upgrade to kernel version 6.18.36 or later for the 6.18.x branch, or 7.0.13 or later for the 7.0.x branch
  4. After kernel update, reboot the system using `systemctl reboot` to load the fixed kernel
  5. Verify the new kernel version is running after reboot with `uname -r`
  6. Ensure the system is running kernel >= 6.18.36 or >= 7.0.13 or >= 7.1.x (depending on your branch)
Caveat Kernel upgrades may require rebooting services; ensure downtime window is scheduled; some driver compatibility may vary across minor kernel versions

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Linux Kernel Scoped from the published advisory
  • Consultation8.0 h
  • Implementation16.0 h
  • Testing24.0 h
  • Review / QA12.0 h
60.0 hours of engineering $10,240
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $16,384.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-53145 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-53145 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data