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 4DA0A2D606 for ; Mon, 18 Mar 2024 10:08:39 +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=1710756520; cv=none; b=CzDRexmHt54X/X+aTm1A1DzrlSEZNoNmAql/HdVZQ/CfZs/eUaxL2yDsW6TMkP/2+vdC1pDMhm9HfHC66WESFrt7TzYSb/z7ZjhBVETuohcuOt+3Rru/q6itQQvsE+0mGr4shuFvbPcksjBpgk83lXP7V0KKRvuOCJ61OF8Omqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710756520; c=relaxed/simple; bh=L1jzKvNZY/qdMYeugO3kL77oyIGE6tlaoLv5eHp6348=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tGy845QC6zjYHM3SkhYP1twLcewwl28i86V5i72hK/HKpHgD/uyJQisVl2pVVvAQhDUC9GlSGwKipDUWLTb0iw9LMRAFyyUU9IJiPmHzoNJBiU9LFjYS/VAxkG5KkcAEUhQJXKMYowGkaedCdYs9EM6NINZIEZWBQDsBgUrQq4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=C7S1Efi+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="C7S1Efi+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30B40C43390; Mon, 18 Mar 2024 10:08:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710756519; bh=L1jzKvNZY/qdMYeugO3kL77oyIGE6tlaoLv5eHp6348=; h=From:To:Cc:Subject:Date:Reply-to:From; b=C7S1Efi+W9LJer3VtpH2vOWADk7BB78Gt83IzeRWjBdABVqfS+gdaS4cXpeibzTjs 08qV9SIKhh6z9ABZ3G6kJg0bJXCFMxOhPct1LiRZFB0sRc09jeklE5OsAOUlfUOiN1 lukEcxivDnW9ifd14cNCJGA49DH9I/InYGZr7ahRjzmacIpjBFV6QbP2d1VGnLW+/f waFXNHCoSRMa56F5Y1anrCDNigHDOX6+bMQWRjsWs3LN7Tal5V++gokwSv0nMOgDx3 Kkm8X38ZBcTUoAFAkzAfJ/a+BFc2W/rf40L3M+M6f7srl89kXhwY9dqh5OfmSX4Iae BCwpjElvkBA0A== From: Lee Jones To: linux-cve-announce@vger.kernel.org Cc: Lee Jones Subject: CVE-2024-26632: block: Fix iterating over an empty bio with bio_for_each_folio_all Date: Mon, 18 Mar 2024 10:08:05 +0000 Message-ID: <20240318100758.2828621-15-lee@kernel.org> X-Mailer: git-send-email 2.44.0.291.gc1ea87d7ee-goog 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=2233; i=lee@kernel.org; h=from:subject; bh=L1jzKvNZY/qdMYeugO3kL77oyIGE6tlaoLv5eHp6348=; b=owEBbQKS/ZANAwAKAVGvii+H/HdhAcsmYgBl+BJ/3s6M+IqeG+3aA7oQZd4URa7g2KgN8Oi7e OWraWrnwJiJAjMEAAEKAB0WIQR2tsk1o74gmpTwh0hRr4ovh/x3YQUCZfgSfwAKCRBRr4ovh/x3 YWc6D/9HfAK5iP/Veny+hh5AswD1eBAdNWRyxmGNPyCt1Qgi0kIwubhZl658iLS++j6vy4sxllA tFvg2/aAYSwJpoWuchtKEYdDtx6Zxhl3oBCcLlcQkJSA16KblAnkbq3VDE4YMH3yqt4LWOeI20n 6HWS2Ls0/D8yBxpr/UZ/Ex/bfpezX/S7oPGzGEByqAwK1x9AhFBeX2xhjFqVq21dn7PKUtOQVHK vKqgtV4QkcN6g0WuIANOLoGBsZ/d435u5iQzB+BV4WBCfwVXcyLvn7yB3i7xBorRX/cEKCvc6Pe NNG9Sov9+2A/o5zw4edgJsQr3ZRwDye9G6lYxVM/L/9YpOYfR0ZNjsXTC3+68veTdUQkz47Tgs5 u5pWeCO+QhaC7fWLQe1DK3IHdibAkhPwt+yT0KUFcfl+8nWyef3Lx0VK96m5ukOdaoILxdAYvgV DW+R4WPcstBZ7V18IOIf8nwDx4Rq7j6APY4R2NdpNd1EvkiJV5faNOP6LZfhrsUCshoy+ftYysu OejUsZPlAJ5v4ZykyjzviPibi3cnMtf5bchanIm9SF0TZVJsyiZgKJ/z28IkBwg4OUSAUU1+Bo0 YwRVRiN5p7Fl7yUv78ichXpMTiKLbyOLARfQLBItrajtcRUMfV434O6/I3Vd5EAUdRd/N4AGl+o 7LSgBpBpaWz6MTw== X-Developer-Key: i=lee@kernel.org; a=openpgp; fpr=76B6C935A3BE209A94F0874851AF8A2F87FC7761 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: block: Fix iterating over an empty bio with bio_for_each_folio_all If the bio contains no data, bio_first_folio() calls page_folio() on a NULL pointer and oopses. Move the test that we've reached the end of the bio from bio_next_folio() to bio_first_folio(). [axboe: add unlikely() to error case] The Linux kernel CVE team has assigned CVE-2024-26632 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 640d1930bef4 and fixed in 6.1.75 with commit c6350b5cb78e Issue introduced in 5.17 with commit 640d1930bef4 and fixed in 6.6.14 with commit a6bd8182137a Issue introduced in 5.17 with commit 640d1930bef4 and fixed in 6.7.2 with commit ca3ede3f5893 Issue introduced in 5.17 with commit 640d1930bef4 and fixed in 6.8 with commit 7bed6f3d08b7 Please see https://www.kernel.org or 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-2024-26632 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/bio.h 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/c6350b5cb78e9024c49eaee6fdb914ad2903a5fe https://git.kernel.org/stable/c/a6bd8182137a12d22d3f2cee463271bdcb491659 https://git.kernel.org/stable/c/ca3ede3f5893e2d26d4dbdef1eec28a8487fafde https://git.kernel.org/stable/c/7bed6f3d08b7af27b7015da8dc3acf2b9c1f21d7