CVE-2025-38166
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-38166 is a Linux kernel vulnerability in the BPF and TLS (Transport Layer Security) sockmap implementation that can trigger a kernel panic (denial of service). The flaw was disclosed on July 3, 2025, and affects Linux kernel versions 4.20–6.1.141, 6.2–6.6.93, 6.7–6.12.33, and 6.13–6.15.2, as well as Debian Linux 11.0. It carries a CVSS v3.1 base score of 5.5 (Medium) (Red Hat Advisory, Red Hat Bugzilla).

Technical details

The root cause is improper state management (CWE-664) in tls_sw_sendmsg_locked() when a BPF program calls bpf_msg_push_data() during TX verdict processing, increasing the size of msg_pl->sg. If cork_bytes is set and sg.size is smaller than cork_bytes, the code attempts to roll back to non-zero-copy logic by reverting msg->msg_iter; however, because msg_pl->sg.size has already been increased, the revert calculation (iov_iter_revert(&msg->msg_iter, msg_pl->sg.size - orig_size)) exceeds the actual iterator bounds, triggering a kernel BUG at lib/iov_iter.c:629. The fix eliminates the erroneous rollback path: when cork_bytes is set and a cork situation occurs, the code now proceeds directly to zero-copy logic and returns the copied byte count without error, consistent with the behavior of non-TLS TCP BPF sockets (Red Hat Bugzilla).

Impact

Successful exploitation causes a kernel panic, resulting in a complete system crash and denial of service. The impact is limited to availability — there is no confidentiality or integrity impact. An attacker with low-privileged local access who can load BPF programs and interact with TLS sockmap sockets can crash the affected host, potentially disrupting all services running on it (Red Hat Advisory, Red Hat Bugzilla).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.018% (0.000180), reflecting very low probability of exploitation in the near term. Exploitation requires local access with at least low privileges and the ability to load BPF programs (Red Hat Advisory).

Mitigation and workarounds

Update the Linux kernel to a patched version: 6.1.142 or later (for the 6.1 stable branch), 6.6.94 or later, 6.12.34 or later, or 6.15.3 or later. Vendor-specific patches have been issued by Red Hat (RHSA-2026:18134 for RHEL 10, RHSA-2026:18587 for RHEL 9), Debian (DSA-5973-1, DLA-4328-1), SUSE, and Ubuntu (USN-7769-1, USN-7769-2, USN-7789-1). As a workaround where patching is not immediately possible, restricting unprivileged BPF program loading (e.g., setting kernel.unprivileged_bpf_disabled=1) reduces the attack surface (Red Hat Bugzilla, Red Hat Advisory).

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-2026-74576HIGH7.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-6.17
NoYesAug 15, 2026
CVE-2026-74578HIGH7.1
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.8
NoYesAug 16, 2026
CVE-2026-74579LOW3.4
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency-hwe-5.15
NoYesAug 17, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • perf
NoNoAug 21, 2026
CVE-2026-74577NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 15, 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