Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-39797

published

xfrm: Duplicate SPI Handling

Published
12 Sep 2025, 15:59:33 UTC
Updated
05 Nov 2026, 21:12:58 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < fb58962aa3b9359988c7b5b15a971fd9ad5b0ecd · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3d8090bb53424432fa788fe9a49e8ceca74f0544 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2fc5b54368a1bf1d2d74b4d3b8eea5309a653e38 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < c67d4e7a8f90fb6361ca89d4d5c9a28f4e935e47 · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 29e9158f91f99057dbd35db5e8674d93b38549fe · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 94f39804d891cffe4ce17737d295f3b195bc7299 · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.12 (affected) · 0 to < 2.6.12 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.103 through 6.6.* (unaffected · semver) · 6.12.43 through 6.12.* (unaffected · semver) · 6.15.11 through 6.15.* (unaffected · semver) · 6.16.2 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1208 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-211.7.1.el10_2 ALSA-2026:18134
Debian bookworm linux Advisory build 6.1.192-1 DLA-4906-1
Oracle Linux 10 kernelx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 10 kernel-doc Advisory build 6.12.0-211.7.1.el10_2 ALSA-2026:18134
AlmaLinux 9 kernel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-debug Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-doc Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-headers Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-modules Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-tools Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 libperf Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 perf Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 python3-perf Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 rtla Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
AlmaLinux 9 rv Advisory build 5.14.0-687.31.1.el9_8 ALSA-2026:47040
Oracle Linux 10 kernel-abi-stablelistsx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-corex86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-cross-headersaarch64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-cross-headersx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-debugx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-debug-corex86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-debug-develx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-debug-devel-matchedx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-debug-modulesx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-debug-modules-corex86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-debug-modules-extrax86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-debug-uki-virtx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-develx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-devel-matchedx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-docx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-headersaarch64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-headersx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-modulesx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-modules-corex86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-modules-extrax86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-modules-extra-matchedx86_64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134
Oracle Linux 10 kernel-toolsaarch64 Advisory build 0:6.12.0-211.34.1.el10_2 ELSA-2026-18134

Package entries are limited to the first 100 builds and 100 linked advisories.

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 in charon.conf : spi_min = 0x10000000 spi_max = 0x10000002 This limits the system to only 2 usable SPI values. Next, create more than 2 Child SA. each using unique pair of src/dst address. As soon as the 3rd Child SA is initiated, it will be assigned a duplicate SPI, since the SPI pool is already exhausted. With a narrow SPI range, the issue is consistently reproducible. With a broader/default range, it becomes rare and unpredictable. Current implementation: xfrm_spi_hash() lookup function computes hash using daddr, proto, and family. So if two SAs have the same SPI but different destination addresses, then they will: a. Hash into different buckets b. Be stored in different linked lists (byspi + h) c. Not be seen in the same hlist_for_each_entry_rcu() iteration. As a result, the lookup will result in NULL and kernel allows that Duplicate SPI Proposed Change: xfrm_state_lookup_spi_proto() does a truly global search - across all states, regardless of hash bucket and matches SPI and proto.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

66

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < fb58962aa3b9359988c7b5b15a971fd9ad5b0ecd (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3d8090bb53424432fa788fe9a49e8ceca74f0544 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2fc5b54368a1bf1d2d74b4d3b8eea5309a653e38 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < c67d4e7a8f90fb6361ca89d4d5c9a28f4e935e47 (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 29e9158f91f99057dbd35db5e8674d93b38549fe (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 94f39804d891cffe4ce17737d295f3b195bc7299 (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.12 (affected)0 to < 2.6.12 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.103 through 6.6.* (unaffected · semver)6.12.43 through 6.12.* (unaffected · semver)6.15.11 through 6.15.* (unaffected · semver)6.16.2 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

2

Linux · cna

xfrm: Duplicate SPI Handling

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
bc525513ad7a25b39de3fb320fa9663056b82effefb8475834127e439ced1b88
Ingested
07 Nov 2026, 23:35:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected