CVE-2025-40319
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40319 is a race condition vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) ring buffer subsystem. The flaw occurs when IRQ (Interrupt Request) work is queued during bpf_ringbuf_commit() but the ring buffer is freed before the queued work executes, potentially causing the IRQ work thread to access freed memory (use-after-free). It affects Linux kernel versions from 5.8 onward, with patches available for stable branches including 5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.58, 6.17.8, and 6.18. The vulnerability was published on December 8, 2025, and carries a CVSS v3.1 base score of 7.8 (High) (Microsoft MSRC, Feedly).

Technical details

The root cause is a time-of-check/time-of-use race condition (CWE-416: Use After Free) in the Linux kernel's BPF ring buffer implementation. When a BPF program attached to a sched_switch tracepoint calls bpf_ringbuf_commit(), it queues an irq_work item. If the ring buffer is concurrently freed (e.g., during map cleanup) before the IRQ work executes, the IRQ work thread dereferences the now-freed rb->work memory. The fix, identified via syzbot fuzzing, involves calling irq_work_sync(&rb->work) before freeing the buffer to ensure all pending IRQ work completes first. The vulnerability requires local access with low privileges to trigger, as a user must be able to load and attach BPF programs (Microsoft MSRC, Feedly).

Impact

Successful exploitation could lead to memory corruption via use-after-free, potentially enabling a local attacker with low privileges to escalate privileges, execute arbitrary code in kernel context, or cause a denial of service (kernel crash). The CVSS assessment reflects high confidentiality, integrity, and availability impacts, indicating that full system compromise is theoretically achievable. The scope is limited to the local system, but kernel-level code execution could facilitate further lateral movement within a compromised environment (Microsoft MSRC, Feedly).

Exploitability

No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation as of the time of writing. The vulnerability was discovered through syzbot, Google's automated kernel fuzzing infrastructure, rather than through active threat actor activity. The EPSS score is approximately 0.024% (0.000240), reflecting a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Feedly).

Mitigation and workarounds

The primary remediation is to update to a patched Linux kernel version: 5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.58, 6.17.8, or 6.18. Distribution-specific updates are available from Red Hat, Ubuntu (USN-8096-1, USN-8096-2, USN-8096-3, USN-8096-5), Debian (DLA-4436-1), Amazon Linux 2 (ALAS2KERNEL-5.15-2025-096, ALAS2KERNEL-5.10-2026-112), and Oracle Linux. As a temporary workaround for systems that cannot be immediately patched, administrators should restrict BPF program loading to trusted users only (e.g., via kernel.unprivileged_bpf_disabled=1 sysctl) and consider deploying additional kernel security modules to limit BPF program attachment (Microsoft MSRC, Red Hat CVE, Ubuntu USN).

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-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-core
NoYesAug 12, 2026
CVE-2026-68449NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel
NoYesAug 12, 2026
CVE-2026-68448NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules-extra
NoYesAug 12, 2026
CVE-2026-68447NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules
NoYesAug 12, 2026
CVE-2026-68446NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 12, 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