# mm/hugetlb: fix folio is still mapped when deleted

CVE record · `CVE-2025-40006`

- **Identifiers:** `CVE-2025-40006`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 20 Oct 2025
- **Updated:** 5 Aug 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 20 Oct 2025, 15:26 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: `4aae8d1c051ea00b456da6811bc36d1f69de5445 to before bc1c9ce8aeff45318332035dbef9713fb9e982d7` (git)
  - affected: `4aae8d1c051ea00b456da6811bc36d1f69de5445 to before 91f548e920fbf8be3f285bfa3fa045ae017e836d` (git)
  - affected: `4aae8d1c051ea00b456da6811bc36d1f69de5445 to before 3e851448078f5b01f6264915df3cfef75e323a12` (git)
  - affected: `4aae8d1c051ea00b456da6811bc36d1f69de5445 to before c1dc0524ab2cc3982d4e0d2bfac71a0cd4d65c39` (git)
  - affected: `4aae8d1c051ea00b456da6811bc36d1f69de5445 to before c9c2a51f91aea70e89b496cac360cd795a2b3c26` (git)
  - affected: `4aae8d1c051ea00b456da6811bc36d1f69de5445 to before 910d7749346c4b0acdc6e4adfdc4a9984281a206` (git)
  - affected: `4aae8d1c051ea00b456da6811bc36d1f69de5445 to before 21ee79ce938127f88fe07e409c1817f477dbe7ea` (git)
  - affected: `4aae8d1c051ea00b456da6811bc36d1f69de5445 to before 7b7387650dcf2881fd8bb55bcf3c8bd6c9542dd7` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.5`
  - unaffected: `before 4.5` (semver)
  - unaffected: `5.4.300 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.245 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.194 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.155 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.109 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.50 to 6.12.*, inclusive` (semver)
  - unaffected: `6.16.10 to 6.16.*, inclusive` (semver)
  - unaffected: `6.17 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## 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

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0021, the 10th percentile, on 20 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 20 Oct 2025. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/bc1c9ce8aeff45318332035dbef9713fb9e982d7>
- <https://git.kernel.org/stable/c/91f548e920fbf8be3f285bfa3fa045ae017e836d>
- <https://git.kernel.org/stable/c/3e851448078f5b01f6264915df3cfef75e323a12>
- <https://git.kernel.org/stable/c/c1dc0524ab2cc3982d4e0d2bfac71a0cd4d65c39>
- <https://git.kernel.org/stable/c/c9c2a51f91aea70e89b496cac360cd795a2b3c26>
- <https://git.kernel.org/stable/c/910d7749346c4b0acdc6e4adfdc4a9984281a206>
- <https://git.kernel.org/stable/c/21ee79ce938127f88fe07e409c1817f477dbe7ea>
- <https://git.kernel.org/stable/c/7b7387650dcf2881fd8bb55bcf3c8bd6c9542dd7>

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-40006>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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