cbcvebase.
CVE-2025-39965
published 2025-10-13

CVE-2025-39965: 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…

PriorityP418medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.18%
8.1th percentile
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

27 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.16.10-1 (forky)linux 6.16.10-1 (forky)
linuxlinux
linuxlinux>= 29e9158f91f99057dbd35db5e8674d93b38549fe < a78e55776522373c446f18d5002a8de4b09e6bf7a78e55776522373c446f18d5002a8de4b09e6bf7
linuxlinux>= 2fc5b54368a1bf1d2d74b4d3b8eea5309a653e38 < 9fcedabaae0096f712bbb4ccca6a8538af1cd1c89fcedabaae0096f712bbb4ccca6a8538af1cd1c8
linuxlinux>= 3d8090bb53424432fa788fe9a49e8ceca74f0544 < 0baf92d0b1590b903c1f4ead75e61715e50e81460baf92d0b1590b903c1f4ead75e61715e50e8146
linuxlinux>= 6.12.43 < 6.12.506.12.50
linuxlinux>= 6.15.11 < 6.166.16
linuxlinux>= 6.16.2 < 6.16.106.16.10
linuxlinux>= 6.6.103 < 6.6.1096.6.109
linuxlinux>= 94f39804d891cffe4ce17737d295f3b195bc7299 < cd8ae32e4e4652db55bce6b9c79267d8946765a9cd8ae32e4e4652db55bce6b9c79267d8946765a9
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel>= 0 < 6.12.57-16.12.57-1
linuxlinux_kernel>= 0 < 6.16.10-16.16.10-1
linuxlinux_kernel>= 0 < 6.8.0-106.1066.8.0-106.106
linuxlinux_kernel>= 6.12.43 < 6.12.506.12.50
linuxlinux_kernel>= 6.15.11 < 6.166.16
linuxlinux_kernel>= 6.16.2 < 6.16.106.16.10
linuxlinux_kernel>= 6.6.103 < 6.6.1096.6.109
msrcazl3_kernel_6.6.104.2-1_on_azure_linux_3.0

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_ubuntu7.8HIGH
vendor_msrc5.6MEDIUM
vendor_debian5.5LOW
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.