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 395A31E883C for ; Mon, 21 Oct 2024 12:03:18 +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=1729512199; cv=none; b=koLdrl8veFJ+YRp+unPQi01nRiQGRaYu1n7CP1KVdQWViv9gOK1xjXOx1cag1ofcPcmYEgRtnGClruEMxtBZoIh3e2XYT+xu8RNrMWylc7vRR1/Pf2LL4IsJ2nkjq1JBN2UCXeKRhqwZBziak4XMg5Apcb6D6gjT5K0n7kZgzUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512199; c=relaxed/simple; bh=UgIUy3bpK3XN6WOZCUxzNRD05Bhhn22urcQmOLCdcOE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NE3ZJ5plSJ5mktAVBfJ2kcXIks5RcmYxZhFluo59M/dsuAVn3aEzU3moI6WSws8w4JKjBRK/i2cMWwBFgA3ZDvXo+xJsNidbJziStJ3XkmVHvZoS7Ei6XO2kdN5nFih2ygVp9vU7E6gXaaDHNEYlZBjpI3XM5TrWWSZ5INNA8+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xGGnyDG6; 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="xGGnyDG6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68D1DC4CEC3; Mon, 21 Oct 2024 12:03:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512198; bh=UgIUy3bpK3XN6WOZCUxzNRD05Bhhn22urcQmOLCdcOE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xGGnyDG6IuM73voLKteYiULYrNj9+CsAF3nu4GvfnKa2jg4eZKfZl7+/RsWZ8cdQv STMECB9L65kgfgl4VX2sJxCo3c2KGx/xCy2IzJV0j3e+1Udyolucmek5ESlG0nuAiY f720OMgr094ZYRV2AqNZ+5qWQhfZ0fY02/I1hQMU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47682: scsi: sd: Fix off-by-one error in sd_read_block_characteristics() Date: Mon, 21 Oct 2024 14:00:10 +0200 Message-ID: <2024102108-CVE-2024-47682-0582@gregkh> X-Mailer: git-send-email 2.47.0 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=2381; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UgIUy3bpK3XN6WOZCUxzNRD05Bhhn22urcQmOLCdcOE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTh7pyw84T5S225Vy/s2bV1vS3yUs39fmOyVwZXvH6 dRQg3nPO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAipuYM81Ml0wwzLmbtPBg6 KfvejYc7XrxpnMAwv57p0fxb3GzFKaLsf78pJ3l1CyTvAwA= 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: scsi: sd: Fix off-by-one error in sd_read_block_characteristics() Ff the device returns page 0xb1 with length 8 (happens with qemu v2.x, for example), sd_read_block_characteristics() may attempt an out-of-bounds memory access when accessing the zoned field at offset 8. The Linux kernel CVE team has assigned CVE-2024-47682 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 7fb019c46eee and fixed in 6.1.113 with commit 60312ae7392f Issue introduced in 5.19 with commit 7fb019c46eee and fixed in 6.6.54 with commit 568c7c4c77ee Issue introduced in 5.19 with commit 7fb019c46eee and fixed in 6.10.13 with commit a77605037389 Issue introduced in 5.19 with commit 7fb019c46eee and fixed in 6.11.2 with commit 413df704f149 Issue introduced in 5.19 with commit 7fb019c46eee and fixed in 6.12-rc1 with commit f81eaf08385d 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-47682 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/scsi/sd.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/60312ae7392f9c75c6591a52fc359cf7f810d48f https://git.kernel.org/stable/c/568c7c4c77eee6df7677bb861b7cee7398a3255d https://git.kernel.org/stable/c/a776050373893e4c847a49abeae2ccb581153df0 https://git.kernel.org/stable/c/413df704f149dec585df07466d2401bbd1f490a0 https://git.kernel.org/stable/c/f81eaf08385ddd474a2f41595a7757502870c0eb