Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 997C12FDC30 for ; Thu, 25 Jun 2026 08:45:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377137; cv=none; b=Awc182Dg569M0OYVpcYrkBhdD7QFIHCMmWztzc8FLGdC7VtQz6yDwhilyIZ3eDQ+r6pP3tW4tSVzCzeYmAD1NY7ThSPmkPV8TRbdRUQfl/eTJKuccFzzZrjh7tXkMpO2wbQH+Ld/eliL+EGm74Y5GmvCKmt9bXk4Q1EI1B3ECLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377137; c=relaxed/simple; bh=MWAEdJE+W8UJdHXEWZ3sql/s7rOrdLrYd2Rr8bBY/a0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g/3W3/Yt79LV0iTuYQ6W1weR3m4GoQcVmowM17NIAT4LAUZWHAFtCdcqnBMXHmT3G1aXHI7BjEgOr74a7ISTatWCgIye1mROUrPcfsZzIJ19FFIFaomAF/6vH9I8Nl/2yETgndYhbYNmkO7l4S/VwFOfP4KqbrnvKGIrxehVsM4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=03Gs8oTY; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="03Gs8oTY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D55C21F000E9; Thu, 25 Jun 2026 08:45:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377136; bh=+tTkpxyYrXR68OmbbZXfJsWwMCn2GIpeultMwU8PBu8=; h=From:To:Cc:Subject:Date:Reply-To; b=03Gs8oTYKzviAB6C0VG9TGdJNHoEdJVZ6LIjRcVERVJkXQt2VyDGrV3YA7oWjpfYn szccqSIC+szJUZPUGmi7yKsvWX7dQ7oP/fIU8Q09R3zt42266xyHMmFU4WGoxAXD9y pLwAfgrGgM+nn7qNi1ODbG4865GyhKuFLHkqYSMo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53191: io_uring/net: inherit IORING_CQE_F_BUF_MORE across bundle recv retries Date: Thu, 25 Jun 2026 09:40:39 +0100 Message-ID: <2026062557-CVE-2026-53191-4a97@gregkh> X-Mailer: git-send-email 2.54.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=3601; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=k0RXsSHXbuy1IcNy+c3O9k9kfZNAODCBW46ZmqwVt6c=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L+NWCib5Xxd88UF0ngDXjfcrWJkU7f6wfRWLeiK/4 ezKr88WdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEPlUwLLjw/ti0+Rvtjuy1 lI66FKneUXbioQnDgklPS+QfBkltfPhh33mlJ10sX6/fsgUA 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/net: inherit IORING_CQE_F_BUF_MORE across bundle recv retries When a bundle recv retries inside io_recv_finish(), the merge logic OR the saved cflags from the previous iteration with the cflags returned by the new iteration: cflags = req->cqe.flags | (cflags & CQE_F_MASK); Bits listed in CQE_F_MASK are inherited from the new iteration, and all other bits (notably IORING_CQE_F_BUFFER and the buffer ID) come from the saved cflags. Before this change CQE_F_MASK covered only IORING_CQE_F_SOCK_NONEMPTY and IORING_CQE_F_MORE. When using provided buffer rings (IOU_PBUF_RING_INC) with incremental mode, and bundle recv, io_kbuf_inc_commit() can leave the head ring entry partially consumed, __io_put_kbufs() then sets IORING_CQE_F_BUF_MORE on the returned cflags so userspace knows the buffer ID will be reused for subsequent completions. Because IORING_CQE_F_BUF_MORE was not in CQE_F_MASK, the merge above silently dropped it whenever the final retry iteration partially consumed the buffer, and the subsequent req->cqe.flags = cflags & ~CQE_F_MASK save would have left a stale IORING_CQE_F_BUF_MORE in the carried-over cflags had one been present. Userspace would then wrongfully advance it ring head past an entry the kernel still uses. Add IORING_CQE_F_BUF_MORE to CQE_F_MASK so it is both inherited from the new iteration into the user-visible CQE and stripped from the saved cflags between iterations. The Linux kernel CVE team has assigned CVE-2026-53191 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit ae98dbf43d755b4e111fcd086e53939bef3e9a1a and fixed in 6.12.94 with commit f40570fda3f3a1f96aeaa4aef665ba274b2810b5 Issue introduced in 6.12 with commit ae98dbf43d755b4e111fcd086e53939bef3e9a1a and fixed in 6.18.36 with commit 0bbc9481f970b0b4ddb08cfa464db1cc93b74b56 Issue introduced in 6.12 with commit ae98dbf43d755b4e111fcd086e53939bef3e9a1a and fixed in 7.0.13 with commit 4973232a67e4137ab9399f504f7f2bdd847f96d2 Issue introduced in 6.12 with commit ae98dbf43d755b4e111fcd086e53939bef3e9a1a and fixed in 7.1 with commit ed46f39c47eb5530a9c161481a2080d3a869cfaf 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-53191 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/net.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/f40570fda3f3a1f96aeaa4aef665ba274b2810b5 https://git.kernel.org/stable/c/0bbc9481f970b0b4ddb08cfa464db1cc93b74b56 https://git.kernel.org/stable/c/4973232a67e4137ab9399f504f7f2bdd847f96d2 https://git.kernel.org/stable/c/ed46f39c47eb5530a9c161481a2080d3a869cfaf