# accel/habanalabs: support mapping cb with vmalloc-backed coherent memory

CVE record · `CVE-2025-40311`

- **Identifiers:** `CVE-2025-40311`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 8 Dec 2025
- **Updated:** 30 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 8 Dec 2025, 00:46 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399 to before 8de421db5b1b2b37e9643ea7f6ade90fd756892d` (git)
  - affected: `ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399 to before 7ec8ac9f73d4a9438c2186768d6de27ace37531e` (git)
  - affected: `ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399 to before d1dfe21a332d38a6a09658ec29a55940afb5fe36` (git)
  - affected: `ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399 to before 73c7c2cdb442fc4160d2a2a4bfffbd162af06cb9` (git)
  - affected: `ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399 to before 513024d5a0e34fd34247043f1876b6138ca52847` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.8`
  - unaffected: `before 5.8` (semver)
  - unaffected: `6.1.191 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.117 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.58 to 6.12.*, inclusive` (semver)
  - unaffected: `6.17.8 to 6.17.*, inclusive` (semver)
  - unaffected: `6.18 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel's accel/habanalabs driver is affected from commit ac0ae6a96aa58eeba4aed97b12ef1dea8c5bf399 up to the fixed commits listed for each stable branch, and in mainline from 5.8 onward. When the IOMMU is enabled, mapping a command buffer backed by vmalloc memory can trigger a kernel BUG_ON and crash the system. The source does not describe what triggers the mapping from userspace or what an attacker could gain beyond a denial of service. Upgrade to a fixed kernel version for your branch, such as 6.1.191, 6.6.117, 6.12.58, or 6.17.8 or later.

Written 13 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0021, the 10th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 8 Dec 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2025-40311](https://www.cve.org/CVERecord?id=CVE-2025-40311)
- [NVD: CVE-2025-40311](https://nvd.nist.gov/vuln/detail/CVE-2025-40311)

### References from the CNA

- <https://git.kernel.org/stable/c/8de421db5b1b2b37e9643ea7f6ade90fd756892d>
- <https://git.kernel.org/stable/c/7ec8ac9f73d4a9438c2186768d6de27ace37531e>
- <https://git.kernel.org/stable/c/d1dfe21a332d38a6a09658ec29a55940afb5fe36>
- <https://git.kernel.org/stable/c/73c7c2cdb442fc4160d2a2a4bfffbd162af06cb9>
- <https://git.kernel.org/stable/c/513024d5a0e34fd34247043f1876b6138ca52847>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-40311>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-40311/>. Everything for agents: <https://agentprime.io/llms.txt>.
