CVE-2025-40319 Details
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Sync pending IRQ work before freeing ring buffer Fix a race where irq_work can be queued in bpf_ringbuf_commit() but the ring buffer is freed before the work executes. In the syzbot reproducer, a BPF program attached to sched_switch triggers bpf_ringbuf_commit(), queuing an irq_work. If the ring buffer is freed before this work executes, the irq_work thread may accesses freed memory. Calling `irq_work_sync(&rb->work)` ensures that all pending irq_work complete before freeing the buffer.
A vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) implementation can lead to a use-after-free condition. This issue arises because the BPF ring buffer is freed before all pending interrupt work has been completed. The vulnerability is present in the stable versions of the Linux kernel.
The vulnerability has been addressed by modifying the BPF ring buffer free function to synchronize and complete all pending interrupt work before freeing the buffer. Users should upgrade to the latest stable version of the Linux kernel where this fix has been applied.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 8, 2025CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/10ca3b2eec384628bc9f5d8190aed9427ad2dde6 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/430e15544f11f8de26b2b5109c7152f71b78295e | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/47626748a2a00068dbbd5836d19076637b4e235b | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/4e9077638301816a7d73fa1e1b4c1db4a7e3b59c | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/6451141103547f4efd774e912418a3b4318046c6 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/de2ce6b14bc3e565708a39bdba3ef9162aeffc72 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/e1828c7a8d8135e21ff6adaaa9458c32aae13b11 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 14, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 8, 2025 | New CVE Received | kernel.org |
Volerion