CVE-2026-139332

bpf: Claim the per-CPU send_signal irq_work before filling it

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Claim the per-CPU send_signal irq_work before filling it

irq_work_is_busy() cannot see the per-CPU send_signal_work while
it is being filled: the check only matches after irq_work_queue()
has claimed the work. A concurrent caller therefore passes it, both
callers race for the same irq_work, 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 perf_event programs exclude each other on
the same CPU through bpf_prog_active, 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 perf_event 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.

Analysis

AI-generated

Technical impact

A race condition exists in the Linux kernel’s BPF send_signal irq_work handling, allowing concurrent BPF programs to overwrite each other’s data. When two programs run on the same CPU, the workqueue can be claimed by the first caller and then overwritten by the second, causing the victim’s signal and task reference to be silently lost. This flaw can lead to missing signals or kernel instability, as the queued work ends up with mixed or invalid fields.

Affected Systems

All distributions that ship the unpatched Linux kernel, regardless of version, are potentially affected. The vulnerability applies to the core kernel code that implements BPF send_signal functionality and is not limited to a specific release series.

Risk and Exploitability

The flaw has no publicly available automated exploit, and the EPSS score is not available, but the absence of a KEV listing suggests low to moderate exploitation likelihood. However, because the threat requires privileged kernel access to load malicious BPF programs, it poses a risk primarily to systems that allow untrusted users to inject BPF code. An attacker with sufficient privileges could trigger the race to lose critical signals or destabilise the kernel, though full control has not been demonstrated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the race‑condition fix
  • Restrict or disable the use of raw tracepoint and fentry BPF programs on systems that do not require them
  • Configure kernel security modules (SELinux/AppArmor/LSM) to limit BPF program creation to trusted users only

Generated by OpenCVE AI on November 30, 2026 at 21:33 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Claim the per-CPU send_signal irq_work before filling it irq_work_is_busy() cannot see the per-CPU send_signal_work while it is being filled: the check only matches after irq_work_queue() has claimed the work. A concurrent caller therefore passes it, both callers race for the same irq_work, 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 perf_event programs exclude each other on the same CPU through bpf_prog_active, 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 perf_event 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.
Title bpf: Claim the per-CPU send_signal irq_work before filling it
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM