CVE Catalog

CVE-2025-40319

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.13%

3th percentile - higher than 3% of all known CVEs

Summary

In the Linux kernel, a race condition in the BPF ring buffer could queue irq_work before buffer freeing, causing use-after-free. The fix synchronizes irq_work before freeing the buffer.

Risk Assessment

Use-after-free can lead to arbitrary code execution or system crashes, especially in BPF program contexts.

Recommendation

Apply the kernel patch that synchronizes irq_work before freeing the ring buffer.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS