Vulnerability in Linux

CVE-2025-40319

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.

EPSS: 0.002 (6.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Linux — versions 457f44363a8894135c85b7a9afd2bd8196db24ab, 5.8, 0

References

Frequently asked questions

What is CVE-2025-40319?
CVE-2025-40319 is a high-severity vulnerability in Linux. CVSS score: 7.8/10. Published 2025-12-08.
How severe is CVE-2025-40319?
High severity. CVSS v3 base score is 7.8 out of 10.