Junglewise Threat Intelligence

CVE-2025-38192: Linux Kernel NULL pointer dereference in BPF protocol conversion

CVE-2025-38192 · Severity: medium · CVSS 5.5 · Published 2025-07-04

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's networking component could allow a local user to cause a system crash. This occurs when specific network programs (BPF) incorrectly handle the conversion of network traffic between IPv4 and IPv6 protocols. An exploit would result in a kernel crash (Blue Screen equivalent), leading to a complete service outage for the affected system.

Technical details

A NULL pointer dereference vulnerability exists in the Linux kernel networking stack (specifically in ip6_rcv_core) due to improper handling of the destination entry (dst) when changing a socket buffer (skb) protocol. When a BPF program (such as a NAT46 implementation) flips ingress packets from IPv4 to IPv6, it may leave a stale IPv4 destination entry on the skb. When the IPv6 stack subsequently attempts to process this packet, it accesses the incompatible destination entry, leading to a kernel panic. The fix involves ensuring BPF helpers that modify skb->protocol also clear the associated dst entry. This is reachable by local users capable of loading or triggering specific BPF network programs.

Affected products

  • Linux Linux Kernel 4.8 to 6.6.95, 6.7 to 6.12.35, 6.13 to 6.15.4, 6.16-rc1

Timeline

  • 2025-07-04: advisory: NVD Published Date
  • 2025-06-27: patched: Patch committed to stable tree

References

Related threats