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

VectorAV: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

Weakness Enumeration

Related Identifiers

AZL-68457
BDU:2025-13242
CVE-2025-39965
MGASA-2025-0309
MGASA-2025-0310
OPENSUSE-SU-2025:20091-1
SUSE-SU-2025:21040-1
SUSE-SU-2025:21052-1
SUSE-SU-2025:21056-1
SUSE-SU-2025:21064-1
SUSE-SU-2025:21080-1
SUSE-SU-2025:21147-1
SUSE-SU-2025:21180-1
SUSE-SU-2025:4057-1
SUSE-SU-2025:4111-1
SUSE-SU-2025:4128-1
SUSE-SU-2025:4132-1
SUSE-SU-2025:4139-1
SUSE-SU-2025:4140-1
SUSE-SU-2025:4141-1
SUSE-SU-2025:4149-1
SUSE-SU-2025:4301-1
SUSE-SU-2025:4320-1
USN-8095-1
USN-8095-2
USN-8095-3
USN-8095-4
USN-8095-5
USN-8100-1
USN-8125-1
USN-8126-1
USN-8165-1
USN-8261-1

Affected Products

Linux Kernel
Linuxmint
Suse
Ubuntu