CVE-2025-40319

bpf: Sync pending IRQ work before freeing ring buffer

State
Published
Severity
7.8 High
Published
Dec 8, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 457f44363a8894135c85b7a9afd2bd8196db24ab to before 47626748a2a00068dbbd5836d19076637b4e235bAffected
  • 457f44363a8894135c85b7a9afd2bd8196db24ab to before de2ce6b14bc3e565708a39bdba3ef9162aeffc72Affected
  • 457f44363a8894135c85b7a9afd2bd8196db24ab to before e1828c7a8d8135e21ff6adaaa9458c32aae13b11Affected
  • 457f44363a8894135c85b7a9afd2bd8196db24ab to before 6451141103547f4efd774e912418a3b4318046c6Affected
  • 457f44363a8894135c85b7a9afd2bd8196db24ab to before 10ca3b2eec384628bc9f5d8190aed9427ad2dde6Affected
  • 457f44363a8894135c85b7a9afd2bd8196db24ab to before 430e15544f11f8de26b2b5109c7152f71b78295eAffected
  • 457f44363a8894135c85b7a9afd2bd8196db24ab to before 4e9077638301816a7d73fa1e1b4c1db4a7e3b59cAffected
LinuxLinux
  • 5.8Affected
  • before 5.8Not affected
  • 5.10.247 through 5.10.*Not affected
  • 5.15.197 through 5.15.*Not affected
  • 6.1.159 through 6.1.*Not affected
  • 6.6.117 through 6.6.*Not affected
  • 6.12.58 through 6.12.*Not affected
  • 6.17.8 through 6.17.*Not affected
  • 6.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.