CVE-2026-143173: aio: don't let exit_aio() return before complete() is done

Published Dec 3, 2026
·
Updated

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

9 affected componentsFixes available
Linux Linux kernel
linux/kernel>=3.12.44<3.13
3.13
linux/kernel>=3.16.57<3.17
3.17
linux/kernel>=4.0.6<4.1
4.1
linux/kernel>=4.1.0<5.10.276
5.10.276
linux/kernel>=5.11.0<5.15.227
5.15.227
linux/kernel>=5.16.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 3.13
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 3.17
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 4.1
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.276
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.227
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  7. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  8. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7

Event History

Dec 3, 2026
CVE Published
via MITRE·09:20 AM
Data Sourced
via MITRE·09:20 AM
Description
Data Sourced
via OSV·09:20 AM
DescriptionAffected Software
Data Sourced
via NVD·10:17 AM
Description

Frequently Asked Questions

1

What level of access does an attacker need?

An unprivileged local user can reach the vulnerable condition. The described path uses four io_setup() calls.

2

What kind of failure can this trigger?

The race can cause complete() to write to a completion object on an exit_aio() stack frame after that function has returned and the frame is no longer valid.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203