Linux Kernel: security vulnerability (CVE-2025-21864)
Published Last modified Sources: Siemens ProductCERT, BSI, SUSE, Debian LTS, Red Hat, Debian, CVE.org, Msrc Update Guide, EUVD
What is affected, what to do
In the Linux kernel, the following vulnerability has been resolved: tcp: drop secpath at the same time as we currently drop dst Xiumei reported hitting the WARN in xfrm6_tunnel_net_exit while running tests that boil down to: - create a pair of netns - run a basic TCP test over ipcomp6 - delete the pair of netns The xfrm_state found on spi_byaddr was not deleted at the time we delete the netns, because we still have a reference on it. This lingering reference comes from a secpath (which holds a ref on the xfrm_state), which is still attached to an skb.
Update Linux Kernel to version 6.1.130, Linux Kernel to version 6.6.80, Linux Kernel to version 6.12.17.
- Affected
- Linux Kernel
lt 5.19..6.1.130 - Linux Kernel
lt 6.2..6.6.80 - Linux Kernel
lt 6.7..6.12.17 - Linux Kernel
lt 6.13..6.13.5
- Linux Kernel
- Fixed in
- Linux Kernel
6.1.130 - Linux Kernel
6.6.80 - Linux Kernel
6.12.17 - Linux Kernel
6.13.5 - Linux Kernel
6.14
- Linux Kernel
Not sure whether and how you are affected? Ask a question about this vulnerability
Metrics
7.8
Priority
XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.
Source: Vendor (CNA), CVSS v3
7.8
CVSS v3
Severity High on the scale from 0 to 10.
Source: Siemens ProductCERT, BSI, SUSE, Debian LTS, Red Hat, Debian, CVE.org, Msrc Update Guide, EUVD
0.3 %
EPSS score
Low — model estimates < 1% exploitation likelihood.
Source: FIRST EPSS, percentile 20.1
Show all metrics
- Severity
- High
Priority (0–325)
The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?
Read in glossary- 50.39 Methodology
Exploit maturity
An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.
Read in glossary- no public PoC known
XIEM Effective CVSS
XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.
Read in glossary- 7.8 Methodology
CVSS v3
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 7.8
EPSS score
The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.
Read in glossary- 0.3 %
- Low — model estimates < 1% exploitation likelihood.
EPSS percentile
The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.
Read in glossary- 20.1
- Elevated — this CVE ranks above at least 10% of all CVEs scored today.
KEV status
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- —
- Published
- CISA assessment (SSVC)
- Exploitation: none known · not automatable · Technical impact: partial
- Source: CISA Vulnrichment, as of 1 October 2025
CWE
CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.
Read in glossary- CWE-476
Detection rules
No NEOSEC detection rule is available for this vulnerability yet.
Classification under NIS2 and CRA
Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.
NIS2
NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.
Read in glossary- High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
CRA
The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.
Read in glossary- From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
ISO/IEC 27001
ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.
Read in glossary- Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.
Description
In the Linux kernel, the following vulnerability has been resolved: tcp: drop secpath at the same time as we currently drop dst Xiumei reported hitting the WARN in xfrm6_tunnel_net_exit while running tests that boil down to: - create a pair of netns - run a basic TCP test over ipcomp6 - delete the pair of netns The xfrm_state found on spi_byaddr was not deleted at the time we delete the netns, because we still have a reference on it. This lingering reference comes from a secpath (which holds a ref on the xfrm_state), which is still attached to an skb. This skb is not leaked, it ends up on sk_receive_queue and then gets defer-free'd by skb_attempt_defer_free. The problem happens when we defer freeing an skb (push it on one CPU's defer_list), and don't flush that list before the netns is deleted. In that case, we still have a reference on the xfrm_state that we don't expect at this point. We already drop the skb's dst in the TCP receive path when it's no longer needed, so let's also drop the secpath. At this point, tcp_filter has already called into the LSM hooks that may require the secpath, so it should not be needed anymore. However, in some of those places, the MPTCP extension has just been attached to the skb, so we cannot simply drop all extensions.
Source: siemens_advisory, BSI WID Portal, BSI CSAF, suse_csaf, Debian LTS Advisories, redhat_csaf, Debian Security Advisories, cvelistv5, NVD (NIST), Microsoft Security Update Guide, CVE.org (MITRE), ENISA EUVD
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
| Affected versions | Fixed in | ||
|---|---|---|---|
| Linux | Linux |
|
|
| Dell | Secure Connect Gateway |
|
|
| IBM | Security Verify Access |
|
|
| Siemens | SIMATIC S7 |
|
|
Vendors and products
Affected operating systems
| Linux | debian | linux | bookworm |
| Linux | debian | linux-6.1 | bullseye |
| Linux | linux | linux_kernel | 6.14 |
| Linux | linux | linux_kernel | — |
Weakness classes (CWE)
CWE-476NULL Pointer Dereference
Base
The product dereferences a pointer that it expects to be valid but is NULL.
Entry at MITRE CWE-476
References & sources
- git.kernel.orgstable/c/87858bbf21da239ace300d61dd209907995c0491
- git.kernel.orgstable/c/f1d5e6a5e468308af7759cf5276779d3155c5e98
- git.kernel.orgstable/c/cd34a07f744451e2ecf9005bb7d24d0b2fb83656
- git.kernel.orgstable/c/69cafd9413084cd5012cf5d7c7ec6f3d493726d9
- git.kernel.orgstable/c/9b6412e6979f6f9e0632075f8f008937b5cd4efd
- lists.debian.orgdebian-lts-announce/2025/05/msg00045.html
- Siemens ProductCERTproductcert/html/ssa-082556.html
- Siemens ProductCERTproductcert/html/ssa-019113.html
- Siemens ProductCERTproductcert/html/ssa-457936.html
- Siemens ProductCERTproductcert/html/ssa-784472.html
Changes to this CVE
Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).
Record modifiedLinux
New references:- https://git.kernel.org/stable/c/69cafd9413084cd5012cf5d7c7ec6f3d493726d9
- https://git.kernel.org/stable/c/87858bbf21da239ace300d61dd209907995c0491
- https://git.kernel.org/stable/c/9b6412e6979f6f9e0632075f8f008937b5cd4efd
- https://git.kernel.org/stable/c/cd34a07f744451e2ecf9005bb7d24d0b2fb83656
and 1 more reference
Show 15 original changes
Individual changes of this event as published by NVD Type Action Before After Reference added —https://git.kernel.org/stable/c/69cafd9413084cd5012cf5d7c7ec6f3d493726d9Reference added —https://git.kernel.org/stable/c/87858bbf21da239ace300d61dd209907995c0491Reference added —https://git.kernel.org/stable/c/9b6412e6979f6f9e0632075f8f008937b5cd4efdReference added —https://git.kernel.org/stable/c/cd34a07f744451e2ecf9005bb7d24d0b2fb83656Reference added —https://git.kernel.org/stable/c/f1d5e6a5e468308af7759cf5276779d3155c5e98Reference removed https://git.kernel.org/stable/c/69cafd9413084cd5012cf5d7c7ec6f3d493726d9—Reference removed https://git.kernel.org/stable/c/87858bbf21da239ace300d61dd209907995c0491—Reference removed https://git.kernel.org/stable/c/9b6412e6979f6f9e0632075f8f008937b5cd4efd—Reference removed https://git.kernel.org/stable/c/cd34a07f744451e2ecf9005bb7d24d0b2fb83656—Reference removed https://git.kernel.org/stable/c/f1d5e6a5e468308af7759cf5276779d3155c5e98—Reference type removed https://git.kernel.org/stable/c/69cafd9413084cd5012cf5d7c7ec6f3d493726d9 Types: Patch—Reference type removed https://git.kernel.org/stable/c/87858bbf21da239ace300d61dd209907995c0491 Types: Patch—Reference type removed https://git.kernel.org/stable/c/9b6412e6979f6f9e0632075f8f008937b5cd4efd Types: Patch—Reference type removed https://git.kernel.org/stable/c/cd34a07f744451e2ecf9005bb7d24d0b2fb83656 Types: Patch—Reference type removed https://git.kernel.org/stable/c/f1d5e6a5e468308af7759cf5276779d3155c5e98 Types: Patch—Source identifier: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Record modifiedCVE Program
Show 2 original changes
Individual changes of this event as published by NVD Type Action Before After Reference added —https://lists.debian.org/debian-lts-announce/2025/05/msg00045.htmlReference removed https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html—Source identifier: af854a3a-2127-422b-91ae-364da2661108
Record modifiedSiemens ADP
Show 7 original changes
Individual changes of this event as published by NVD Type Action Before After Affected versions (publisher) added —Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/21xxx/CVE-2025-21864.json">CVE-2025-21864</a>Reference added —https://cert-portal.siemens.com/productcert/html/ssa-019113.htmlReference added —https://cert-portal.siemens.com/productcert/html/ssa-082556.htmlReference added —https://cert-portal.siemens.com/productcert/html/ssa-457936.htmlReference added —https://cert-portal.siemens.com/productcert/html/ssa-784472.htmlReference removed https://cert-portal.siemens.com/productcert/html/ssa-019113.html—Reference removed https://cert-portal.siemens.com/productcert/html/ssa-082556.html—Source identifier: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Record modifiedLinux
CVSS V3.1: AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Show the original change
Individual changes of this event as published by NVD Type Action Before After CVSS added —AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HSource identifier: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<a href="https://intel.neosec.eu/en/cve/CVE-2025-21864"><img src="https://intel.neosec.eu/badge/cve/CVE-2025-21864.svg?lang=en" alt="CVE-2025-21864 – NEOSEC Intel" height="20"></a>