bpf: Send signals asynchronously if !preemptible
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1bc7896e9ef44fd77858b3ef0b8a6840be3a4494 · < 78b97783496b454435639937db3303e900a24d3f| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bpf: Send signals asynchronously if !preemptible
BPF programs can execute in all kinds of contexts and when a program running in a non-preemptible context uses the bpf_send_signal() kfunc, it will cause issues because this kfunc can sleep. Change `irqs_disabled()` to `!preemptible()`.
From the CVE record · Linux
The Linux kernel's BPF signal-handling function can sleep when called by a BPF program running in a non-preemptible context, causing issues. This requires a BPF program to call bpf_send_signal() in that context; the input does not specify attacker access or user-interaction requirements.
Engineers running the Linux kernel should check affected versions in the vendor advisory; no versions are specified here.