CVE-2025-37959
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-37959 is a vulnerability in the Linux kernel related to packet handling during network namespace transitions, discovered and disclosed on May 20, 2025. The vulnerability affects the bpfredirectpeer functionality when redirecting packets between network namespaces (NVD Database, Wiz Report).

Technical details

The vulnerability occurs when bpfredirectpeer is used to redirect packets to a device in another network namespace, where the socket buffer (skb) isn't properly scrubbed. This leads to skb information from one namespace potentially being misused in another namespace. The issue particularly affects scenarios involving IPsec decryption, where XFRM state information persists across namespace transitions (Wiz Report).

Impact

The vulnerability can cause traffic disruption in containerized environments, particularly affecting systems using Cilium for network management. When packets are redirected after IPsec decryption to a container namespace, they are incorrectly dropped due to mismatched XFRM states between namespaces (Wiz Report).

Mitigation and workarounds

The issue has been resolved by implementing packet scrubbing when using bpfredirectpeer, similar to the approach used in typical netns switches via veth devices. The fix maintains the skb->mark and skb->tstamp values while scrubbing other potentially problematic information. For the Debian stable distribution (bookworm), these problems have been fixed in version 6.1.140-1 (Debian Security).

Additional resources


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-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-devel
NoYesDec 09, 2025
CVE-2025-40343N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 09, 2025
CVE-2025-40342N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-trace
NoYesDec 09, 2025
CVE-2025-40341N/AN/A
  • Linux KernelLinux Kernel
  • kernel-headers
NoYesDec 09, 2025
CVE-2025-40340N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-modules-extra
NoYesDec 09, 2025

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