CVE-2026-90247: bpf: Fix mmap_lock leak in irq_work path

Published Sep 17, 2026
·
Updated

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

bpf: Fix mmaplock leak in irqwork path

stackmapgetbuildidoffset() introduced a per-CPU irqwork to defer mmapreadunlock() from NMI context, and bpffindvma() later reused the same mmapunlockwork. Both callers only check whether the work is busy before taking mmaplock, 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 exitmmap().

Reserve the per-CPU slot before mmapreadtrylock(). Use the same wrapper in stackmap and bpffindvma() so both callers release the reservation on trylock failure. Keep rejecting the slot while the irqwork remains busy. Release it after the irqwork callback unlocks the mm.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 17, 2026
CVE Published
via MITRE·04:07 PM
Data Sourced
via MITRE·04:07 PM
Description

Frequently Asked Questions

1

What execution pattern is required to trigger the leaked lock?

A nested caller must reuse the shared per-CPU mmap unlock work slot after the first caller has checked that it is not busy but before that caller queues its deferred irq_work. This can result in two mmap read locks being acquired while only one deferred unlock is performed.

2

How does the fix avoid leaving the per-CPU slot reserved when locking fails?

The corrected code reserves the per-CPU slot before calling mmap_read_trylock() and releases that reservation if the trylock fails. The reservation remains unavailable while the irq_work is busy and is released after the callback unlocks the mm.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203