io_uring: don't flood a cancelling task with task_work

Summary

CVECVE-2026-99254
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-03 12:17:32 UTC
Updated2026-11-06 18:18:33 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: io_uring: don't flood a cancelling task with task_work io_ring_exit_work() asks each task which has used the ring to remove its tctx node, by task_work, and repeats that until the list is empty. io_tctx_exit_cb() doesn't touch the node while the task is in io_uring_cancel_generic(), which removes all the nodes at its end. So the work item queues the callback again as soon as it has completed, for nothing. That is more than a waste of time. task_work_run() only returns when it finds the list empty. If the rings are released from inside the cancellation, because requests of other rings held the last references to their files, up to 64 work items keep sending callbacks to the one task which is running them. It never finds the list empty, never gets back to the cancellation, the nodes stay, and so it goes on: a task with 60 pairs of rings which poll each other ran 280000 callbacks in 5 seconds, 20 seconds after exit_group(). It ends when all the senders happen to be late at the same time. Until then the task keeps a CPU and the work items busy. An exiting task can't be killed meanwhile. execve() cancels the requests in the same way, so a live task can get stuck there as well, for minutes. If it takes more than five, the work items run into the WARN_ON_ONCE(time_after(jiffies, timeout)) of io_ring_exit_work(). No privilege is needed for any of this. If the callback has met a task in cancellation, wait a little before it is sent again. Nobody has to wake the work item up for that: either the node is gone by then, or it is the turn of the next round.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected d56d938b4bef3e1421a42023cdcd6e13c1f50831 a22fb44e988b01b82235ea07f0bf0fc73e256596 git Not specified
CNA Linux Linux affected d56d938b4bef3e1421a42023cdcd6e13c1f50831 2c75ebae8a7f09c99e31c7042b7d4d595f03b2b1 git Not specified
CNA Linux Linux affected d56d938b4bef3e1421a42023cdcd6e13c1f50831 61c761fc21e00e45c33c2bb596be442d92fb8792 git Not specified
CNA Linux Linux affected d56d938b4bef3e1421a42023cdcd6e13c1f50831 14f56e9c0b8fdc2e178acdbec9781e90ef46f7e9 git Not specified
CNA Linux Linux affected d56d938b4bef3e1421a42023cdcd6e13c1f50831 abdc57c7ebabaaf0b622178a6a85834e1e54ff80 git Not specified
CNA Linux Linux affected d56d938b4bef3e1421a42023cdcd6e13c1f50831 f334e79a11e084713e82402b1a7a0e321526992a git Not specified
CNA Linux Linux affected d56d938b4bef3e1421a42023cdcd6e13c1f50831 22e643e61b9b6299b42ff7d88bab48bccada8a5d git Not specified
CNA Linux Linux affected 5.12 Not specified
CNA Linux Linux unaffected 5.12 semver Not specified
CNA Linux Linux unaffected 6.1.191 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.161 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.115 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.60 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.14 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3.2 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/a22fb44e988b01b82235ea07f0bf0fc73e256596 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2c75ebae8a7f09c99e31c7042b7d4d595f03b2b1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/14f56e9c0b8fdc2e178acdbec9781e90ef46f7e9 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f334e79a11e084713e82402b1a7a0e321526992a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/22e643e61b9b6299b42ff7d88bab48bccada8a5d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/61c761fc21e00e45c33c2bb596be442d92fb8792 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/abdc57c7ebabaaf0b622178a6a85834e1e54ff80 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