CVE-2023-52913
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-52913 is a use-after-free (UAF) vulnerability discovered in the Linux Kernel's Intel graphics driver (drm/i915). The vulnerability was identified in the gem_context_register() function, where a race condition could occur when making a graphics context visible to userspace. The issue affects Linux kernel versions from 5.8.11 up to (excluding) 5.9, and from 5.10 up to (excluding) 6.1.7, as well as versions 6.2-rc1, 6.2-rc2, and 6.2-rc3 (NVD).

Technical details

The vulnerability occurs in the Intel graphics driver's context management code. When the gem_context_register() function is called, it makes the context visible to userspace, at which point a separate thread can trigger the I915_GEM_CONTEXT_DESTROY ioctl and free the context while it is still in use. The issue has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating local access required and potential high impact on availability (NVD).

Impact

The vulnerability can lead to a use-after-free condition in the kernel's graphics subsystem. This could potentially result in system crashes, denial of service, or possible privilege escalation in the context of the Intel graphics driver (Red Hat).

Mitigation and workarounds

The vulnerability has been fixed through a patch that ensures proper reference counting and timing of context registration. The fix involves modifying the gem_context_register() function to ensure that adding the context to the xarray is the last operation performed, and implementing proper reference counting before making the context visible to userspace (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 2025
CVE-2025-40341N/AN/A
  • Linux KernelLinux Kernel
  • kernel-headers
NoYesDec 09, 2025
CVE-2025-40340N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-extra
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management