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 467D5C2E0 for ; Fri, 7 Mar 2025 09:10:12 +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=1741338613; cv=none; b=ZREzF6q5otCkyNFb6R+Om0W9ywe4KgCkFJjZ8xOmFudXbHdZNFMLFHXN568Qu6i1L24XSd32OYpGA6eLGGENG/63Y6dCh8fYdZ7Qg69NTjB3ir080UYegQCKw3NhGiPSC3CbzjKj26Gx2Nsc+fkyF45cgzyW/+nvt5fIIbiIHu0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741338613; c=relaxed/simple; bh=7i0MIhm/LklSCqGote4QUEc9KCummEJan+UbYLAqLVY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gkGR6nmOnDzLw+/P3PAy2s98DSee1FMrWYY4o7dDxQg7G1h6I5GyCmxPH6yRscu20vvbIvQPTMYvW8LlaYQ9QkYi8WP0owt1VxiSJbn3r52yy8q13u767FqDVLmbo4DZH5lE0Pdb3AzwjrGReRwFJg8vhCh+k64oaXuZsoc+zFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T4lK4CjH; 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="T4lK4CjH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B151C4CED1; Fri, 7 Mar 2025 09:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741338612; bh=7i0MIhm/LklSCqGote4QUEc9KCummEJan+UbYLAqLVY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=T4lK4CjHK847qhyB5AXUI2K5z3t9g4urxh9pY2qgrbz2N2FNjT6tD1LMXQpNQ/KqP bhojQ6bi5ihuFoYotb3tsKqW5otkwbTKuVOxAxY4iIIaO1XQIAoYB4saDjbBlRyylC chzyz4JWdL0JuwQyoMr82WmRShuYEO697Tjz+i78= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21836: io_uring/kbuf: reallocate buf lists on upgrade Date: Fri, 7 Mar 2025 10:10:06 +0100 Message-ID: <2025030706-CVE-2025-21836-b358@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=2455; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7i0MIhm/LklSCqGote4QUEc9KCummEJan+UbYLAqLVY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmntr/LVAxldTbR4P3vVfqZ9fKH1rvRz5etEj3d81Hnk 8kr3xTmjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhICx/D/CRm+WfKivOWTPaK k2gMqzvIXHk9hWG+z6b5jaZLXWvd9t/ujEqp36vrFmAIAA== 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/kbuf: reallocate buf lists on upgrade IORING_REGISTER_PBUF_RING can reuse an old struct io_buffer_list if it was created for legacy selected buffer and has been emptied. It violates the requirement that most of the field should stay stable after publish. Always reallocate it instead. The Linux kernel CVE team has assigned CVE-2025-21836 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 2fcabce2d7d34f69a888146dab15b36a917f09d4 and fixed in 6.6.79 with commit 146a185f6c05ee263db715f860620606303c4633 Issue introduced in 5.19 with commit 2fcabce2d7d34f69a888146dab15b36a917f09d4 and fixed in 6.12.16 with commit 7d0dc28dae836caf7645fef62a10befc624dd17b Issue introduced in 5.19 with commit 2fcabce2d7d34f69a888146dab15b36a917f09d4 and fixed in 6.13.4 with commit 2a5febbef40ce968e295a7aeaa5d5cbd9e3e5ad4 Issue introduced in 5.19 with commit 2fcabce2d7d34f69a888146dab15b36a917f09d4 and fixed in 6.14-rc3 with commit 8802766324e1f5d414a81ac43365c20142e85603 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-21836 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/kbuf.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/146a185f6c05ee263db715f860620606303c4633 https://git.kernel.org/stable/c/7d0dc28dae836caf7645fef62a10befc624dd17b https://git.kernel.org/stable/c/2a5febbef40ce968e295a7aeaa5d5cbd9e3e5ad4 https://git.kernel.org/stable/c/8802766324e1f5d414a81ac43365c20142e85603