CVE-2025-40319
Linux Kernel 5.8.0-6.17.7 - Use-After-Free in BPF Ring Buffer IRQ Work
Title source: llmDescription
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.
References (7)
Core 7
Core References
Scores
EPSS
0.0006
EPSS Percentile
18.3%
Details
Status
published
Products (22)
linux/Kernel
5.11.0 - 5.15.197linux
linux/Kernel
5.16.0 - 6.1.159linux
linux/Kernel
5.8.0 - 5.10.247linux
linux/Kernel
6.13.0 - 6.17.8linux
linux/Kernel
6.2.0 - 6.6.117linux
linux/Kernel
6.7.0 - 6.12.58linux
Linux/Linux
< 5.8
Linux/Linux
457f44363a8894135c85b7a9afd2bd8196db24ab - 10ca3b2eec384628bc9f5d8190aed9427ad2dde6
Linux/Linux
457f44363a8894135c85b7a9afd2bd8196db24ab - 430e15544f11f8de26b2b5109c7152f71b78295e
Linux/Linux
457f44363a8894135c85b7a9afd2bd8196db24ab - 47626748a2a00068dbbd5836d19076637b4e235b
... and 12 more
Published
Dec 08, 2025
Tracked Since
Feb 18, 2026