
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."