7.8

CVE-2025-21864: tcp: drop secpath at the same time as we currently drop dst

Modified
AliasesUBUNTU-CVE-2025-21864DEBIAN-CVE-2025-21864
Published 12-03-2025Last modified 10-11-2026

Vulnerability summary

CVE-2025-21864 is a high (CVSS 7.8) NULL Pointer Dereference vulnerability in linux. EPSS estimates a 0.29% chance of exploitation in the next 30 days, higher than 22.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.29%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 24 · Related 19

Timeline

  1. 12-03-2025
    PublishedVulnerability first disclosed.
  2. 10-11-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.29%

Chance of exploitation in the next 30 days

Percentile

23%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.28% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu107 products
  • linux< 6.8.0-78.78
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws< 6.8.0-1035.37
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Linux2 products
  • linux≥ 68822bdf76f10c3dc80609d4e2cdc1e847429086, < 87858bbf21da239ace300d61dd209907995c0491 | ≥ 68822bdf76f10c3dc80609d4e2cdc1e847429086, < f1d5e6a5e468308af7759cf5276779d3155c5e98 | ≥ 68822bdf76f10c3dc80609d4e2cdc1e847429086, < cd34a07f744451e2ecf9005bb7d24d0b2fb83656 | ≥ 68822bdf76f10c3dc80609d4e2cdc1e847429086, < 69cafd9413084cd5012cf5d7c7ec6f3d493726d9 | ≥ 68822bdf76f10c3dc80609d4e2cdc1e847429086, < 9b6412e6979f6f9e0632075f8f008937b5cd4efd | 5.19
  • linux_kernel≥ 5.19, < 6.1.130 | ≥ 6.2, < 6.6.80 | ≥ 6.7, < 6.12.17 | ≥ 6.13, < 6.13.5 | 6.14:rc1 | 6.14:rc2 | 6.14:rc3
Debian1 product
  • linux< 6.1.133-1 | < 6.12.17-1

3 vendors · 110 products

References

24 links
Show all 24 references