Skip to contentSkip to conversation

CVE-2026-23473: io_uring/poll: fix multishot recv missing EOF on wakeup race

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 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/poll: fix multishot recv missing EOF on wakeup race

When a socket send and shutdown() happen back-to-back, both fire wake-ups before the receiver's task_work has a chance to run. The first wake gets poll ownership (poll_refs=1), and the second bumps it to 2. When io_poll_check_events() runs, it calls io_poll_issue() which does a recv that reads the data and returns IOU_RETRY. The loop then drains all accumulated refs (atomic_sub_return(2) -> 0) and exits, even though only the first event was consumed. Since the shutdown is a persistent state change, no further wakeups will happen, and the multishot recv can hang forever.

Check specifically for HUP in the poll loop, and ensure that another loop is done to check for status if more than a single poll activation is pending. This ensures we don't lose the shutdown event.

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

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

	Issue introduced in 5.19 with commit dbc2564cfe0faff439dc46adb8c009589054ea46 and fixed in 6.18.20 with commit 0f4ce79b8db7b040373fc664c8bc6c5fd74bd196
	Issue introduced in 5.19 with commit dbc2564cfe0faff439dc46adb8c009589054ea46 and fixed in 6.19.10 with commit bf33554b6abf7e7faeadd8af1b82037ea755a6bb
	Issue introduced in 5.19 with commit dbc2564cfe0faff439dc46adb8c009589054ea46 and fixed in 7.0-rc5 with commit a68ed2df72131447d131531a08fe4dfcf4fa4653

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

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/poll.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/0f4ce79b8db7b040373fc664c8bc6c5fd74bd196
	https://git.kernel.org/stable/c/bf33554b6abf7e7faeadd8af1b82037ea755a6bb
	https://git.kernel.org/stable/c/a68ed2df72131447d131531a08fe4dfcf4fa4653