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 4F6593D6F for ; Thu, 1 May 2025 12:57:08 +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=1746104229; cv=none; b=LGL7waJ3SzhoQD4S5EftwArIKnhMWjLy08RbTxwJTDHx+l3GWrBQKMn/zYYZSI2LUJmOH1UTb4FSeC2y2usnwmcYxApLel54yHzEEqHfVuPQSOFU4TMi0T/UcFW7xT81LHfiv9dowcU/sqSzJVemo4jh5yBGIqgDanzI/8AIel0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104229; c=relaxed/simple; bh=nSlxpo11/oxsM7R2vz4AW/G+gy4qA/fanM85Bm+/jpM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OoK2v+jePjVM/43cwbNo9TlDkStTvndiueS+SgcekcnN5Sh7aoxHcaecVqlIH+Ki8YiPCn89nVVZUE7qktE8EeJWPdcrXE09Lc/x/9IVOpCVN6sWRxdMnhaj4nA9k1DycUA/9jZZAZnrCOz8eMkVmIF2FElvmAI3uVaNQ4itffI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a3910Q8d; 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="a3910Q8d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34EADC4CEE3; Thu, 1 May 2025 12:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104228; bh=nSlxpo11/oxsM7R2vz4AW/G+gy4qA/fanM85Bm+/jpM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=a3910Q8dF0QGzgr2LNXR14J7hhGULG7QCCRFUQfnxrUKCBcmvPylLJngBnb3ycgBk YD/8KVqWRqf+KHtArlw1QVAZ6R3d/6bx4CNz+hoWKbY8hNlGuROqD/HhcHhty8f3pi c3QviE6AhiZP0/2FrjHMVOQDSPHJpNXx/2zyO3uw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-23154: io_uring/net: fix io_req_post_cqe abuse by send bundle Date: Thu, 1 May 2025 14:56:34 +0200 Message-ID: <2025050129-CVE-2025-23154-36e0@gregkh> X-Mailer: git-send-email 2.49.0 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=3077; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+/j8QP2BDqvUiXQ9aMZvjlF48VVSKGyJm7xjKu0B6IY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnC+bVulxeFmPVaPTstGrlKWIGvqVxWLerGPHXvB6k7F cN+Oh3oiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIko9zDMD2FcHrm6tZ7b89Ik uRcdEmtiBc9kMsz3407UXrzuQN/+Q7v3Rq3PalY3zXoAAA== 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: fix io_req_post_cqe abuse by send bundle [ 114.987980][ T5313] WARNING: CPU: 6 PID: 5313 at io_uring/io_uring.c:872 io_req_post_cqe+0x12e/0x4f0 [ 114.991597][ T5313] RIP: 0010:io_req_post_cqe+0x12e/0x4f0 [ 115.001880][ T5313] Call Trace: [ 115.002222][ T5313] [ 115.007813][ T5313] io_send+0x4fe/0x10f0 [ 115.009317][ T5313] io_issue_sqe+0x1a6/0x1740 [ 115.012094][ T5313] io_wq_submit_work+0x38b/0xed0 [ 115.013223][ T5313] io_worker_handle_work+0x62a/0x1600 [ 115.013876][ T5313] io_wq_worker+0x34f/0xdf0 As the comment states, io_req_post_cqe() should only be used by multishot requests, i.e. REQ_F_APOLL_MULTISHOT, which bundled sends are not. Add a flag signifying whether a request wants to post multiple CQEs. Eventually REQ_F_APOLL_MULTISHOT should imply the new flag, but that's left out for simplicity. The Linux kernel CVE team has assigned CVE-2025-23154 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit a05d1f625c7aa681d8816bc0f10089289ad07aad and fixed in 6.12.24 with commit b7c6d081c19a5e11bbd77bb97a62cff2b6b21cb5 Issue introduced in 6.10 with commit a05d1f625c7aa681d8816bc0f10089289ad07aad and fixed in 6.13.12 with commit 7888c9fc0b2d3636f2e821ed1ad3c6920fa8e378 Issue introduced in 6.10 with commit a05d1f625c7aa681d8816bc0f10089289ad07aad and fixed in 6.14.3 with commit 9aa804e6b9696998308095fb9d335046a71550f1 Issue introduced in 6.10 with commit a05d1f625c7aa681d8816bc0f10089289ad07aad and fixed in 6.15-rc1 with commit 6889ae1b4df1579bcdffef023e2ea9a982565dff 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-23154 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/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/b7c6d081c19a5e11bbd77bb97a62cff2b6b21cb5 https://git.kernel.org/stable/c/7888c9fc0b2d3636f2e821ed1ad3c6920fa8e378 https://git.kernel.org/stable/c/9aa804e6b9696998308095fb9d335046a71550f1 https://git.kernel.org/stable/c/6889ae1b4df1579bcdffef023e2ea9a982565dff