io_uring/sqpoll: don't set IO_SQ_THREAD_SHOULD_STOP on thread exit

Summary

CVECVE-2026-142883
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 04:18:26 UTC
Updated2026-12-03 04:18:26 UTC
DescriptionIn 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]

Risk And Classification

EPSS: 0.003380000 probability, percentile 0.291870000 (date 2026-12-03)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 7664530ccd99ebd3fa7db2767d5762ed0ea5187a ae11ea8d437855d15c650e02e59eeb497d773c8f git Not specified
CNA Linux Linux affected c41de83f67f2d713471fbfa986dcc9d16048ba6d 58829d86cf3caa19aac21ca7fe9842e470295788 git Not specified
CNA Linux Linux affected 65dc6d4cea7a6426392c408c01928a858391fc1e 7a11f6544385df83f598de087b60dd1549173767 git Not specified
CNA Linux Linux affected bedd1cd9e54f3fe5f0d82a83d60eae05a450e136 41975e91a4d5894134de72f856560c6b7e92e8d2 git Not specified
CNA Linux Linux affected 5648979c481847a7ef273f727ad64b1ae071f26f 3fe0b200a9a50e7af0cd9bc03faef5e8eb68f968 git Not specified
CNA Linux Linux affected 22d9db9fd64a493525d692b32c556875b7254665 fca3ff9e2eee7d285585daf51942e0b5e2be354a git Not specified
CNA Linux Linux affected 7.4-rc1 Not specified
CNA Linux Linux unaffected 7.4-rc1 semver Not specified
CNA Linux Linux unaffected 7.4-rc2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/ae11ea8d437855d15c650e02e59eeb497d773c8f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/fca3ff9e2eee7d285585daf51942e0b5e2be354a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/41975e91a4d5894134de72f856560c6b7e92e8d2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/58829d86cf3caa19aac21ca7fe9842e470295788 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3fe0b200a9a50e7af0cd9bc03faef5e8eb68f968 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7a11f6544385df83f598de087b60dd1549173767 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report