CVE-2025-40311 Details
Description
In the Linux kernel, the following vulnerability has been resolved: accel/habanalabs: support mapping cb with vmalloc-backed coherent memory When IOMMU is enabled, dma_alloc_coherent() with GFP_USER may return addresses from the vmalloc range. If such an address is mapped without VM_MIXEDMAP, vm_insert_page() will trigger a BUG_ON due to the VM_PFNMAP restriction. Fix this by checking for vmalloc addresses and setting VM_MIXEDMAP in the VMA before mapping. This ensures safe mapping and avoids kernel crashes. The memory is still driver-allocated and cannot be accessed directly by userspace.
A vulnerability exists in the Linux kernel's handling of vmalloc-backed coherent memory in the Habanalabs driver. When IOMMU is enabled, the function dma_alloc_coherent() with GFP_USER can return addresses from the vmalloc range. If these addresses are mapped without the VM_MIXEDMAP flag, the function vm_insert_page() will encounter a BUG_ON due to the VM_PFNMAP restriction. This vulnerability affects the Linux kernel stable tree and has been addressed by checking for vmalloc addresses and setting the VM_MIXEDMAP flag in the virtual memory area (VMA) before mapping. The fix ensures safe memory mapping, preventing kernel crashes, although the memory remains driver-allocated and inaccessible to userspace.
The vulnerability has been fixed in the Linux kernel. Users should upgrade to the latest version of the stable Linux kernel where this issue has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/513024d5a0e34fd34247043f1876b6138ca52847 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/73c7c2cdb442fc4160d2a2a4bfffbd162af06cb9 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/7ec8ac9f73d4a9438c2186768d6de27ace37531e | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/8de421db5b1b2b37e9643ea7f6ade90fd756892d | kernel.org | |
| https://git.kernel.org/stable/c/d1dfe21a332d38a6a09658ec29a55940afb5fe36 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| Intel Habanalabs Gaudi | All versions |
CPE
Remediation
| |
| Intel Habanalabs Gaudi2 | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 30, 2026 | CVE Modified | kernel.org |
| Oct 14, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 8, 2025 | New CVE Received | kernel.org |
Volerion