CVE-2025-40319

bpf: Sync pending IRQ work before freeing ring buffer

HIGH
7.8
CVSS Score
Published: December 8, 2025 at 12:46 AM UTC
Updated: October 15, 2026 at 10:19 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.1%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

457f44363a8894135c85b7a9afd2bd8196db24ab5.8
Vendor states this is fixed in 10ca3b2eec384628bc9f5d8190aed9427ad2dde6 (fixed)
Vendor states this is fixed in 430e15544f11f8de26b2b5109c7152f71b78295e (fixed)
Vendor states this is fixed in 47626748a2a00068dbbd5836d19076637b4e235b (fixed)
Vendor states this is fixed in 4e9077638301816a7d73fa1e1b4c1db4a7e3b59c (fixed)
Vendor states this is fixed in 6451141103547f4efd774e912418a3b4318046c6 (fixed)
Vendor states this is fixed in de2ce6b14bc3e565708a39bdba3ef9162aeffc72 (fixed)
Vendor states this is fixed in e1828c7a8d8135e21ff6adaaa9458c32aae13b11 (fixed)
Vendor states this is fixed in 5.10.247 (unaffected)
Vendor states this is fixed in 5.15.197 (unaffected)
Vendor states this is fixed in 5.8 (unaffected)
Vendor states this is fixed in 6.1.159 (unaffected)
Vendor states this is fixed in 6.12.58 (unaffected)
Vendor states this is fixed in 6.17.8 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.117 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card