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=1793705165; b=jGXI36K4ZSfCqXJIPjlKYXX6+op2hBgVsIkCdBl2DjrMa0LX6qK3R/xcN/3lutxLv5sw 6a5vdDS85/wAsgCYagXG+JWuMfIxEHMrBTK6fBAElYQfjbjG+0GjESq3jtdktaYBGFJfa f+5akSA6iICND9f/BXSWELJJ8s3FaSgXuck3jpjndkCeEoYe+vpU3mrNEpUwKIhmAtl4t yRBPsE4p+CXWkXzt4waS0VGM/L5CacyPg9UhkLSvtNwfg/R+uTKUKbN51ZQmzd2QTftyW zouWOWgjndO+DnqWMeIoGixFC1FKrhIQjynBDQy4Rv8PhC3ptqzi1mdibwYVJI81pOA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793705165; 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=J66zZjGqTeOGJ5iBrtoa81ULst0Q1L6EU8vOjI/m6+U=; b=T6phBEflp8BBx+D7YoTpBIrbQ8CfYNv+ZufG6wVCVBY5gzd5wMVRWXS8eDvuFytxRO0R gGJXfOOtQqlwXKPxrhCsKzvlhJXVQ7eU9+9sXSfgCwGqQtbndlxNmOvhk7RspZrhyY+fN EyJwNaVmcS2sCz05Dd3PNaO/A0Wtu4gr5VPC04y7wo3xhgA7LA/Ww1lYqlh6B9YltdqwQ 2en8C60icWe8rEJM/M6y/1ZlKR1Md/aQEkQnpdE88KDyo8Jzdjz8BnAiUc9Ku7WlVpJgA tw86kaJlJkv0dydh1tZ4Wj621iD+KCcgIGcl27pnOnmKZG5+IKMgsKlreM0k6Xa8gQw== 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=rmeAZWPg; 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 65D2F606B10A for ; Tue, 3 Nov 2026 11:26:05 +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=rmeAZWPg Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01B261F00A15; Tue, 3 Nov 2026 11:26:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793705165; bh=J66zZjGqTeOGJ5iBrtoa81ULst0Q1L6EU8vOjI/m6+U=; h=From:To:Cc:Subject:Date:Reply-To; b=rmeAZWPgS7ttG38BUJVJ7xn7YWWmSgaIjfRy3YhdiE6pXYbleAO3iHBSALlQ4epc2 Q6qGWpWFJkPpDmuHEOsz8mRA+049kXDA3Lsx0WCnxj63qjixjGfQs4fSRaPRZ+XwwC 2sf2r4374XSddr0QmHlfnh5NTbI+LgLMO9TRechs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99254: io_uring: don't flood a cancelling task with task_work Date: Tue, 3 Nov 2026 12:20:19 +0100 Message-ID: <2026110317-CVE-2026-99254-7ab9@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=4065; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tUZZfGTnT11dQzbadVaADXVbgg74G7Gm5WK+UgtsYwU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvDxdGfup5dVjs9P4zNm1CWRP72E7V7Q69WcM2pWP23 6SNTLmzOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiPLIM85NKvNaEnLiTpLZ8 ZnzpkhlazmKLihkWXPl5YcvkLYfnz3YK9j9sM3XW93LDywA= 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_uring: don't flood a cancelling task with task_work io_ring_exit_work() asks each task which has used the ring to remove its tctx node, by task_work, and repeats that until the list is empty. io_tctx_exit_cb() doesn't touch the node while the task is in io_uring_cancel_generic(), which removes all the nodes at its end. So the work item queues the callback again as soon as it has completed, for nothing. That is more than a waste of time. task_work_run() only returns when it finds the list empty. If the rings are released from inside the cancellation, because requests of other rings held the last references to their files, up to 64 work items keep sending callbacks to the one task which is running them. It never finds the list empty, never gets back to the cancellation, the nodes stay, and so it goes on: a task with 60 pairs of rings which poll each other ran 280000 callbacks in 5 seconds, 20 seconds after exit_group(). It ends when all the senders happen to be late at the same time. Until then the task keeps a CPU and the work items busy. An exiting task can't be killed meanwhile. execve() cancels the requests in the same way, so a live task can get stuck there as well, for minutes. If it takes more than five, the work items run into the WARN_ON_ONCE(time_after(jiffies, timeout)) of io_ring_exit_work(). No privilege is needed for any of this. If the callback has met a task in cancellation, wait a little before it is sent again. Nobody has to wake the work item up for that: either the node is gone by then, or it is the turn of the next round. The Linux kernel CVE team has assigned CVE-2026-99254 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit d56d938b4bef3e1421a42023cdcd6e13c1f50831 and fixed in 6.1.191 with commit a22fb44e988b01b82235ea07f0bf0fc73e256596 Issue introduced in 5.12 with commit d56d938b4bef3e1421a42023cdcd6e13c1f50831 and fixed in 6.6.161 with commit 2c75ebae8a7f09c99e31c7042b7d4d595f03b2b1 Issue introduced in 5.12 with commit d56d938b4bef3e1421a42023cdcd6e13c1f50831 and fixed in 6.12.115 with commit 61c761fc21e00e45c33c2bb596be442d92fb8792 Issue introduced in 5.12 with commit d56d938b4bef3e1421a42023cdcd6e13c1f50831 and fixed in 6.18.60 with commit 14f56e9c0b8fdc2e178acdbec9781e90ef46f7e9 Issue introduced in 5.12 with commit d56d938b4bef3e1421a42023cdcd6e13c1f50831 and fixed in 7.2.14 with commit abdc57c7ebabaaf0b622178a6a85834e1e54ff80 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-99254 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_uring.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/a22fb44e988b01b82235ea07f0bf0fc73e256596 https://git.kernel.org/stable/c/2c75ebae8a7f09c99e31c7042b7d4d595f03b2b1 https://git.kernel.org/stable/c/61c761fc21e00e45c33c2bb596be442d92fb8792 https://git.kernel.org/stable/c/14f56e9c0b8fdc2e178acdbec9781e90ef46f7e9 https://git.kernel.org/stable/c/abdc57c7ebabaaf0b622178a6a85834e1e54ff80 https://git.kernel.org/stable/c/22e643e61b9b6299b42ff7d88bab48bccada8a5d