From mboxrd@z Thu Jan 1 00:00:00 1970 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 67B8C6FBD for ; Fri, 23 Feb 2024 14:47:46 +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=1708699666; cv=none; b=qGd4n/IyKhHtBibX0N2n/EEYfqHHQTz2OAOZdUCrpQ2LWCULzvf+EsZgxZ4GjL1D0tPeRGNYEHb00uBO7EVk2wbVTF+B25ef7PFYT4EMjAz9ls85DMCFodkix+wsGuNniFDB13VY8BO61Gk+oUWoGP5YDq0qM/IBQB+eMtbUKtY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708699666; c=relaxed/simple; bh=0shwpLXUo5rIc502TsBGVRxQmspzAKivMpbEMOA8C4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Pfp6xmhgr9+DOvJ1OMVAyMbPYfx9ISY3NDpnRqnxVgwFF2BWYDJZ/l+T6XxgO5q3+6hD5I4ZE7/jGLm/uO5FCidyLKKHiIM2IhmExP01l1TYsPR2daV8yGld/jyzXzSaNiSjp02qs2/mglcU2nYOgiv9CoPeFIFFCEXVVJJzqM4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rG0HXOvB; 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="rG0HXOvB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1E86C433F1; Fri, 23 Feb 2024 14:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708699666; bh=0shwpLXUo5rIc502TsBGVRxQmspzAKivMpbEMOA8C4c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rG0HXOvB4Bm4uZ0w0i8nSvLKvcWXzzCd2vwBrtPyX5KU3HDPuCZPJ61zYw6ofX7Hu GUj8qmrcS0xfKwKjocD5smdX3q/TCFr9HFJo88MnsV7ozauFMPbmL9FkeClxlpXkIP YMTwGel80UNMPS9Ua+I7NdkZYgds5clZppIjDDW4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52458: block: add check that partition length needs to be aligned with block size Date: Fri, 23 Feb 2024 15:47:33 +0100 Message-ID: <2024022332-CVE-2023-52458-d1cd@gregkh> X-Mailer: git-send-email 2.43.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=2470; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0shwpLXUo5rIc502TsBGVRxQmspzAKivMpbEMOA8C4c=; b=owGbwMvMwCRo6H6F97bub03G02pJDKk3NrA8vJN9ry1Dy8PVxnfZ82nROWmpLUIibWbHjt1qc J+h1OXXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNZPoFhwcWedWx7pHc0H0xd MYWXVXzP++4bOxgWrFeZV8m5KOHpnD+C4W83BOr/9o1uAQA= 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: block: add check that partition length needs to be aligned with block size Before calling add partition or resize partition, there is no check on whether the length is aligned with the logical block size. If the logical block size of the disk is larger than 512 bytes, then the partition size maybe not the multiple of the logical block size, and when the last sector is read, bio_truncate() will adjust the bio size, resulting in an IO error if the size of the read command is smaller than the logical block size.If integrity data is supported, this will also result in a null pointer dereference when calling bio_integrity_free. The Linux kernel CVE team has assigned CVE-2023-52458 to this issue. Affected and fixed versions =========================== Fixed in 5.15.148 with commit 5010c2712096 Fixed in 6.1.75 with commit ef31cc877947 Fixed in 6.6.14 with commit cb16cc1abda1 Fixed in 6.7.2 with commit bcdc288e7bc0 Fixed in 6.8-rc1 with commit 6f64f866aa1a 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-2023-52458 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: block/ioctl.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/5010c27120962c85d2f421d2cf211791c9603503 https://git.kernel.org/stable/c/ef31cc87794731ffcb578a195a2c47d744e25fb8 https://git.kernel.org/stable/c/cb16cc1abda18a9514106d2ac8c8d7abc0be5ed8 https://git.kernel.org/stable/c/bcdc288e7bc008daf38ef0401b53e4a8bb61bbe5 https://git.kernel.org/stable/c/6f64f866aa1ae6975c95d805ed51d7e9433a0016