U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2025-40319 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
https://git.kernel.org/stable/c/10ca3b2eec384628bc9f5d8190aed9427ad2dde6 kernel.org
https://git.kernel.org/stable/c/430e15544f11f8de26b2b5109c7152f71b78295e kernel.org
https://git.kernel.org/stable/c/47626748a2a00068dbbd5836d19076637b4e235b kernel.org
https://git.kernel.org/stable/c/4e9077638301816a7d73fa1e1b4c1db4a7e3b59c kernel.org
https://git.kernel.org/stable/c/6451141103547f4efd774e912418a3b4318046c6 kernel.org
https://git.kernel.org/stable/c/de2ce6b14bc3e565708a39bdba3ef9162aeffc72 kernel.org
https://git.kernel.org/stable/c/e1828c7a8d8135e21ff6adaaa9458c32aae13b11 kernel.org

Weakness Enumeration

CWE-ID CWE Name Source

Change History

1 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2025-40319
NVD Published Date:
12/07/2025
NVD Last Modified:
12/07/2025
Source:
kernel.org