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 5F6DE30EF71 for ; Tue, 28 Oct 2025 11:51:07 +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=1761652267; cv=none; b=SbZmtotPP7Wfd5HYTWwFx0mw3RXg2MtDiBgYDq79TIsgysnU024w7FuGw0Q5pmA1PyxR9lmSK2XYFUEljVmyQR21IAxgDylufShVZ7eHBn1DbjirXgv2wWGXcS0ZDhEy5w4GPnz50MTMXwR1WZAd0xNO5RN4L7y24e65KCHNXno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761652267; c=relaxed/simple; bh=ySOOBD98pDgaj+vApJuVxeUZlbi5vhAqj1/t+Zvrh8Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=idMYd+SVXDEonTx6BYZWaBwGl78wKPyazGlL/tPLjH9aZY/NCu8IfPrqCnNSNPgRbSIfZdW01jc4537iMp7DJJYyOFvmBfBRAto4WxKd4xdhbshy4SJmHSFw04TWMZM5Fqzg5XJODH1XcCrA2dxi8GXLR43KMxM3JZayUOKb88c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sNu+QX4l; 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="sNu+QX4l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D490C4CEF7; Tue, 28 Oct 2025 11:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761652267; bh=ySOOBD98pDgaj+vApJuVxeUZlbi5vhAqj1/t+Zvrh8Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sNu+QX4lM1U7ZJpZJIE2/0I1slJJIKE2Z0aAhwR6dFtEwToV4oLt0+At4I+KJMXcU peh9aJpA+NOeMw9rHOjU3A+B22tEyrwngVx2yFsyjafrX473I5woQpB/F3Lr5OFbUm qsgzyftSBvlpRnOXVCF9Vm6I+Fqjjc7WtOaX9I1k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40046: io_uring/zcrx: fix overshooting recv limit Date: Tue, 28 Oct 2025 12:48:23 +0100 Message-ID: <2025102813-CVE-2025-40046-391f@gregkh> X-Mailer: git-send-email 2.51.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2050; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2j12kY9XEecJz7khr96hJbMfneVEbGfZZT3787Yf0Vc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkMa2snvfgSfmzuGv1tHfPWdsiEcCu/z9lWfTbFY6NGb vCXqwXTOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi5aYMs9n8RDnl51b+tSg7 zGUe/n1WsUL2BYb5ZT+eOgsFqty5W/Di+QXFeJsnyXU6AA== 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/zcrx: fix overshooting recv limit It's reported that sometimes a zcrx request can receive more than was requested. It's caused by io_zcrx_recv_skb() adjusting desc->count for all received buffers including frag lists, but then doing recursive calls to process frag list skbs, which leads to desc->count double accounting and underflow. The Linux kernel CVE team has assigned CVE-2025-40046 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 6699ec9a23f85f1764183430209c741847c45f12 and fixed in 6.17.3 with commit 8bcc9eaf1b19f1a7029cba19f6bd4122b40f6c4f Issue introduced in 6.15 with commit 6699ec9a23f85f1764183430209c741847c45f12 and fixed in 6.18-rc1 with commit 09cfd3c52ea76f43b3cb15e570aeddf633d65e80 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-2025-40046 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/zcrx.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/8bcc9eaf1b19f1a7029cba19f6bd4122b40f6c4f https://git.kernel.org/stable/c/09cfd3c52ea76f43b3cb15e570aeddf633d65e80