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=1793635454; b=g+JMTM+NFzLQNCoJ268lGTWxps3DEA0xm9FVVEpl0oU5qc/lVfqhK8xy5P/LTGx2QLdj 2Mgsnkc8kkcHz0NYljvl2flCUWoSH05Da8RIj3xtkwVR5A1QGuZChb/8Py0B1Uz5HC/JQ HoaCOPc1vf1PwqxxnzvyJSbo/Wp0Y3Hwv18BzuMJnn8RONeEMvOP99Vuv/pX5JbaOXE7r TY2QAuGpdLT1HCKEC4BxHm9jA0fpVmJgYi8i2l4H1qVhToU+mzSqlHbS5tlg1MYp6hQnx uLmpHgA7l+E2T27JE2vYxPmTOAGx8CKjgEfsJHTBm+odqtqMnyf2V+kBf67TNTAC4Zg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793635454; 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=AT9a/MCJhk2TcecQDy0VqvbcYSc938XMUh5taLrRHLU=; b=3+Lxyd7It4RbB/mxh3CKpzJHkVkXC5RRbrkHHNmxcw9VC2zzPfafPGh2TAjA0ZgrOSWV FNyFT1MT7lXEiVZG4hV1pGTJmarVborJzhROB4J6kCeyxB0j2xqvFwlq+Ef4qf65hmFIV ky0J6P7x3RaomF7Q2++UjsAYVe2Wi2LjBmInXP0OeJYG7ZUP2qQfPr4JKwecd3s75URqV 1lvHk/VpTqG9KNTulMfxjyYaAhJig2ZHZ/V+J1ymW41pwAfsd/t4vigKbmaPxr5L4epSX iW6pmGpMNai6SVKaHi6WCGf1sCRK7kgMN4BAD4XTqdAkH1+yXj6jYn31/oY3KgZm9oA== 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="X/sPkitp"; 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 4BECD606FB6B for ; Mon, 2 Nov 2026 16:04:13 +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=X/sPkitp Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F7C71F00A1C; Mon, 2 Nov 2026 16:04:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793635453; bh=AT9a/MCJhk2TcecQDy0VqvbcYSc938XMUh5taLrRHLU=; h=From:To:Cc:Subject:Date:Reply-To; b=X/sPkitpIWz7r0raZH6uzPbLHVgTX8XRoPNj5ImWoDnvSJVpdO6IxP0Ilg0uGOArm NR2rgU3+DHKizdDTU4xpfAXjDwmG3T45+ve6RN484HimBhKTbXsKXVijYouvP3X1P0 1LR2/VC7whWowVae9pxb5UGVuCbRnMfXwrylLbK4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99227: io_uring/waitid: prevent cancel reference wrap Date: Mon, 2 Nov 2026 17:04:10 +0100 Message-ID: <2026110205-CVE-2026-99227-568e@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=3439; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KEUizJ0SwlKe1ds5ozE4fZvk4OzX+sxRB3AOpTnJSV4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvtpQeOvRwcn/amfvhLa+8TnXlfz1ip/o0YN+P3+umn 3ZbwOQX0BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATOXmRYcHlZ7fU9k9i/e/w 52hru1/QtesekScY5gr+iQ5pLalI/qtf8Fdc537n7NijSgA= 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/waitid: prevent cancel reference wrap io_waitid packs the cancellation state into bit 31 of ->refs and uses bits 30:0 as a 31-bit reference counter: #define IO_WAITID_CANCEL_FLAG BIT(31) #define IO_WAITID_REF_MASK GENMASK(30, 0) __io_waitid_cancel() marks a request canceled, then increments the low bits of ->refs to claim completion ownership. When another path owns the request, the increment remains even though cancellation returns false. The request remains discoverable by cancellation, so repeated failed attempts can wrap the 31-bit reference field to zero. A later cancellation can claim ownership and complete the request a second time. Use atomic_fetch_or() when setting the cancel flag and inspect the old flag value. The first cancel attempt continues to the existing ownership increment, preserving its wake and issuer handoff semantics. Later attempts see the cancel flag and return without incrementing the reference field. This makes repeated failed cancellation attempts idempotent while leaving the first-cancel state transitions unchanged. The Linux kernel CVE team has assigned CVE-2026-99227 to this issue. Severity ======== CVSS v3.1: 7.8 HIGH Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Affected and fixed versions =========================== Issue introduced in 6.7 with commit f31ecf671ddc498f20219453395794ff2383e06b and fixed in 6.12.115 with commit 20b67288574c7c3df6b8ea7ed3b7af90a868006f Issue introduced in 6.7 with commit f31ecf671ddc498f20219453395794ff2383e06b and fixed in 6.18.60 with commit 5bfeee1774791602a0d53eb717f00f172127a017 Issue introduced in 6.7 with commit f31ecf671ddc498f20219453395794ff2383e06b and fixed in 7.2.14 with commit 857aa2012b91cad6fdef54a4b6c632d9d0b6e64f Issue introduced in 6.7 with commit f31ecf671ddc498f20219453395794ff2383e06b and fixed in 7.3.1 with commit 22fb4a4518e305164c7f203608287564de292f34 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-99227 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/waitid.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/20b67288574c7c3df6b8ea7ed3b7af90a868006f https://git.kernel.org/stable/c/5bfeee1774791602a0d53eb717f00f172127a017 https://git.kernel.org/stable/c/857aa2012b91cad6fdef54a4b6c632d9d0b6e64f https://git.kernel.org/stable/c/22fb4a4518e305164c7f203608287564de292f34 https://git.kernel.org/stable/c/98787d3fa4e99564d2b2bc21255b21f670c450d0