{"id":"CVE-2026-139332","state":"PUBLISHED","title":"bpf: Claim the per-CPU send_signal irq_work before filling it","description":"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.","publishedAt":"2026-11-30T13:33:47.021Z","updatedAt":"2026-11-30T13:33:47.021Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","status":"affected","lessThan":"411e337da595b592a50889c3f993589cafc657e9","versionType":"git"},{"version":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","status":"affected","lessThan":"e9bb3295cf2119f0625c4fcba78e8779565e3e58","versionType":"git"},{"version":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","status":"affected","lessThan":"2c34c23342d3a8d4ea034d914bc3b528fa00fbf4","versionType":"git"},{"version":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","status":"affected","lessThan":"2d1f101ee619435873ed8a23fcb3bd09204a5024","versionType":"git"},{"version":"fd29a0242f86b2d95ad666aa9f92a3d0f7bfdab6","status":"affected","versionType":"git"},{"version":"7930d01afb7281edd9782971e0cca6fe587c7a7b","status":"affected","versionType":"git"},{"version":"5.4.33","status":"affected","lessThan":"5.5","versionType":"semver"},{"version":"5.5.18","status":"affected","lessThan":"5.6","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/bpf_trace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/bpf_trace.c"]}],"references":["https://git.kernel.org/stable/c/411e337da595b592a50889c3f993589cafc657e9","https://git.kernel.org/stable/c/e9bb3295cf2119f0625c4fcba78e8779565e3e58","https://git.kernel.org/stable/c/2c34c23342d3a8d4ea034d914bc3b528fa00fbf4","https://git.kernel.org/stable/c/2d1f101ee619435873ed8a23fcb3bd09204a5024"],"weaknesses":[],"ingestedAt":"2026-11-30T13:48:04.491Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139332.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139332","state":"PUBLISHED","datePublished":"2026-11-30T13:33:47.021Z","dateUpdated":"2026-11-30T13:33:47.021Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.927Z"},"containers":{"cna":{"title":"bpf: Claim the per-CPU send_signal irq_work before filling it","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","status":"affected","lessThan":"411e337da595b592a50889c3f993589cafc657e9","versionType":"git"},{"version":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","status":"affected","lessThan":"e9bb3295cf2119f0625c4fcba78e8779565e3e58","versionType":"git"},{"version":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","status":"affected","lessThan":"2c34c23342d3a8d4ea034d914bc3b528fa00fbf4","versionType":"git"},{"version":"1bc7896e9ef44fd77858b3ef0b8a6840be3a4494","status":"affected","lessThan":"2d1f101ee619435873ed8a23fcb3bd09204a5024","versionType":"git"},{"version":"fd29a0242f86b2d95ad666aa9f92a3d0f7bfdab6","status":"affected","versionType":"git"},{"version":"7930d01afb7281edd9782971e0cca6fe587c7a7b","status":"affected","versionType":"git"},{"version":"5.4.33","status":"affected","lessThan":"5.5","versionType":"semver"},{"version":"5.5.18","status":"affected","lessThan":"5.6","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/bpf_trace.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.6","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/trace/bpf_trace.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/411e337da595b592a50889c3f993589cafc657e9"},{"url":"https://git.kernel.org/stable/c/e9bb3295cf2119f0625c4fcba78e8779565e3e58"},{"url":"https://git.kernel.org/stable/c/2c34c23342d3a8d4ea034d914bc3b528fa00fbf4"},{"url":"https://git.kernel.org/stable/c/2d1f101ee619435873ed8a23fcb3bd09204a5024"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:47.021Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.6","versionEndExcluding":"7.4-rc1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}