Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2025-21864
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21864 is a vulnerability in the Linux kernel's TCP implementation discovered in March 2025. The issue involves improper handling of secpath references when dropping network namespace resources, specifically affecting TCP connections over ipcomp6. The vulnerability was initially reported by Xiumei Mu and received a CVSS v3.1 base score of 5.5 (Medium) (NVD).

Technical details

The vulnerability occurs when an skb (socket buffer) with a secpath reference is deferred for freeing on a CPU's defer_list, and the network namespace is deleted before the list is flushed. This results in a lingering reference to xfrm_state through the secpath, which remains attached to the skb. The issue manifests specifically during TCP tests over ipcomp6 when creating and deleting network namespace pairs. The vulnerability is classified as CWE-476 (NULL Pointer Dereference) and affects Linux kernel versions from 5.19 to 6.13.5 (NVD).

Impact

The vulnerability can lead to a warning in xfrm6_tunnel_net_exit and potential resource leaks when network namespaces are deleted. While the skb itself is not leaked and eventually ends up in sk_receive_queue for deferred freeing, the lingering reference to xfrm_state can cause unexpected behavior during network namespace cleanup (Kernel Patch).

Exploitability

The vulnerability requires local access and specific conditions to be exploited, including the ability to create and delete network namespaces while running TCP tests over ipcomp6. The CVSS metrics indicate Local access (AV:L), Low complexity (AC:L), and Low privileges required (PR:L) (NVD).

Mitigation and workarounds

The issue has been fixed by modifying the TCP receive path to drop the secpath at the same time as the dst is dropped. The fix ensures that the secpath is reset after the LSM hooks have completed their operations but before the MPTCP extension is attached to the skb. The patch has been integrated into multiple kernel versions through the stable tree (Kernel Patch).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.133-1

Fixed

sid

linux: 6.12.17-1

Fixed

trixie

linux: 6.12.17-1

Fixed

RHEL / CentOS

Fixed

RHEL 8

Not Affected

RHEL 9

:appstream:kernel-0:5.14.0-611.5.1.el9_7.src

Fixed

RHEL 10

kernel-0:6.12.0-124.8.1.el10_1.src

Fixed

SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-90048CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-lowlatency
NoYesSep 16, 2026
CVE-2026-90042CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux-ibm
NoNoSep 16, 2026
CVE-2026-90049CRITICAL9.3
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-7.0
NoYesSep 16, 2026
CVE-2026-90041HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-nvidia
NoYesSep 16, 2026
CVE-2026-90039NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-hwe-6.14
NoNoSep 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management