{"id":"CVE-2026-139332","aliases":["CVE-2026-139332"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: Claim the per-CPU send_signal irq_work before filling it","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Claim the per-CPU send_signal irq_work before filling it\n\nirq_work_is_busy() cannot see the per-CPU send_signal_work while\nit is being filled: the check only matches after irq_work_queue()\nhas claimed the work. A concurrent caller therefore passes it, both\ncallers race for the same irq_work, and the loser's signal is\nsilently lost along with its task reference while the queued work\nruns with a mix of both callers' fields.\n\nkprobe, tracepoint and perf_event programs exclude each other on\nthe same CPU through bpf_prog_active, so for two callers to meet,\none of the programs has to be a raw tracepoint or an fentry one.\nAnd since commit 87c544108b61 (\"bpf: Send signals asynchronously\nif !preemptible\") this path runs with IRQs enabled too, so a hard\nIRQ can interrupt the fill as well, not only an NMI. Found by code\ninspection and reproduced with a perf_event NMI program racing an\nfentry one.\n\nClaim the work through work->task itself: cmpxchg() it from NULL\nto the target task before touching the other fields, and set it\nback to NULL once the callback has consumed them. A context\nfinding the work claimed returns the documented -EBUSY.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Claim the per-CPU send_signal irq_work before filling it\n\nirq_work_is_busy() cannot see the per-CPU send_signal_work while\nit is being filled: the check only matches after irq_work_queue()\nhas claimed the work. A concurrent caller therefore passes it, both\ncallers race for the same irq_work, and the loser's signal is\nsilently lost along with its task reference while the queued work\nruns with a mix of both callers' fields.\n\nkprobe, tracepoint and perf_event programs exclude each other on\nthe same CPU through bpf_prog_active, so for two callers to meet,\none of the programs has to be a raw tracepoint or an fentry one.\nAnd since commit 87c544108b61 (\"bpf: Send signals asynchronously\nif !preemptible\") this path runs with IRQs enabled too, so a hard\nIRQ can interrupt the fill as well, not only an NMI. Found by code\ninspection and reproduced with a perf_event NMI program racing an\nfentry one.\n\nClaim the work through work->task itself: cmpxchg() it from NULL\nto the target task before touching the other fields, and set it\nback to NULL once the callback has consumed them. A context\nfinding the work claimed returns the documented -EBUSY.","source":"cvelist"}],"published":"2026-11-30T13:33:47.021Z","modified":"2026-11-30T14:18:57.900Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","fixed":"411e337da595b592a50889c3f993589cafc657e9","status":"affected"},{"type":"git","introduced":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","fixed":"e9bb3295cf2119f0625c4fcba78e8779565e3e58","status":"affected"},{"type":"git","introduced":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","fixed":"2c34c23342d3a8d4ea034d914bc3b528fa00fbf4","status":"affected"},{"type":"git","introduced":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","fixed":"2d1f101ee619435873ed8a23fcb3bd09204a5024","status":"affected"},{"type":"git","version":"fd29a0242f86b2d95ad666aa9f92a3d0f7bfdab6","status":"affected"},{"type":"git","version":"7930d01afb7281edd9782971e0cca6fe587c7a7b","status":"affected"},{"type":"semver","introduced":"5.4.33","fixed":"5.5","status":"affected"},{"type":"semver","introduced":"5.5.18","fixed":"5.6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.6","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/411e337da595b592a50889c3f993589cafc657e9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9bb3295cf2119f0625c4fcba78e8779565e3e58","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c34c23342d3a8d4ea034d914bc3b528fa00fbf4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2d1f101ee619435873ed8a23fcb3bd09204a5024","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139332","url":"https://www.cve.org/CVERecord?id=CVE-2026-139332","licence":"CVE Terms of Use","modified":"2026-11-30T13:33:47.021Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139332","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139332","licence":"Public domain","modified":"2026-11-30T14:18:57.900Z"}],"updatedAt":"2026-11-30T14:33:21.297Z","epss":{"score":0.00201,"percentile":0.10477,"date":"2026-12-01T12:00:22.000Z"}}