CVE-2026-139322: bpf: Reject sleepable programs for task_vma iterator
bpf: Reject sleepable programs for taskvma iterator
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - 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 - Compensating control
For the task_vma iterator, load the BPF program as non-sleepable or use the open-coded iterator.
Event History
Frequently Asked Questions
What access or conditions are needed to trigger the hang?
A sleepable "iter.s/task_vma" BPF program must be attached and run while the task_vma iterator holds the iterated process's mmap_lock for reading. The program must then perform an operation such as bpf_copy_from_user() or bpf_copy_from_user_task() that faults or otherwise tries to take mmap_lock again, with a writer queued in the relevant locking sequence.
What is the observable impact on an affected system?
The iterator read can hang because the reader holds mmap_lock while waiting behind a queued writer, and the writer waits for the read lock to be released. The wait is killable, so the hang persists until the reader receives a fatal signal.
How can this condition be identified during testing or investigation?
Systems with lockdep enabled report recursive locking of mmap_lock when the affected program runs. Without lockdep, a hung read involving a sleepable task_vma iterator and concurrent mmap write locking is the described symptom.