CVE-2026-139321: bpf: Forbid sleeping in bpf_find_vma() callbacks
bpf: Forbid sleeping in bpffindvma() callbacks
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Which systems are exposed to the locking issue?
Exposure requires a sleepable BPF program that calls bpf_find_vma() and invokes a sleepable user-copy helper, such as bpf_copy_from_user() or bpf_copy_from_user_task(), from its callback. The problematic path occurs when the user copy faults on the same process memory map.
What can happen during exploitation or triggering?
A page fault in the callback can attempt to acquire mmap_lock while bpf_find_vma() already holds that lock for reading. If a writer has queued for the lock, this can create a deadlock: the callback waits behind the writer, while the writer waits for the read lock held by the callback.
How does the fix prevent affected programs from loading?
The verifier treats bpf_find_vma() callbacks like hash map for_each callbacks, where sleeping is not allowed because they run in an RCU read-side critical section. This prevents sleepable operations from being used in the callback.