PT-2026-167031
CVE-2026-143173
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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().
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾