# CVE-2025-40319: bpf: Sync pending IRQ work before freeing ring buffer

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-12-08T00:46:46.448Z
- Modified: 2026-10-15T22:19:08.003Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 457f44363a8894135c85b7a9afd2bd8196db24ab before 47626748a2a00068dbbd5836d19076637b4e235b; from 457f44363a8894135c85b7a9afd2bd8196db24ab before de2ce6b14bc3e565708a39bdba3ef9162aeffc72; from 457f44363a8894135c85b7a9afd2bd8196db24ab before e1828c7a8d8135e21ff6adaaa9458c32aae13b11; from 457f44363a8894135c85b7a9afd2bd8196db24ab before 6451141103547f4efd774e912418a3b4318046c6; from 457f44363a8894135c85b7a9afd2bd8196db24ab before 10ca3b2eec384628bc9f5d8190aed9427ad2dde6; from 457f44363a8894135c85b7a9afd2bd8196db24ab before 430e15544f11f8de26b2b5109c7152f71b78295e; from 457f44363a8894135c85b7a9afd2bd8196db24ab before 4e9077638301816a7d73fa1e1b4c1db4a7e3b59c; 5.8 (not affected: before 5.8; from 5.10.247 up to 5.10.*; from 5.15.197 up to 5.15.*; from 6.1.159 up to 6.1.*; from 6.6.117 up to 6.6.*; from 6.12.58 up to 6.12.*; from 6.17.8 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/47626748a2a00068dbbd5836d19076637b4e235b>
- <https://git.kernel.org/stable/c/de2ce6b14bc3e565708a39bdba3ef9162aeffc72>
- <https://git.kernel.org/stable/c/e1828c7a8d8135e21ff6adaaa9458c32aae13b11>
- <https://git.kernel.org/stable/c/6451141103547f4efd774e912418a3b4318046c6>
- <https://git.kernel.org/stable/c/10ca3b2eec384628bc9f5d8190aed9427ad2dde6>
- <https://git.kernel.org/stable/c/430e15544f11f8de26b2b5109c7152f71b78295e>
- <https://git.kernel.org/stable/c/4e9077638301816a7d73fa1e1b4c1db4a7e3b59c>

## Sources

- CVE List: [CVE-2025-40319](https://www.cve.org/CVERecord?id=CVE-2025-40319), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-40319](https://nvd.nist.gov/vuln/detail/CVE-2025-40319), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-40319 · Whole record: https://cve.day/CVE-2025-40319.json · Rebuilt by cve.day 2026-11-25T22:59:08.403Z
