CVE-2025-39965

xfrm: xfrm_alloc_spi shouldn't use 0 as SPI

MEDIUM
5.5
CVSS Score
Published: October 13, 2025 at 01:48 PM UTC
Updated: October 30, 2026 at 01:18 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: xfrm: xfrm_alloc_spi shouldn't use 0 as SPI x->id.spi == 0 means "no SPI assigned", but since commit 94f39804d891 ("xfrm: Duplicate SPI Handling"), we now create states and add them to the byspi list with this value. __xfrm_state_delete doesn't remove those states from the byspi list, since they shouldn't be there, and this shows up as a UAF the next time we go through the byspi list.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.12.43 ≤ v < 6.12.506.15.11 ≤ v < 6.166.16.2 ≤ v < 6.16.106.6.103 ≤ v < 6.6.10929e9158f91f99057dbd35db5e8674d93b38549fe2fc5b54368a1bf1d2d74b4d3b8eea5309a653e383d8090bb53424432fa788fe9a49e8ceca74f05446.12.436.15.116.16.26.176.17 rc16.17 rc26.17 rc36.17 rc46.17 rc56.17 rc66.17 rc76.6.10394f39804d891cffe4ce17737d295f3b195bc7299c67d4e7a8f90fb6361ca89d4d5c9a28f4e935e47
Vendor states this is fixed in 0baf92d0b1590b903c1f4ead75e61715e50e8146 (fixed)
Vendor states this is fixed in 9fcedabaae0096f712bbb4ccca6a8538af1cd1c8 (fixed)
Vendor states this is fixed in a78e55776522373c446f18d5002a8de4b09e6bf7 (fixed)
Vendor states this is fixed in cd8ae32e4e4652db55bce6b9c79267d8946765a9 (fixed)
Affected range stops below 6.12.50, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.16, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.16.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.6.109, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card