CVE-2025-40311: accel/habanalabs: support mapping cb with vmalloc-backed coherent memory
Vulnerability summary
CVE-2025-40311 is a medium (CVSS 5.7) vulnerability in linux. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.2% of scored vulnerabilities.
Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 30 · Related 28Timeline
- 08-12-2025PublishedVulnerability first disclosed.
- 30-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
0.19%
Chance of exploitation in the next 30 days
Percentile
8%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.19% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu154 products
- linuxAll versions (No fix recorded) | < 6.8.0-106.106 | < 6.17.0-14.14
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.8.0-1050.53 | < 6.17.0-1007.7
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian1 product
- linuxAll versions (No fix recorded) | < 6.12.63-1 | < 6.17.8-1
Linux1 product
- linux≥ ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < 8de421db5b1b2b37e9643ea7f6ade90fd756892d | ≥ ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < 7ec8ac9f73d4a9438c2186768d6de27ace37531e | ≥ ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < d1dfe21a332d38a6a09658ec29a55940afb5fe36 | ≥ ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < 73c7c2cdb442fc4160d2a2a4bfffbd162af06cb9 | ≥ ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399, < 513024d5a0e34fd34247043f1876b6138ca52847 | 5.8
3 vendors · 156 products