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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 7% of CVEs (2026-11-30)
- Published: 2026-09-17T16:07:49.444Z
- Modified: 2026-10-30T13:20:47.630Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from eac9153f2b584c702cea02c1f1a57d85aa9aea42 before d6d091873e12d1de36d7228c4f452e6cace3a23e; from eac9153f2b584c702cea02c1f1a57d85aa9aea42 before b6c9daf6097f9b39162b8e736a6ac7caf5ef6fc8; from eac9153f2b584c702cea02c1f1a57d85aa9aea42 before 931f62311c058d79f29548f20943969bb441ce87; from eac9153f2b584c702cea02c1f1a57d85aa9aea42 before a052ad5edccf5319f50ed955de4368f8318a9f20; from eac9153f2b584c702cea02c1f1a57d85aa9aea42 before 051f2da26ce377f683b938a3382e0f16d02f3139; from eac9153f2b584c702cea02c1f1a57d85aa9aea42 before fa9dcacdcdf487f0ffef64bf67622f1caed509f1; a7f4da875c16f3b8bef0d9ec67528111045bfcd8; f1838da73cccb238b8be4ef464fce0168dc7ba84; from 4.19.92 before 4.20; from 5.4.7 before 5.5; 5.5 (not affected: before 5.5; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.52 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/d6d091873e12d1de36d7228c4f452e6cace3a23e>
- <https://git.kernel.org/stable/c/b6c9daf6097f9b39162b8e736a6ac7caf5ef6fc8>
- <https://git.kernel.org/stable/c/931f62311c058d79f29548f20943969bb441ce87>
- <https://git.kernel.org/stable/c/a052ad5edccf5319f50ed955de4368f8318a9f20>
- <https://git.kernel.org/stable/c/051f2da26ce377f683b938a3382e0f16d02f3139>
- <https://git.kernel.org/stable/c/fa9dcacdcdf487f0ffef64bf67622f1caed509f1>

## Sources

- CVE List: [CVE-2026-90247](https://www.cve.org/CVERecord?id=CVE-2026-90247), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-90247](https://nvd.nist.gov/vuln/detail/CVE-2026-90247), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-90247 · Whole record: https://cve.day/CVE-2026-90247.json · Rebuilt by cve.day 2026-11-25T22:59:39.356Z
