CVE-2025-40319: Linux kernel · bpf: Sync pending IRQ work before freeing ring buffer Fix a race where irq_work
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 3% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 8 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
AI-suggested
A fix has been implemented in the Linux kernel to synchronize pending irq_work before freeing the ring buffer, eliminating the race condition. Users should apply the official kernel updates that include this fix. Patch status is not explicitly confirmed here; check the Linux kernel vendor advisory or source repository for the exact fixed versions and apply updates accordingly.
Description
A race condition vulnerability in the Linux kernel's BPF subsystem was resolved by ensuring synchronization of pending IRQ work before freeing the ring buffer. The issue could cause the irq_work thread to access freed memory if the ring buffer is freed before the queued irq_work executes. This vulnerability was triggered by a BPF program attached to sched_switch that calls bpf_ringbuf_commit(), queuing irq_work. The fix involves calling irq_work_sync() to wait for all pending irq_work to complete before freeing the buffer.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40319 (opens in a new tab)
- git.kernel.org/stable/c/10ca3b2eec384628bc9f5d8190aed9427ad2dde6 (opens in a new tab)
- git.kernel.org/stable/c/430e15544f11f8de26b2b5109c7152f71b78295e (opens in a new tab)
- git.kernel.org/stable/c/47626748a2a00068dbbd5836d19076637b4e235b (opens in a new tab)
- git.kernel.org/stable/c/4e9077638301816a7d73fa1e1b4c1db4a7e3b59c (opens in a new tab)
- git.kernel.org/stable/c/6451141103547f4efd774e912418a3b4318046c6 (opens in a new tab)
- git.kernel.org/stable/c/de2ce6b14bc3e565708a39bdba3ef9162aeffc72 (opens in a new tab)
- git.kernel.org/stable/c/e1828c7a8d8135e21ff6adaaa9458c32aae13b11 (opens in a new tab)