{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143173","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.357Z","datePublished":"2026-12-03T09:20:08.250Z","dateUpdated":"2026-12-04T03:30:32.610Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-04T03:30:32.610Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\naio: don't let exit_aio() return before complete() is done\n\nexit_aio() kills all contexts in one go and waits for them with a\nsingle on-stack struct ctx_rq_wait. The count starts at table->nr, each\nkilled context drops one count in free_ioctx_reqs() and exit_aio()\nsubtracts the empty slots afterwards. Whoever drops the last count\neither calls complete() or, if it is exit_aio(), skips the wait.\n\nWith a full table skipped is zero and atomic_sub_and_test(0, ...) only\ntells us whether the count already hit zero. free_ioctx_reqs() runs from\nthe percpu_ref RCU callback, so if exit_aio() is off the CPU long enough\nthe last callback can have done its atomic_dec_and_test() but not yet\ncalled complete():\n\n    free_ioctx_reqs()                    exit_aio()\n    atomic_dec_and_test() // 1 -> 0\n                                         atomic_sub_and_test(0) // true\n                                         kfree(table)\n                                         return\n    complete(&wait.comp)\n\ncomplete() then locks and writes a completion on a stack frame that is\ngone. So hold an extra count for exit_aio() itself. Then the last count\nis always dropped by exit_aio() after it waited, or by a callback while\nexit_aio() waits for it. An unprivileged user gets there with four\nio_setup() calls and an exit without io_destroy()."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - exit_group()/do_exit() reaches exit_aio() through exit_mm()->mmput()->__mmput() after sys_io_setup() installs kioctx entries in mm->ioctx_table. free_ioctx_reqs() writes the on-stack ctx_rq_wait that exit_aio() allocated; no received packet or protocol field is involved.\nAC:H - The write happens only if free_ioctx_reqs() has returned true from atomic_dec_and_test(&rq_wait->count) but has not yet called complete(), while exit_aio()'s atomic_sub_and_test(0) has already seen zero, kfree()'d the table and returned. That gap is inside the percpu_ref RCU callback after two grace periods; four io_setup() calls only force skipped==0 and cannot stall the callback there.\nPR:L - SYSCALL_DEFINE2(io_setup) and ioctx_alloc() never call capable(), and any task may exit. The trigger is four io_setup() calls and an exit with no io_destroy(), which an unprivileged user or a user namespace can do.\nUI:N - The same process calls io_setup() and then exit_group(); __mmput() runs exit_aio() with no other task required to mount, open, or acknowledge anything.\nS:U - The dangling complete() corrupts the kernel stack of the task inside __mmput(), the same kernel that owns the aio context. That is in-kernel privilege escalation within one security authority.\nC:H - free_ioctx_reqs() calls complete() on exit_aio()'s freed stack ctx_rq_wait. complete_with_flags() invokes swake_up_locked(), which list_first_entry()s wait.task_list and try_to_wake_up() reads curr->task once the rest of __mmput() has reused that frame.\nI:H - complete_with_flags() raw_spin_lock_irqsave()s and increments completion.done on that dead stack object, and swake_up_locked() list_del_init()s the waiter when the reused task_list is not the empty head init_completion() stored. Those stores corrupt the live frame in __mmput().\nA:H - Taking wait.lock on the reused stack can hang in the spinlock slow path, and a corrupted task_list makes try_to_wake_up() or list_del_init() oops in kernel context during __mmput(), which panics the machine."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/aio.c"],"versions":[{"version":"dc48e56d761610da4ea1088d1bea0a030b8e3e43","lessThan":"8a8b40a5fc1f0ccf2e41d36ca64e22b5aab76389","status":"affected","versionType":"git"},{"version":"dc48e56d761610da4ea1088d1bea0a030b8e3e43","lessThan":"59bb5ecfd2fcfcfd5e7c97f6e68442dd7cb65c6f","status":"affected","versionType":"git"},{"version":"dc48e56d761610da4ea1088d1bea0a030b8e3e43","lessThan":"16bcb0f363328d80e03b0c93ffbda548a17a1fe1","status":"affected","versionType":"git"},{"version":"dc48e56d761610da4ea1088d1bea0a030b8e3e43","lessThan":"eac29989106057e848dfd435e9a20a907436adba","status":"affected","versionType":"git"},{"version":"dc48e56d761610da4ea1088d1bea0a030b8e3e43","lessThan":"12710a697096e51c66b988bb47b3c5aef2d7349c","status":"affected","versionType":"git"},{"version":"dc48e56d761610da4ea1088d1bea0a030b8e3e43","lessThan":"ac4b449b39e605123c12ea10042cafc9b6f39603","status":"affected","versionType":"git"},{"version":"0b8b97704fbe442b3bba7a2c7eba9113122abafd","status":"affected","versionType":"git"},{"version":"147c00b31dfeaeb83f917b29a4c05b605b68a8e0","status":"affected","versionType":"git"},{"version":"b393b2aa50b3f85cab80fd11de00849917861b93","status":"affected","versionType":"git"},{"version":"3.12.44","lessThan":"3.13","status":"affected","versionType":"semver"},{"version":"3.16.57","lessThan":"3.17","status":"affected","versionType":"semver"},{"version":"4.0.6","lessThan":"4.1","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/aio.c"],"versions":[{"version":"4.1","status":"affected"},{"version":"0","lessThan":"4.1","status":"unaffected","versionType":"semver"},{"version":"5.10.276","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.4-rc3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12.44"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0.6"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/8a8b40a5fc1f0ccf2e41d36ca64e22b5aab76389"},{"url":"https://git.kernel.org/stable/c/59bb5ecfd2fcfcfd5e7c97f6e68442dd7cb65c6f"},{"url":"https://git.kernel.org/stable/c/16bcb0f363328d80e03b0c93ffbda548a17a1fe1"},{"url":"https://git.kernel.org/stable/c/eac29989106057e848dfd435e9a20a907436adba"},{"url":"https://git.kernel.org/stable/c/12710a697096e51c66b988bb47b3c5aef2d7349c"},{"url":"https://git.kernel.org/stable/c/ac4b449b39e605123c12ea10042cafc9b6f39603"}],"title":"aio: don't let exit_aio() return before complete() is done","x_generator":{"engine":"bippy-1.2.0"}}}}