HIGH Introduced in 6.7
io_uring CancelableCmd UAF
CVE-2026-99230
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
Risk summary
A local attacker who can use io_uring (typically any unprivileged user) can trigger a use-after-free condition by exercising cancelable uring_cmd operations (such as ublk FETCH_REQ) followed by a vectored futex wait that races with a wakeup. This corrupts kernel memory and causes a kernel panic, with potential for privilege escalation given the heap corruption primitive.
Vulnerability analysis
When a cancelable uring_cmd is removed from the cancelable list, the original code used hlist_del() which leaves debug poison values (LIST_POISON1/2) in the request's hash_node pointers. Requests are recycled through a cache without full reinitialization. If a recycled request is later used for a vectored futex wait that gets woken during setup, the futex completion path calls hlist_del_init() on the still-poisoned hash_node, causing a write to a non-canonical address and a kernel crash. The fix changes the deletion to hlist_del_init(), which properly reinitializes the node to a clean unhashed state, making it safe for reuse in a different context. The vulnerability is reachable from any local user with access to io_uring syscalls, does not require special privileges, and depends on a specific race between futex queueing and wakeup combined with heap layout reuse.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.12 | 6.7 | 6.12.115 | cc7f13d006fc |
| 6.18 | 6.7 | 6.18.60 | 2d5af2142206 |
| 7.2 | 6.7 | 7.2.14 | 685b49483200 |
| 7.3 | 6.7 | 7.3.2 | c4fe1024b2f3 |
| mainline | 6.7 | 7.4-rc1 | 4c83e39f4d19 |