Skip to main content
← All vulnerabilities
CVE-2025-39965

xfrm: xfrm_alloc_spi shouldn't use 0 as SPI

Published
Last modified
published
Not listed in CISA KEV
Specific setups only
Fix
Fixed in 6.2, 6.16, 6.6.109, 6.12.50, 6.16.10
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Linux Linux

    From 6.1.191 · fixed in 6.2; From 6.15.11 · fixed in 6.16

  • Linux Linux

    From 6.6.103 · fixed in 6.6.109; From 6.12.43 · fixed in 6.12.50; From 6.16.2 · fixed in 6.16.10

  • KernelLinux

    From 6.6.103 · fixed in 6.6.109; From 6.12.43 · fixed in 6.12.50; From 6.16.2 · fixed in 6.16.10

References 5

git.kernel.org

GitHub · Shreyas-Penkar/CVE-2025-39965