CVE-2026-139346: bpf: Fix NULL task dereference in task work cancellation
bpf: Fix NULL task dereference in task work cancellation
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.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
In bpf_task_work_irq(), capture ctx->task before task_work_add() publishes the callback, then use the captured task pointer for the handler’s cancellation attempt.
Event History
Frequently Asked Questions
What conditions are needed to trigger this issue?
The race requires BPF task work to be queued for a target task, the target task to run its callback concurrently on another CPU, and the associated map value to be deleted during the state-transition window. The vulnerable path occurs when cancellation is attempted after the callback or context destruction has cleared ctx->task.
What is the likely impact if the race is triggered?
The cancellation path can pass a NULL task pointer to task_work_cancel(), resulting in a NULL pointer dereference in the Linux kernel. The provided information does not specify the resulting system behavior beyond that dereference.
How can I determine whether systems are remediated?
Check whether the kernel includes one of the referenced stable fixes: fd91c41b1d4ab85ce806d61c8e5b7add292046dc, 2fd1c3f2128a59d118e6656dcbd065a588a5aac7, or c961f7b41a108313a4705baac7b27d2174cc8035. No affected or fixed kernel version ranges are provided.