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).

Exploitability

There is no known public exploit code, active in-the-wild exploitation, or threat actor attribution associated with CVE-2025-40340. The EPSS score is extremely low at 0.000170, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Triggering the bug requires local access, Intel Xe GPU hardware, and a specific sequence of hotplug events, making opportunistic exploitation unlikely (Feedly, EUVD).

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

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

sid

linux: 6.17.8-1

Fixed

trixie

linux: 6.12.63-1

Fixed

Ubuntu

Fixed

bionic

linux

Not Affected

bionic (esm-infra)

linux

Not Affected

bionic (fips-updates)

linux-fips

Not Affected

bionic (fips)

linux-fips

Not Affected

devel

linux

Not Affected

focal

linux

Not Affected

focal (esm-infra)

linux

Not Affected

focal (fips-updates)

linux-fips

Not Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

kernel-rt.src

Affected

RHEL 10

kernel.src

Affected

Source: This 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-99099NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-modules
NoYesOct 26, 2026
CVE-2026-99098NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug
NoYesOct 26, 2026
CVE-2026-99097NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-core
NoYesOct 26, 2026
CVE-2026-99096NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesOct 26, 2026
CVE-2026-99094NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-core
NoYesOct 26, 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

Additional Wiz resources

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