A vulnerability in the Linux kernel's asynchronous I/O (aio) subsystem was fixed by ensuring that the exit_aio() function does not return before the completion of all contexts. The flaw could cause exit_aio() to return prematurely, leading to a use-after-free condition where a completion is written to a stack frame that no longer exists. This issue can be triggered by an unprivileged user through multiple io_setup() calls followed by an exit without io_destroy().