CVE-2026-53145·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.13
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.14% — higher than 3% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-53145 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.14%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 7.0.9
Until: 7.0.13
Fixed in: 7.0.13
How to fix this CVE
Update your Linux kernel to version 7.0.13 or later to resolve a race condition in the DRM GEM change_handle ioctl that could allow local privilege escalation. This patch corrects variable naming confusion and implements proper synchronization to prevent concurrent gem_close and gem_change_handle operations from corrupting kernel state. Reboot your system after applying the kernel update to activate the patched version.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version by running: uname -r
- Verify if you are running kernel 7.0.9 through 7.0.12 (vulnerable range): cat /proc/version
- Search kernel logs for DRM GEM ioctl errors or crashes: sudo dmesg | grep -i 'gem\|drm\|ioctl'
- Confirm the patch is applied by checking if change_handle ioctl is disabled or if version is >= 7.0.13: uname -r
FAQ
What is CVE-2026-53145?
This vulnerability is a race condition in the Linux kernel's DRM (Direct Rendering Manager) GEM subsystem's change_handle ioctl. A local attacker with limited privileges can exploit confusion between handle variable naming to corrupt kernel memory structures and escalate privileges.
Is CVE-2026-53145 being actively exploited?
No, CVE-2026-53145 is not currently listed in the CISA Known Exploited Vulnerabilities catalog, and there are no public exploits available.
What versions of Kernel are affected by CVE-2026-53145?
Linux kernel versions 7.0.9 through 7.0.12 are affected. Version 7.0.13 and later contain the necessary fixes.
How do I check if my server is vulnerable to CVE-2026-53145?
Run 'uname -r' to display your kernel version. If the output shows version 7.0.9 to 7.0.12, your system is vulnerable and requires an immediate kernel update.
Does Defensia detect CVE-2026-53145?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-53145 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1a4f03d22fb655e5f192244fb2c87d8066fcfca2
- https://git.kernel.org/stable/c/1d9b93df7fc768228906e24220591ec1cddad391
- https://git.kernel.org/stable/c/c0639ede2f24ac224b2079cd35ecd5fd8ad4e3cd
- https://access.redhat.com/security/cve/CVE-2026-53145
- https://bugzilla.redhat.com/show_bug.cgi?id=2492773
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-53145. Free for 1 server.
Get started free