CVE-2025-40319

Source
https://cve.org/CVERecord?id=CVE-2025-40319
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40319.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40319
Downstream
Related
Published
2025-12-08T00:46:46.448Z
Modified
2026-03-12T02:15:10.934080Z
Summary
bpf: Sync pending IRQ work before freeing ring buffer
Details

In the Linux kernel, the following vulnerability has been resolved:

bpf: Sync pending IRQ work before freeing ring buffer

Fix a race where irqwork can be queued in bpfringbufcommit() but the ring buffer is freed before the work executes. In the syzbot reproducer, a BPF program attached to schedswitch triggers bpfringbufcommit(), queuing an irqwork. If the ring buffer is freed before this work executes, the irqwork thread may accesses freed memory. Calling irq_work_sync(&rb->work) ensures that all pending irq_work complete before freeing the buffer.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40319.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
457f44363a8894135c85b7a9afd2bd8196db24ab
Fixed
47626748a2a00068dbbd5836d19076637b4e235b
Fixed
de2ce6b14bc3e565708a39bdba3ef9162aeffc72
Fixed
e1828c7a8d8135e21ff6adaaa9458c32aae13b11
Fixed
6451141103547f4efd774e912418a3b4318046c6
Fixed
10ca3b2eec384628bc9f5d8190aed9427ad2dde6
Fixed
430e15544f11f8de26b2b5109c7152f71b78295e
Fixed
4e9077638301816a7d73fa1e1b4c1db4a7e3b59c

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40319.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.8.0
Fixed
5.10.247
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.197
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.159
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.117
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.58
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.17.8

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40319.json"