CVE-2025-40340
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40340 is a NULL pointer dereference vulnerability in the Linux kernel's DRM/Xe (Intel Xe GPU) driver, specifically in the xe_gem_fault function. The flaw was discovered and disclosed on December 9, 2025. It affects Linux kernel versions from the initial commit (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) up to the patched commits in stable branches, with fixes backported to kernel 6.12.58, 6.17.8, and 6.18. The CVSS base score is currently listed as 0.0 (not yet fully scored) (EUVD, Feedly).

Technical details

The root cause is a NULL pointer dereference (CWE-476) in the xe_gem_fault handler within the Linux kernel's DRM/Xe driver. The vulnerability is triggered during a specific race condition: after a core_hotunplug unbind-rebind cycle, a process that has memory-mapped a GEM buffer object may re-enter the fault handler. Due to FAULT_FLAG_RETRY_NOWAIT logic, the handler unlocks and then calls ttm_bo_vm_dummy_page(), which returns VM_FAULT_NOPAGE when no process memory remains to populate. The code then attempts to dereference tbo->resource->mem_type in mem_type_is_vram(), but tbo->resource is NULL at this point, causing a kernel oops (panic). Exploitation requires local access and a specific hardware/software configuration involving Intel Xe GPU hardware and the core_hotunplug test scenario (EUVD).

Impact

Successful triggering of this vulnerability results in a kernel panic (oops), causing a denial of service on the affected system. The impact is limited to availability — confidentiality and integrity are not directly affected. Systems running the Linux kernel with Intel Xe GPU hardware and susceptible to the core_hotunplug unbind-rebind scenario are at risk of unexpected crashes (EUVD, Feedly).

Mitigation and workarounds

The Linux kernel maintainers have released patches addressing this vulnerability in the following stable branches: kernel 6.12.58 (commit 99428bd6123d5676209dfb1d7a8f176cc830b665), kernel 6.17.8 (commit 29a3064f9c5a908aaf0b39cd6ed30374db11840d), and kernel 6.18 (commit 1cda3c755bb7770be07d75949bb0f45fb88651f6). Users running affected kernel versions with Intel Xe GPU hardware should update to a patched kernel release. No configuration-based workaround is publicly documented; upgrading is the recommended remediation (EUVD, Kernel Patch 1).

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-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

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