Skip to contentSkip to conversation

CVE-2026-99268: io_uring: wake ring pollers for local task_work

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: wake ring pollers for local task_work

With IORING_SETUP_DEFER_TASKRUN completions are queued as local work, and only become CQEs when the submitter enters the kernel to wait for events. For an application that finds out via poll() or epoll on the ring fd when it is time to do that, io_uring_poll() reports EPOLLIN if local work is pending.

That only helps if the work is there at the time of the call. When DEFER_TASKRUN was added, io_req_local_work_add() did io_cqring_wake(), which took care of tasks sleeping in poll() as well. Then polling got a wait queue of its own, ->poll_wq, and the wake up in io_req_local_work_add() was replaced by waking the submitter directly. Since then ->poll_wq is only woken when CQEs are committed, which for such a ring is done by the very task that is waiting to be told to:

submitter completion
poll(ring_fd)

    io_uring_poll()  // nothing yet
    schedule()
                                      io_req_local_work_add()
                                        // ->cq_wait_nr: nobody waits

// sleeps on

Wake ->poll_wq when the first entry is put on the work list. Like for the eventfd, that must not be done right away if the work is queued from a wake up handler, as the chain of wake ups could get back to the wait queue whose lock is held. Use an RCU callback in that case, with a reference to the ring.

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

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

	Issue introduced in 6.3 with commit 130bd686d9be918e4cc8c03abf5794ba2d860502 and fixed in 6.6.161 with commit 9bb28e7740ce78beecafc5db074b45f4cbeb8a47
	Issue introduced in 6.3 with commit 130bd686d9be918e4cc8c03abf5794ba2d860502 and fixed in 6.12.115 with commit d8c618747a6aa90022e19ec614aa7157d0302108
	Issue introduced in 6.3 with commit 130bd686d9be918e4cc8c03abf5794ba2d860502 and fixed in 6.18.60 with commit 2c88d978f1dfd03edf67924ea8fd25cc45499eef
	Issue introduced in 6.3 with commit 130bd686d9be918e4cc8c03abf5794ba2d860502 and fixed in 7.2.14 with commit 92bfadcbe0a9a001beb5e58a2abaf040b873deb6

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-99268

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:
include/linux/io_uring_types.h
io_uring/tw.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/9bb28e7740ce78beecafc5db074b45f4cbeb8a47
	https://git.kernel.org/stable/c/d8c618747a6aa90022e19ec614aa7157d0302108
	https://git.kernel.org/stable/c/2c88d978f1dfd03edf67924ea8fd25cc45499eef
	https://git.kernel.org/stable/c/92bfadcbe0a9a001beb5e58a2abaf040b873deb6
	https://git.kernel.org/stable/c/b88902d8745a701d24275d012f0830e3628e2a22