Skip to contentSkip to conversation

CVE-2026-99262: io_uring/timeout: don't lose a cancel as io-wq arms a timeout

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 3

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

io_uring/timeout: don't lose a cancel as io-wq arms a timeout

An IORING_OP_TIMEOUT run by io-wq, because of IOSQE_ASYNC, has the same problem as poll, futex and waitid. io_wq_submit_work() looks at IO_WQ_WORK_CANCEL once, before it issues the request. A cancel in between flags the work, gets -EALREADY, and searches ->timeout_list in vain, while the worker then adds the request and starts the timer:

io-wq worker io_try_cancel()
io_wq_submit_work()
IO_WQ_WORK_CANCEL isn't set
io_async_cancel_one()
sets IO_WQ_WORK_CANCEL = -EALREADY
io_timeout_cancel() = -ENOENT
io_timeout()
adds the request to ->timeout_list
hrtimer_start()
= IOU_ISSUE_SKIP_COMPLETE

Nobody looks at the flag again, and the timeout runs its course. At ring exit, io_uring_try_cancel_requests() cancels io-wq work and then kills the timeouts the same way, so an exiting task can get stuck for the full duration of such a timeout.

Look at the flag under ->timeout_lock, which the search takes as well, and fail the request if it is set. If the search came first, the flag is visible. If it comes later, it finds the request on the list.

The Linux kernel CVE team has assigned CVE-2026-99262 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.6 with commit ce35a47a3a0208a77b4d31b7f2e8ed57d624093d and fixed in 6.1.191 with commit f1fabf17f37b252b11d8fe5c70c8056b70b005ca
	Issue introduced in 5.6 with commit ce35a47a3a0208a77b4d31b7f2e8ed57d624093d and fixed in 6.6.161 with commit 68cd06ba918d9658c36c1973a0184795738dcc46
	Issue introduced in 5.6 with commit ce35a47a3a0208a77b4d31b7f2e8ed57d624093d and fixed in 6.12.115 with commit f9d5e02649587885852f46b6dc7c081b87f0ac3a
	Issue introduced in 5.6 with commit ce35a47a3a0208a77b4d31b7f2e8ed57d624093d and fixed in 6.18.60 with commit f10ab47077e63d6eee35b242c257c3947bb49e64
	Issue introduced in 5.6 with commit ce35a47a3a0208a77b4d31b7f2e8ed57d624093d and fixed in 7.2.14 with commit df705a274da10da7bb546e08b49fa80a6ef19c78

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99262

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
io_uring/io_uring.h
io_uring/timeout.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/f1fabf17f37b252b11d8fe5c70c8056b70b005ca
	https://git.kernel.org/stable/c/68cd06ba918d9658c36c1973a0184795738dcc46
	https://git.kernel.org/stable/c/f9d5e02649587885852f46b6dc7c081b87f0ac3a
	https://git.kernel.org/stable/c/f10ab47077e63d6eee35b242c257c3947bb49e64
	https://git.kernel.org/stable/c/df705a274da10da7bb546e08b49fa80a6ef19c78
	https://git.kernel.org/stable/c/89f193dc3ef462059387e9691bf6af4b1808379a