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 0F7181F3FF8 for ; Fri, 7 Mar 2025 09:10:20 +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=1741338621; cv=none; b=M85wTLiw7zf+8T5LSh0NYDTf2GTY/I08Jlgy+CsKGZMSyrArQRksvGlG3yQFQfseNeL+pcfy9YmSEUW9PxlB6rFl2yZHANiOS31tZsSW7M/ldyi83yemdy10KLbiTM0aV5QQr6QEj63BsU+4/Oojd7EkGLRCftMRj14q78AdB8w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741338621; c=relaxed/simple; bh=gQBXPRDpuoD2pxF1nUQjVcfVVg7RXJEYpTuSHjO8+Z0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=da2xU8SRNneaMZWZI6O1ko+FrAIn3XYLNugRoiWinyN9zwUxyHEDv/Dh0obsaoPRuD2slrhWXIszahHesVLyPUJlFAi/AfKsAOrRoGYQChal/pZ4HaPa6L7/v6D9XdbWoK8sRb+BA6IH0j9QQLXlVHvEFRwkgCnuIMScXK+U/Eg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kDfThsym; 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="kDfThsym" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B58EC4CEE2; Fri, 7 Mar 2025 09:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741338620; bh=gQBXPRDpuoD2pxF1nUQjVcfVVg7RXJEYpTuSHjO8+Z0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kDfThsymErPhl0oNzaaH3GQ9eLMpgO4DS2acb6OaFVJ6E/kAclWHewsTiKeJq/8Q9 FIsXXJOMFh65ANwfuT/bAubdfW2SEOcNQm8yDrqh6ezSgO4uUEISFj+f2+dKMhmjvE ncb7FONN3+upTZJo7XUzCnYFtVY0URE3Q7LiEHgc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21837: io_uring/uring_cmd: unconditionally copy SQEs at prep time Date: Fri, 7 Mar 2025 10:10:07 +0100 Message-ID: <2025030706-CVE-2025-21837-85ef@gregkh> X-Mailer: git-send-email 2.48.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=2376; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gQBXPRDpuoD2pxF1nUQjVcfVVg7RXJEYpTuSHjO8+Z0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmntr9TWpmbHr9fl1Xi1YkFq2b72fZ1Pu15lzXF3/R57 xUnV93/HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRtpUM8wv4NJOfXbB6vGaf 04m5U46K7S6Z+Ythvmtc3HdW5r49M6LYS8/2dzsm/DkUCAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: io_uring/uring_cmd: unconditionally copy SQEs at prep time This isn't generally necessary, but conditions have been observed where SQE data is accessed from the original SQE after prep has been done and outside of the initial issue. Opcode prep handlers must ensure that any SQE related data is stable beyond the prep phase, but uring_cmd is a bit special in how it handles the SQE which makes it susceptible to reading stale data. If the application has reused the SQE before the original completes, then that can lead to data corruption. Down the line we can relax this again once uring_cmd has been sanitized a bit, and avoid unnecessarily copying the SQE. The Linux kernel CVE team has assigned CVE-2025-21837 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 5eff57fa9f3aae3acbcaf196af507eec58955f3b and fixed in 6.13.4 with commit 87fe1d68842a308998b315c8ed0163a1d639017c Issue introduced in 6.10 with commit 5eff57fa9f3aae3acbcaf196af507eec58955f3b and fixed in 6.14-rc3 with commit d6211ebbdaa541af197b50b8dd8f22642ce0b87f 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-21837 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/uring_cmd.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/87fe1d68842a308998b315c8ed0163a1d639017c https://git.kernel.org/stable/c/d6211ebbdaa541af197b50b8dd8f22642ce0b87f