PT-2026-167031

CVE-2026-143173

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
aio: don't let exit aio() return before complete() is done
exit aio() kills all contexts in one go and waits for them with a single on-stack struct ctx rq wait. The count starts at table->nr, each killed context drops one count in free ioctx reqs() and exit aio() subtracts the empty slots afterwards. Whoever drops the last count either calls complete() or, if it is exit aio(), skips the wait.
With a full table skipped is zero and atomic sub and test(0, ...) only tells us whether the count already hit zero. free ioctx reqs() runs from the percpu ref RCU callback, so if exit aio() is off the CPU long enough the last callback can have done its atomic dec and test() but not yet called complete():
free ioctx reqs() exit aio() atomic dec and test() // 1 -> 0 atomic sub and test(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 exit aio() itself. Then the last count is always dropped by exit aio() after it waited, or by a callback while exit aio() waits for it. An unprivileged user gets there with four io setup() calls and an exit without io destroy().
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾