CVE-2025-40311
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40311 is a denial-of-service vulnerability in the Linux kernel's accel/habanalabs accelerator driver caused by improper handling of vmalloc-backed coherent memory mappings. When IOMMU is enabled, dma_alloc_coherent() with GFP_USER may return addresses from the vmalloc range; if such an address is mapped without the VM_MIXEDMAP flag, vm_insert_page() triggers a BUG_ON assertion due to the VM_PFNMAP restriction, resulting in a kernel crash. The vulnerability was published on December 8, 2025, and affects the Linux kernel across multiple stable branches. It carries a CVSS v3.1 base score of 5.5 (Medium) (Red Hat CVE, Microsoft MSRC).

Technical details

The root cause is classified as an improper memory mapping condition (related to CWE-476/incorrect assertion handling) in the accel/habanalabs driver. When IOMMU is active, dma_alloc_coherent() with GFP_USER can legitimately return a vmalloc-range address; however, the driver's mmap path calls vm_insert_page() without first setting VM_MIXEDMAP on the VMA, which is required for non-linear/vmalloc-backed pages. This triggers a kernel BUG_ON assertion enforced by the VM_PFNMAP restriction, causing an immediate kernel panic. The fix involves checking whether the returned DMA address falls within the vmalloc range and, if so, setting VM_MIXEDMAP in the VMA flags before proceeding with the mapping. Exploitation requires local access with low privileges and is only triggerable on systems with IOMMU enabled (Red Hat CVE, ENISA EUVD).

Impact

Successful exploitation causes a kernel crash (panic via BUG_ON), resulting in a complete denial of service for the affected system — all running processes and services are terminated until the system is rebooted. There is no impact on confidentiality or integrity, as the vulnerability does not allow memory disclosure or data modification. The scope is limited to the local system; lateral movement is not directly facilitated by this vulnerability (Red Hat CVE).

Mitigation and workarounds

Patches have been backported to multiple Linux kernel stable branches. Users should update to the following fixed versions: 6.6.117, 6.12.58, 6.17.8, or 6.18 (ENISA EUVD). Microsoft has also released a patch for the Azure Linux 3 kernel (azl3_kernel_6.6.112.1-2 and later) via the December 2025 Patch Tuesday update (Microsoft MSRC). As a workaround where patching is not immediately possible, administrators can restrict local user access to the habanalabs device or disable IOMMU if operationally feasible, though neither is a substitute for applying the kernel update.

Community reactions

The vulnerability was included in Microsoft's December 2025 Patch Tuesday advisory, which covered the Azure Linux kernel package (Microsoft MSRC). Security vendors including Tenable and Qualys have added detection coverage for this CVE. No notable independent researcher commentary or significant social media discussion has been observed, consistent with the vulnerability's limited exploitability and narrow scope.

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-64181HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-4.15
NoYesJul 19, 2026
CVE-2026-64186NONEN/A
  • Linux Kernel logoLinux Kernel
  • libperf
NoYesJul 19, 2026
CVE-2026-64183NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.14
NoYesJul 19, 2026
CVE-2026-64182NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-oracle-6.17
NoYesJul 19, 2026
CVE-2026-64180NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-5.4
NoYesJul 19, 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