AZL-118262: CVE-2026-143173 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
aio: don't let exitaio() return before complete() is done
exitaio() kills all contexts in one go and waits for them with a single on-stack struct ctxrqwait. The count starts at table->nr, each killed context drops one count in freeioctxreqs() and exitaio() subtracts the empty slots afterwards. Whoever drops the last count either calls complete() or, if it is exitaio(), skips the wait.
With a full table skipped is zero and atomicsubandtest(0, ...) only tells us whether the count already hit zero. freeioctxreqs() runs from the percpuref RCU callback, so if exitaio() is off the CPU long enough the last callback can have done its atomicdecandtest() but not yet called complete():
freeioctxreqs() exitaio() atomicdecandtest() // 1 -> 0 atomicsubandtest(0) // true kfree(table) return complete(&wait.comp)
complete() then locks and writes a completion on a stack frame that is gone. So hold an extra count for exitaio() itself. Then the last count is always dropped by exitaio() after it waited, or by a callback while exitaio() waits for it. An unprivileged user gets there with four iosetup() calls and an exit without iodestroy().
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An unprivileged local user can reach the vulnerable path. The description indicates this can be triggered with four io_setup() calls.
What condition makes the race possible?
The race occurs when exit_aio() has been off-CPU long enough for the final RCU callback to decrement the count but not yet call complete(). exit_aio() can then free its stack-backed wait structure before the callback writes to it.
Is remote exploitation indicated?
No remote attack path is described. The provided information identifies an unprivileged user reaching the issue through aio io_setup() calls.