Skip to main content
← All vulnerabilities
CVE-2026-90247

bpf: Fix mmap_lock leak in irq_work path

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.20, 5.5, 6.6.160, 6.12.114, 6.18.52, and 1 more
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 4.19.92 · fixed in 4.20; From 5.4.7 · fixed in 5.5

  • Linux Linux

    5.5

  • KernelLinux

    From 5.5.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6

References 6

git.kernel.org