# xfrm: xfrm_alloc_spi shouldn't use 0 as SPI

CVE record · `CVE-2025-39965`

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

Published by the CVE Program (CNA: Linux) at 13 Oct 2025, 13:48 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: `3d8090bb53424432fa788fe9a49e8ceca74f0544 to before 0baf92d0b1590b903c1f4ead75e61715e50e8146` (git)
  - affected: `2fc5b54368a1bf1d2d74b4d3b8eea5309a653e38 to before 9fcedabaae0096f712bbb4ccca6a8538af1cd1c8` (git)
  - affected: `29e9158f91f99057dbd35db5e8674d93b38549fe to before a78e55776522373c446f18d5002a8de4b09e6bf7` (git)
  - affected: `94f39804d891cffe4ce17737d295f3b195bc7299 to before cd8ae32e4e4652db55bce6b9c79267d8946765a9` (git)
  - affected: `fb58962aa3b9359988c7b5b15a971fd9ad5b0ecd` (git)
  - affected: `c67d4e7a8f90fb6361ca89d4d5c9a28f4e935e47` (git)
  - affected: `6.1.191 to before 6.2` (semver)
  - affected: `6.15.11 to before 6.16` (semver)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `6.6.103 to before 6.6.109` (semver)
  - affected: `6.12.43 to before 6.12.50` (semver)
  - affected: `6.16.2 to before 6.16.10` (semver)
  - Other versions: unaffected

## 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.0020, 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 13 Oct 2025. New records show when each source confirmed them.

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/0baf92d0b1590b903c1f4ead75e61715e50e8146>
- <https://git.kernel.org/stable/c/9fcedabaae0096f712bbb4ccca6a8538af1cd1c8>
- <https://git.kernel.org/stable/c/a78e55776522373c446f18d5002a8de4b09e6bf7>
- <https://git.kernel.org/stable/c/cd8ae32e4e4652db55bce6b9c79267d8946765a9>

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

---

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