UBUNTU-CVE-2026-99254: Medium severity ubuntu/linux vulnerability
In the Linux kernel, the following vulnerability has been resolved: iouring: don't flood a cancelling task with taskwork ioringexitwork() asks each task which has used the ring to remove its tctx node, by taskwork, and repeats that until the list is empty. iotctxexitcb() doesn't touch the node while the task is in iouringcancelgeneric(), 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. taskworkrun() 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 exitgroup(). 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 WARNONONCE(timeafter(jiffies, timeout)) of ioringexitwork(). 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.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Systems are exposed when local workloads can create and use io_uring rings. The described worst case involves a task with many pairs of rings that poll each other and then enters request cancellation or exits.
What does an attacker or triggering workload need to do?
The triggering task must use io_uring in a way that leaves multiple rings and task-context nodes involved during io_uring cancellation. Releasing rings during cancellation can cause task_work callbacks to continually requeue against the cancelling task.
What is the operational impact while the condition persists?
The affected task can keep a CPU and task_work items busy while callbacks continue to be sent. An exiting task may be unable to complete or be killed during this period, as illustrated by callbacks continuing long after exit_group().