Skip to contentSkip to conversation

CVE-2026-99230: io_uring/cmd: don't leave list poison in ->hash_node

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 2

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/cmd: don't leave list poison in ->hash_node

io_uring_cmd_del_cancelable() uses hlist_del() to take a command off ->cancelable_uring_cmd, which leaves LIST_POISON1/2 behind in ->hash_node. Requests are recycled through the request cache without being reinitialised, and not every user of ->hash_node sets it up before it is used:

If a vectored futex wait is woken while futex_wait_multiple_setup() is still queueing the futexes, io_futexv_wait() doesn't add the request to ->futex_list, and leaves the completion to the task_work queued by the wake up. io_futexv_complete() ends in __io_futex_complete(), whose hlist_del_init() is fine for a request that is unhashed, which is how all other users of the node leave it. If the request was a cancelable uring_cmd in its previous life, e.g. a ublk FETCH_REQ, it writes through LIST_POISON2:

  Oops: general protection fault, probably for non-canonical address
  KASAN: maybe wild-memory-access in range [0xdead000000000120-...]
  RIP: 0010:io_futexv_complete+0x219/0x420
  Call Trace:
   tctx_task_work_run+0x804/0x950
   tctx_task_work+0x71/0xa0
   task_work_run+0x118/0x200

Leave the node unhashed.

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

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

	Issue introduced in 6.7 with commit 93b8cc60c37b9d17732b7a297e5dca29b50a990d and fixed in 6.12.115 with commit cc7f13d006fcefed9564bd79f135b51d344e9c77
	Issue introduced in 6.7 with commit 93b8cc60c37b9d17732b7a297e5dca29b50a990d and fixed in 6.18.60 with commit 2d5af21422060c088f6e4fb0f1e7dcf5bcdd6707
	Issue introduced in 6.7 with commit 93b8cc60c37b9d17732b7a297e5dca29b50a990d and fixed in 7.2.14 with commit 685b49483200384d7f49d338af476e26e6824637

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

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/uring_cmd.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/cc7f13d006fcefed9564bd79f135b51d344e9c77
	https://git.kernel.org/stable/c/2d5af21422060c088f6e4fb0f1e7dcf5bcdd6707
	https://git.kernel.org/stable/c/685b49483200384d7f49d338af476e26e6824637
	https://git.kernel.org/stable/c/4c83e39f4d1944d7146fd06094f2c8053238d55c