Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793705152; b=O+chU3x6x4cfmmeoCmM9PzvfINiGPqXkPk+tjj8h354QM/I2WAuL+6vN9/0ox7ro4BT0 7Q8d4Y6uNR7WlBBgeVGPfLEsXFJ8Nuy5Lgtsp9nqzJwM5/mvQ+cpWf69MHXBVl7UJQTda C3ZGdiLRMO6CLg3VQnsWglcfDJ5gs4UXNBmka90hjPA4kT2WIxGL3lkcE7+58pLG8bEyP FTDB+OeQmISBssYgeo6OxHU+XUIOj5rqJK6vshBX/JK0zH1KVXgX6XIyL+95L6jh/2r7O eIsNU2DqO5X1XtvJRZTyDvThXFnr9FFJBfSiUx8YqU28EU5uDUoTvtsaqf/aXUsRwBA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793705152; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=YfrwsZFDwwWByoe5lAjM2+RBAnpn6mn1wqkI/8LwWKo=; b=DL8NoDsEG/eH1Z24gv38qu226MPlK4MO8PUESVXUAPgzP3kyTLaC0MjxP5dBrdx1QTj/ egiYbwO1xIsEp7AmMnKnstc4Yv2MJ71+AlyubW4NUyq7yze6l9hGouDN/Aa9nV6wS+Rcf Z8ObB9sqJ6tn/e6iAocPfc73ZcmRaxxNJMre+O5yoM042/J3vdmWygi3gILHKttCk5XTX +OQT2XO902NMAoD4iyTOQhi7VTNi0DjQxm4lhPOpY8ssZe7nLBIQYGMzunM0bLS4/mW/P OwRVCpBbZdAzWQ42asddae4BWYZLKEmrwyT6aAZLEf/MTlys2XaI1oBTSLAfzKPlrJQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=YpYVE3zp; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D8FF606A824 for ; Tue, 3 Nov 2026 11:25:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=YpYVE3zp Received: by smtp.kernel.org (Postfix) with ESMTPSA id CED491F01577; Tue, 3 Nov 2026 11:25:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793705152; bh=YfrwsZFDwwWByoe5lAjM2+RBAnpn6mn1wqkI/8LwWKo=; h=From:To:Cc:Subject:Date:Reply-To; b=YpYVE3zp+J2HoF0vbmXMsQsEOwChnujKiDl0MdUroaxCZs7Y+65y1vUZg+LAiVF4U wcGDH5n9EGSeuq0Y6hPE1u/IVpxPEtiG8K5nyMym7vYLOE5XvdO4vionpmqNu1dmUZ mznaNgCYAFsaMKnCXKcRh2nLLzFEM+zEJF75ZkJc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99243: io-wq: order the exit bit against worker creation task work Date: Tue, 3 Nov 2026 12:15:46 +0100 Message-ID: <2026110345-CVE-2026-99243-a506@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3950; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S2GdSIqWnYaMyAFQUG0ueFT54PbOuqOm6Mih6OVQplw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvDyVO+HRtr+y86dG96a7r3rsVCFfsyts+LbHcdu2xH 8dbVt473xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATudzHMIdjKZfpe5nnkuv8 JnB/5psrUD33qT7DgitH2CIyF4YvXX7B6813vYgUy/tlJwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: io-wq: order the exit bit against worker creation task work io_wq_exit_workers() cancels task work for queued worker creation with task_work_cancel_match(). That has a plain load of task->task_works. io_queue_worker_create() adds the new entry and tests IO_WQ_BIT_EXIT to cancel it if the workqueue is already on its way out. That must be ordered. task_work_add() has a full barrier via cmpxchg(). But io_wq_exit_start() sets the bit with set_bit() which doesn't have any memory ordering. So afaict, on weakly ordered architectures the exiting task may load task_works before the store of the bit is visible. The other side tests the bit before the store is visible as well. So the entry remains queued with worker_refs and the exiting task waits on worker_done indefinitely. If the task still has rings then io_uring_del_tctx_node() provides the barrier via test_and_set_bit() in io_wq_set_exit_on_idle(). When it has closed all rings though that barrier is gone. Add the barrier after the set_bit(). The Linux kernel CVE team has assigned CVE-2026-99243 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.11 with commit 4b4e5bbf9386d4ec21d91c0cb0fd60b9bba778ec and fixed in 5.15.224 with commit 67da3eec264aeb67835886720243ae2dc1463315 Issue introduced in 5.16 with commit 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 and fixed in 6.1.191 with commit a63c752157eacf49f628359822666b32503d194a Issue introduced in 5.16 with commit 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 and fixed in 6.6.161 with commit 1432d881d99584105122760133caeff1dce7a9f7 Issue introduced in 5.16 with commit 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 and fixed in 6.12.115 with commit 6cf012a4d5e461c788ecc9dbed67adc31a142644 Issue introduced in 5.16 with commit 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 and fixed in 6.18.60 with commit 0d81cdd433b0a96c5275c01b8172e0b1f71dd595 Issue introduced in 5.16 with commit 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 and fixed in 7.2.14 with commit 75395db7a9b40a2e826c838e648fef8ed1a2d174 Issue introduced in 5.16 with commit 71a85387546e50b1a37b0fa45dadcae3bfb35cf6 and fixed in 7.3.1 with commit 31fc780b75b278d37700373d54a99fdb4117fdd6 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-99243 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: io_uring/io-wq.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/67da3eec264aeb67835886720243ae2dc1463315 https://git.kernel.org/stable/c/a63c752157eacf49f628359822666b32503d194a https://git.kernel.org/stable/c/1432d881d99584105122760133caeff1dce7a9f7 https://git.kernel.org/stable/c/6cf012a4d5e461c788ecc9dbed67adc31a142644 https://git.kernel.org/stable/c/0d81cdd433b0a96c5275c01b8172e0b1f71dd595 https://git.kernel.org/stable/c/75395db7a9b40a2e826c838e648fef8ed1a2d174 https://git.kernel.org/stable/c/31fc780b75b278d37700373d54a99fdb4117fdd6 https://git.kernel.org/stable/c/0e5663856b69219ef2f02e04bac9f5c5be19718a