CVE-2026-142883 io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit
linux linux: no CVSS score yet. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.
In the Linux kernel, the following vulnerability has been resolved:
io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit
io_sq_thread_stop() carries a WARN_ON_ONCE() asserting that
IO_SQ_THREAD_SHOULD_STOP isn't set yet, i.e. that stopping the SQPOLL
thread is never attempted twice. Since commit 22d9db9fd64a
("io_uring/sqpoll: don't attach to a thread that is canceling"), the
SQPOLL thread itself sets that bit on its way out, so that
io_sq_offload_create() won't attach a new ring to a thread that is
canceling.
When the thread exits on a fatal signal, the bit is thus set before the
ring teardown gets to io_sq_thread_stop(), which now triggers the
warning on every such exit:
WARNING: io_uring/sqpoll.c:88 at io_sq_thread_stop
Workqueue: iou_exit io_ring_exit_work
Call Trace:
io_put_sq_data
io_sq_thread_finish
io_ring_ctx_free
io_ring_exit_work
Introduce a separate IO_SQ_THREAD_EXITING bit for the thread marking
itself as on its way out, and check it in io_sq_offload_create() along
with IO_SQ_THREAD_SHOULD_STOP. IO_SQ_THREAD_SHOULD_STOP regains its
original meaning, "a stop has been requested", and the WARN_ON_ONCE()
holds again.
Reproduced with an SQPOLL ring and an immediate fatal signal: the
warning fires on v7.3.0+ (22d9db9fd64a present) and is gone with this
change.
[axboe: trim excessive comment]
- EPSS
- 0.3% estimated probability of exploitation activity in the next 30 days; 29th percentile. Scored 2026-12-03. A forecast for this CVE across the internet, not for your own systems.
- Published
- Assigned by
- Linux (CNA)
- NVD analysis
- Awaiting analysis
- Record from
- the NVD, synced
Fix and patched versions
- Linux Linux: fixed in 7.4-rc2
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-142883 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-142883?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-142883?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-142883 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| Linux | 7.4-rc1 and later |
Fixed in
| Product | Fixed in |
|---|---|
| Linux | 7.4-rc2 |
References
- https://git.kernel.org/stable/c/3fe0b200a9a50e7af0cd9bc03faef5e8eb68f968
- https://git.kernel.org/stable/c/41975e91a4d5894134de72f856560c6b7e92e8d2
- https://git.kernel.org/stable/c/58829d86cf3caa19aac21ca7fe9842e470295788
- https://git.kernel.org/stable/c/7a11f6544385df83f598de087b60dd1549173767
- https://git.kernel.org/stable/c/ae11ea8d437855d15c650e02e59eeb497d773c8f
- https://git.kernel.org/stable/c/fca3ff9e2eee7d285585daf51942e0b5e2be354a