{"id":"CVE-2025-40319","aliases":["CVE-2025-40319"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Sync pending IRQ work before freeing ring buffer","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nbpf: Sincronizar el trabajo IRQ pendiente antes de liberar el búfer de anillo\n\nCorrige una condición de carrera donde irq_work puede ser encolado en bpf_ringbuf_commit() pero el búfer de anillo es liberado antes de que el trabajo se ejecute. En el reproductor de syzbot, un programa BPF adjunto a sched_switch activa bpf_ringbuf_commit(), encolando un irq_work. Si el búfer de anillo es liberado antes de que este trabajo se ejecute, el hilo de irq_work puede acceder a memoria liberada. Llamar a 'irq_work_sync(&rb -> work)' asegura que todo el irq_work pendiente se complete antes de liberar el búfer.","source":"nvd"}],"published":"2025-12-08T00:46:46.448Z","modified":"2026-10-15T22:19:08.003Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"457f44363a8894135c85b7a9afd2bd8196db24ab","fixed":"47626748a2a00068dbbd5836d19076637b4e235b","status":"affected"},{"type":"git","introduced":"457f44363a8894135c85b7a9afd2bd8196db24ab","fixed":"de2ce6b14bc3e565708a39bdba3ef9162aeffc72","status":"affected"},{"type":"git","introduced":"457f44363a8894135c85b7a9afd2bd8196db24ab","fixed":"e1828c7a8d8135e21ff6adaaa9458c32aae13b11","status":"affected"},{"type":"git","introduced":"457f44363a8894135c85b7a9afd2bd8196db24ab","fixed":"6451141103547f4efd774e912418a3b4318046c6","status":"affected"},{"type":"git","introduced":"457f44363a8894135c85b7a9afd2bd8196db24ab","fixed":"10ca3b2eec384628bc9f5d8190aed9427ad2dde6","status":"affected"},{"type":"git","introduced":"457f44363a8894135c85b7a9afd2bd8196db24ab","fixed":"430e15544f11f8de26b2b5109c7152f71b78295e","status":"affected"},{"type":"git","introduced":"457f44363a8894135c85b7a9afd2bd8196db24ab","fixed":"4e9077638301816a7d73fa1e1b4c1db4a7e3b59c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.8","status":"unaffected"},{"type":"semver","introduced":"5.10.247","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.197","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.159","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/47626748a2a00068dbbd5836d19076637b4e235b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de2ce6b14bc3e565708a39bdba3ef9162aeffc72","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e1828c7a8d8135e21ff6adaaa9458c32aae13b11","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6451141103547f4efd774e912418a3b4318046c6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/10ca3b2eec384628bc9f5d8190aed9427ad2dde6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/430e15544f11f8de26b2b5109c7152f71b78295e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4e9077638301816a7d73fa1e1b4c1db4a7e3b59c","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:59:12.535Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40319","url":"https://www.cve.org/CVERecord?id=CVE-2025-40319","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:43.846Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40319","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40319","licence":"Public domain","modified":"2026-10-15T22:19:08.003Z"}],"updatedAt":"2026-11-25T22:59:08.403Z","epss":{"score":0.00154,"percentile":0.04802,"date":"2026-12-01T12:00:22.000Z"}}