{"id":"CVE-2025-40319","published":"2025-12-08T00:46:46Z","modified":"2026-10-15T22:02:43Z","title":"bpf: Sync pending IRQ work before freeing ring buffer","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Sync pending IRQ work before freeing ring buffer\n\nFix a race where irq_work can be queued in bpf_ringbuf_commit()\nbut the ring buffer is freed before the work executes.\nIn the syzbot reproducer, a BPF program attached to sched_switch\ntriggers bpf_ringbuf_commit(), queuing an irq_work. If the ring buffer\nis freed before this work executes, the irq_work thread may accesses\nfreed memory.\nCalling `irq_work_sync(&rb->work)` ensures that all pending irq_work\ncomplete before freeing the buffer.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00154,"percentile":0.04649,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/47626748a2a00068dbbd5836d19076637b4e235b","tags":[]},{"url":"https://git.kernel.org/stable/c/de2ce6b14bc3e565708a39bdba3ef9162aeffc72","tags":[]},{"url":"https://git.kernel.org/stable/c/e1828c7a8d8135e21ff6adaaa9458c32aae13b11","tags":[]},{"url":"https://git.kernel.org/stable/c/6451141103547f4efd774e912418a3b4318046c6","tags":[]},{"url":"https://git.kernel.org/stable/c/10ca3b2eec384628bc9f5d8190aed9427ad2dde6","tags":[]},{"url":"https://git.kernel.org/stable/c/430e15544f11f8de26b2b5109c7152f71b78295e","tags":[]},{"url":"https://git.kernel.org/stable/c/4e9077638301816a7d73fa1e1b4c1db4a7e3b59c","tags":[]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":0.93},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 457f44363a8894135c85b7a9afd2bd8196db24ab, < 47626748a2a00068dbbd5836d19076637b4e235b",">= 457f44363a8894135c85b7a9afd2bd8196db24ab, < de2ce6b14bc3e565708a39bdba3ef9162aeffc72",">= 457f44363a8894135c85b7a9afd2bd8196db24ab, < e1828c7a8d8135e21ff6adaaa9458c32aae13b11",">= 457f44363a8894135c85b7a9afd2bd8196db24ab, < 6451141103547f4efd774e912418a3b4318046c6",">= 457f44363a8894135c85b7a9afd2bd8196db24ab, < 10ca3b2eec384628bc9f5d8190aed9427ad2dde6",">= 457f44363a8894135c85b7a9afd2bd8196db24ab, < 430e15544f11f8de26b2b5109c7152f71b78295e",">= 457f44363a8894135c85b7a9afd2bd8196db24ab, < 4e9077638301816a7d73fa1e1b4c1db4a7e3b59c"]},{"vendor":"Linux","product":"Linux","versions":["5.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:59:12.535828Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-201626","exploited":false,"provenance":"source"}}