PT-2025-41787 · Linux+3 · Linux Kernel+3
Published
2025-08-29
·
Updated
2026-05-07
·
CVE-2025-39965
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Linux Kernel (affected versions not specified)
Description
The Linux kernel contains a flaw within the
xfrm alloc spi() function in the net/xfrm/xfrm state.c module. Specifically, the function incorrectly handles Security Parameter Index (SPI) allocation, potentially leading to a use-after-free (UAF) condition. The issue arises because a commit introduced duplicate SPI handling, causing states to be added to the byspi list with a value of 0, which previously indicated no SPI was assigned. The xfrm state delete function does not remove these states from the byspi list, resulting in a UAF when the list is processed subsequently. This can lead to a denial-of-service condition.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Use After Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Linux Kernel
Linuxmint
Suse
Ubuntu