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 E394F14601E for ; Mon, 29 Jul 2024 14:58:53 +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=1722265134; cv=none; b=SzRDrI/MyaVtlIbiD2w07LXgAGxwnFUwh7mFUKxm+q/ykvXkq5Fkl8Ezf+2poEuc4J3WylaXV7eEg82giLS3lTfOyLkvDeuBAlu0TpM9TchS+NTiA8xzIsRzrjsAN3NkuFVYu6Wwi0YazTgMZMPgpgTd+1LLiKrTWm+8Y+HivV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722265134; c=relaxed/simple; bh=ELzf/9EclcWYCcDWNBP1SzCyzMJ/3FGfxxRok/4j/S4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jv7c3b0466PlK7kPscMhq62V+HVUr3mWlohEzQoV27ngrDJM9xymRUBqKqD/6QEsr3klC1Z8vHOTioWb1FuZMSbrgkyq2o+1K7V6BWEuATXQUDZ7ZHmVGam+j5P7h43jG1olz5UzThPphvuTJzPSTbbR+BfnK7VBuRGqwcz3Bms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OCCbFoYU; 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="OCCbFoYU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67BDDC32786; Mon, 29 Jul 2024 14:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722265133; bh=ELzf/9EclcWYCcDWNBP1SzCyzMJ/3FGfxxRok/4j/S4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OCCbFoYU4vSd/ANYXWKHczM/Ehuc9eAq0dSzsTXfPiXpmAoe7oxlvJI1FMz06hMli nQTtnhkWdNG2i32Un+yI5Nyg6nxScQblVQDsbeJrl3gIPk9Db1tzMz2XzB6vtsnGnf LeVm1fv7ieb0BP566faDbdh6Qkd1qfgWdFf7Rkrs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-41077: null_blk: fix validation of block size Date: Mon, 29 Jul 2024 16:58:23 +0200 Message-ID: <2024072910-CVE-2024-41077-9c88@gregkh> X-Mailer: git-send-email 2.45.2 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=2296; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ELzf/9EclcWYCcDWNBP1SzCyzMJ/3FGfxxRok/4j/S4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnL1zHXf+JfezWs8m5UX4HW050J/UUZgr9WZLXf79gQr KY03UauI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayfzbDgskP2OQFDG8c1fG4 uXPu2sKj7/9M0mSYpzpTYuH/iUenV+qfiuYzVFwrr7uwFQA= 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: null_blk: fix validation of block size Block size should be between 512 and PAGE_SIZE and be a power of 2. The current check does not validate this, so update the check. Without this patch, null_blk would Oops due to a null pointer deref when loaded with bs=1536 [1]. [axboe: remove unnecessary braces and != 0 check] The Linux kernel CVE team has assigned CVE-2024-41077 to this issue. Affected and fixed versions =========================== Fixed in 5.10.223 with commit 9625afe1dd4a Fixed in 5.15.164 with commit 9b873bdaae64 Fixed in 6.1.101 with commit 2772ed2fc075 Fixed in 6.6.42 with commit 08f03186b96e Fixed in 6.9.11 with commit f92409a9da02 Fixed in 6.10 with commit c462ecd659b5 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-2024-41077 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: drivers/block/null_blk/main.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/9625afe1dd4a158a14bb50f81af9e2dac634c0b1 https://git.kernel.org/stable/c/9b873bdaae64bddade9d8c6df23c8a31948d47d0 https://git.kernel.org/stable/c/2772ed2fc075eef7df3789906fc9dae01e4e132e https://git.kernel.org/stable/c/08f03186b96e25e3154916a2e70732557c770ea7 https://git.kernel.org/stable/c/f92409a9da02f27d05d713bff5f865e386cef9b3 https://git.kernel.org/stable/c/c462ecd659b5fce731f1d592285832fd6ad54053