# powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM_ALLOC

CVE record · `CVE-2025-21866`

- **Identifiers:** `CVE-2025-21866`
- **State:** Confirmed
- **Severity:** CVSS 5.5 Medium
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-770](https://cwe.mitre.org/data/definitions/770.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 12 Mar 2025
- **Updated:** 11 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 12 Mar 2025, 09:42 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: `37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1 to before 97de5852058a299ba447cd9782fe96488d30108b` (git)
  - affected: `37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1 to before f8d4c5b653c1bc0df56e15658bbf64fc359adc4e` (git)
  - affected: `37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1 to before 6847b3e40bb963e57b61d1cc6fe84cb37b9d3d4c` (git)
  - affected: `37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1 to before c905a3053518212a1017e50bd2be3bee59305bb0` (git)
  - affected: `37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1 to before 2d542f13d26344e3452eee77613026ce9b653065` (git)
  - affected: `37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1 to before 8d06e9208184b2851fa79a3a39d6860320c8bdf8` (git)
  - affected: `37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1 to before 2e6c80423f201405fd65254e52decd21663896f3` (git)
  - affected: `37bc3e5fd764fb258ff4fcbb90b6d1b67fb466c1 to before d262a192d38e527faa5984629aabda2e0d1c4f54` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.13`
  - unaffected: `before 4.13` (semver)
  - unaffected: `5.4.291 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.235 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.179 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.130 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.80 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.17 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13.5 to 6.13.*, inclusive` (semver)
  - unaffected: `6.14 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

- 5.5 Medium, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0025, the 16th percentile, on 17 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 12 Mar 2025. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/97de5852058a299ba447cd9782fe96488d30108b>
- <https://git.kernel.org/stable/c/f8d4c5b653c1bc0df56e15658bbf64fc359adc4e>
- <https://git.kernel.org/stable/c/6847b3e40bb963e57b61d1cc6fe84cb37b9d3d4c>
- <https://git.kernel.org/stable/c/c905a3053518212a1017e50bd2be3bee59305bb0>
- <https://git.kernel.org/stable/c/2d542f13d26344e3452eee77613026ce9b653065>
- <https://git.kernel.org/stable/c/8d06e9208184b2851fa79a3a39d6860320c8bdf8>
- <https://git.kernel.org/stable/c/2e6c80423f201405fd65254e52decd21663896f3>
- <https://git.kernel.org/stable/c/d262a192d38e527faa5984629aabda2e0d1c4f54>

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

---

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