Menu

Star on GitHub · 3.2k

CVE-2025-39797

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: xfrm: Duplicate SPI Handling The issue originates when Strongswan initiates an XFRM_MSG_ALLOCSPI Netlink message, which trigger…

Published Sep 12, 2025EPSS 0.16%

Overview

CVE-2025-39797 is a high-severity vulnerability. It was published on September 12, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

xfrm: Duplicate SPI Handling

The issue originates when Strongswan initiates an XFRM_MSG_ALLOCSPI

Netlink message, which triggers the kernel function xfrm_alloc_spi().

This function is expected to ensure uniqueness of the Security Parameter

Index (SPI) for inbound Security Associations (SAs). However, it can

return success even when the requested SPI is already in use, leading

to duplicate SPIs assigned to multiple inbound SAs, differentiated

only by their destination addresses.

This behavior causes inconsistencies during SPI lookups for inbound packets.

Since the lookup may return an arbitrary SA among those with the same SPI,

packet processing can fail, resulting in packet drops.

According to RFC 4301 section 4.4.2 , for inbound processing a unicast SA

is uniquely identified by the SPI and optionally protocol.

Reproducing the Issue Reliably:

To consistently reproduce the problem, restrict the available SPI range

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-39797?

CVE-2025-39797 is a high-severity vulnerability. It was published on September 12, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-39797?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-39797?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-39797?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-39797 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2025

View all