Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DC5B36F411 for ; Fri, 20 Mar 2026 08:13:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773994436; cv=none; b=klWZnG8YlEBQmDCMimjrYhic/HQUQdXlqDZvr5H3AeWl1w1b5RwtfxAWvO9Z6mUwQZpkR/QJClCdXXUlS2Mh6OFJ9sbXwM+SSCzpY3+0zSaNjp+a+GDszZSH9/Gt/11/w3J8c9PNqPevb2d/jxzgmrQrJ8Yqxb9sO3vdiejuMk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773994436; c=relaxed/simple; bh=5iaPFsG8Vx/CjTEsMHFYuT/jnkj20wP09C4GIwVxzFU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YgLHqgw8WbcyQ+95LAvWbtRmWYeABa+6Pm95/bOq1w715CeQLfM0aOpU/TH4s2iypoDSApAlSaDcGeCrziBnERtneJ63SWKJLtJWpuCkMcymQlFTpiEixr6Rg37Lx+BeNM/AKpfObIdJW0Txc4z9GnxL0/zrIrpAPPjpN4fKOp4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XqfxyYTv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="XqfxyYTv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5DE2C4CEF7; Fri, 20 Mar 2026 08:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773994436; bh=5iaPFsG8Vx/CjTEsMHFYuT/jnkj20wP09C4GIwVxzFU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=XqfxyYTvn8gaW8T5WM33HFpB9uAXb8tTDNoPLtvWCLiBOgyAAbDo5mLLqtmOaDDvI hipRPx1eN1tJPsTNcN2YT84zUCYOSagrIKTnze3sm3RwmWrujo75eYkjqgnMP/jiZ6 icVsaCTeCOQiLDV+BCCTv5kxQz/8D2Ma3VlHxiXs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23275: io_uring: ensure ctx->rings is stable for task work flags manipulation Date: Fri, 20 Mar 2026 09:13:36 +0100 Message-ID: <2026032035-CVE-2026-23275-33fe@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2796; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=78rKeFfm8owVGTlHpAx4cUQJfPJW8hOKIWxrznvnTp8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl7GdeLtwhc+uUYu2Q376HwxZMM5TtS5FW5F355/GSvn 3iIdbBVRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkiIdhwfT9Lisa9UWYRC6Z ZG47ETizMYkjm2GuBKse90MzgWmLFwrcC35/Q2edy0JPAA== 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: ensure ctx->rings is stable for task work flags manipulation If DEFER_TASKRUN | SETUP_TASKRUN is used and task work is added while the ring is being resized, it's possible for the OR'ing of IORING_SQ_TASKRUN to happen in the small window of swapping into the new rings and the old rings being freed. Prevent this by adding a 2nd ->rings pointer, ->rings_rcu, which is protected by RCU. The task work flags manipulation is inside RCU already, and if the resize ring freeing is done post an RCU synchronize, then there's no need to add locking to the fast path of task work additions. Note: this is only done for DEFER_TASKRUN, as that's the only setup mode that supports ring resizing. If this ever changes, then they too need to use the io_ctx_mark_taskrun() helper. The Linux kernel CVE team has assigned CVE-2026-23275 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 and fixed in 6.18.19 with commit 7cc4530b3e952d4a5947e1e55d06620d8845d4f5 Issue introduced in 6.13 with commit 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 and fixed in 6.19.9 with commit 46dc07d5f31411cc023f3bf1f4a23a07bf6e0ed1 Issue introduced in 6.13 with commit 79cfe9e59c2a12c3b3faeeefe38d23f3d8030972 and fixed in 7.0-rc4 with commit 96189080265e6bb5dde3a4afbaf947af493e3f82 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-23275 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: include/linux/io_uring_types.h io_uring/io_uring.c io_uring/register.c io_uring/tw.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/7cc4530b3e952d4a5947e1e55d06620d8845d4f5 https://git.kernel.org/stable/c/46dc07d5f31411cc023f3bf1f4a23a07bf6e0ed1 https://git.kernel.org/stable/c/96189080265e6bb5dde3a4afbaf947af493e3f82