All reports
Medium

kernel: bpf: Fix mmap_lock leak in irq_work path

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-90247

Probability of exploitation in the next 30 days: 0.22%

FIRST EPSS · 2026-11-24

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix mmap_lock leak in irq_work path stack_map_get_build_id_offset() introduced a per-CPU irq_work to defer mmap_read_unlock() from NMI context, and bpf_find_vma() later reused the same mmap_unlock_work. Both callers only check whether the work is busy before taking mmap_lock, so a nested caller can reuse the slot before the first caller queues it. Two read locks may then be acquired while only one deferred unlock runs, leaking a read lock and blocking exit_mmap(). Reserve the per-CPU slot before mmap_read_trylock(). Use the same wrapper in stackmap and bpf_find_vma() so both callers release the reservation on trylock failure. Keep rejecting the slot while the irq_work remains busy. Release it after the irq_work callback unlocks the mm.

A flaw was found in the Linux kernel's Berkeley Packet Filter (BPF) component. This vulnerability allows for a memory map (mmap) lock to be leaked when handling interrupt work, specifically within the stack_map_get_build_id_offset() and bpf_find_vma() functions. This can lead to a situation where two read locks are acquired but only one is released, ultimately blocking the system's ability to exit memory map operations. The most significant consequence of this flaw is a denial of service (DoS), which can prevent legitimate users from accessing system resources.