CVE-2026-139332: bpf: Claim the per-CPU send_signal irq_work before filling it
In the Linux kernel, the following vulnerability has been resolved:
bpf: Claim the per-CPU sendsignal irqwork before filling it
irqworkisbusy() cannot see the per-CPU sendsignalwork while it is being filled: the check only matches after irqworkqueue() has claimed the work. A concurrent caller therefore passes it, both callers race for the same irqwork, and the loser's signal is silently lost along with its task reference while the queued work runs with a mix of both callers' fields.
kprobe, tracepoint and perfevent programs exclude each other on the same CPU through bpfprogactive, so for two callers to meet, one of the programs has to be a raw tracepoint or an fentry one. And since commit 87c544108b61 ("bpf: Send signals asynchronously if !preemptible") this path runs with IRQs enabled too, so a hard IRQ can interrupt the fill as well, not only an NMI. Found by code inspection and reproduced with a perfevent NMI program racing an fentry one.
Claim the work through work->task itself: cmpxchg() it from NULL to the target task before touching the other fields, and set it back to NULL once the callback has consumed them. A context finding the work claimed returns the documented -EBUSY.