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 1F6452D058 for ; Mon, 18 Mar 2024 10:21:25 +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=1710757285; cv=none; b=T2AckIJTJ/u8ShZO4U4JtPcgDjcTowyPYuha7lY7J90U6yhqUbX6ZZO7YOCHId7kKThRkOXSyLRRQCeox4HeuvMtCg/VhG8bz7bCpmqVgP9dzF9zrpL79PdmqHyAG6GPEje4C/Iv4yLhv7zjJjDo34pUzarnoRR+pU+V9So4Oh4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710757285; c=relaxed/simple; bh=f1oXcU/N577tgyPjng06pM7SXqzNMPsbw5OTFObI8u4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AJqXPBHrm6e5LjpUnAJvjPzAP4OjoJAHHzpbJvzGmSPQAgn+fDt4KO61/LyfLGUGTDIgId9k+iMi82AYmaUTPd0foVMWv/2aNQ+zOoIINQmUUMCufk2IaK4FhKQShAYSehKthPCzgPIXvWQS6kD4JlmVdb3X7W8biTf1BGwUW2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JCJb/fEt; 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="JCJb/fEt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48FABC433B1; Mon, 18 Mar 2024 10:21:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710757284; bh=f1oXcU/N577tgyPjng06pM7SXqzNMPsbw5OTFObI8u4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JCJb/fEtgbWqM2t7tWK1tXMjKomvMvutonT2eixPeU+KG2xc0rc7m0/Vnds5nGEqV ueh/uQrnRNAGKsBEK/wNiD3yEU/k4BlO0LdL9OQ8nkos6qJdlA06FIL/092ZsLooZs tctunWyLUpz1ETVkNIhTmuSormvadVrPyNH7ip2ZgkPDCqD8yajk7VU9ODKp1wjkW0 chvYwq4iqkFe/m2K2Cv7jqdks5DFb6FW4xqg+gzuHnAlfHWwJLxScvI+hMFlvdy2vo Uli/R9X/HV1HEERVMoIXQ7wzCjV7C6W+yxwC5z6KSvCl8hBbrOSvKx6iY5kLSBwvDI 7L1TskN+guMAg== From: Lee Jones To: linux-cve-announce@vger.kernel.org Cc: Lee Jones Subject: CVE-2023-52619: pstore/ram: Fix crash when setting number of cpus to an odd number Date: Mon, 18 Mar 2024 10:21:20 +0000 Message-ID: <20240318102117.2839904-9-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=2716; i=lee@kernel.org; h=from:subject; bh=f1oXcU/N577tgyPjng06pM7SXqzNMPsbw5OTFObI8u4=; b=owEBbQKS/ZANAwAKAVGvii+H/HdhAcsmYgBl+BWdqn09skyxImCmCKogj7Xhr0XEBaSpjXplJ N66HPG+inSJAjMEAAEKAB0WIQR2tsk1o74gmpTwh0hRr4ovh/x3YQUCZfgVnQAKCRBRr4ovh/x3 YeW1EACp3H/z2/Q6NfTFrUhYL5JCN+ivy/T/k2H4UhwgBeJO/Ti5YxociT0n/2qCyBJLW0O35Ym uc2n4uJIPzOagAZYMiTw2v5C+ENcuImf6sAzMfkOIbxzd2UGGsbxkLLT0dojw6Q7f5rKKspvSx/ vaeCOh1yhjCgDHMU6C9ciEwdBvR/hHgfWzNX+rcW4Xtkj+16hc6ucIsWt3C+i1nB6T1sHRkV508 Tk5xC5GmUFZZokCJqhcxAW0uRh360mx3nz3Mx6V3weqt8US3XAjpWOseX56brs3cfrJWSM6+M8A NwWH3Z8gYUqVaXyjOTsVSEkvTPxmMuhXk8HJuTdiZ7nQ14EJcJ3b3AfrTGqUJsB3yKo0FmgB0dX SDBm/8ZMNq8b6aBkt5QmpP9bdufp+T+YLlvagBNHiJjqJ1J+KYq1PLKErW2IeMYbIqzrdFovstq 3QO3Lo8PZyL17Lg9+NgX138aedpu+STmVmV5aVBcK6WeZFpJ8YBC+t2ic9zBZCnQFuPgfog0ZYO /5uK2fjRz/zUe4Q8FHYagphpuDaerfg53ok8RdnFbBy0dpNyc2rNj6haeT7+kijSbBdFPLikXrQ B4oXG5MGJmC1Qz7AoiAMbja/IMDmbRSimoXBZL+KeA0khG8y7AvQZMGlZX7wLOmvZ5DXhr0rcz/ 3mjTFxdI6Z5a/Yg== 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: pstore/ram: Fix crash when setting number of cpus to an odd number When the number of cpu cores is adjusted to 7 or other odd numbers, the zone size will become an odd number. The address of the zone will become: addr of zone0 = BASE addr of zone1 = BASE + zone_size addr of zone2 = BASE + zone_size*2 ... The address of zone1/3/5/7 will be mapped to non-alignment va. Eventually crashes will occur when accessing these va. So, use ALIGN_DOWN() to make sure the zone size is even to avoid this bug. The Linux kernel CVE team has assigned CVE-2023-52619 to this issue. Affected and fixed versions =========================== Fixed in 4.19.307 with commit 8b69c30f4e8b Fixed in 5.4.269 with commit e9f6ac508901 Fixed in 5.10.210 with commit a63e48cd835c Fixed in 5.15.149 with commit 2a37905d47bf Fixed in 6.1.77 with commit 75b0f71b26b3 Fixed in 6.6.16 with commit 0593cfd321df Fixed in 6.7.4 with commit cd40e43f870c Fixed in 6.8 with commit d49270a04623 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-52619 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: fs/pstore/ram.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/8b69c30f4e8b69131d92096cb296dc1f217101e4 https://git.kernel.org/stable/c/e9f6ac50890104fdf8194f2865680689239d30fb https://git.kernel.org/stable/c/a63e48cd835c34c38ef671d344cc029b1ea5bf10 https://git.kernel.org/stable/c/2a37905d47bffec61e95d99f0c1cc5dc6377956c https://git.kernel.org/stable/c/75b0f71b26b3ad833c5c0670109c0af6e021e86a https://git.kernel.org/stable/c/0593cfd321df9001142a9d2c58d4144917dff7ee https://git.kernel.org/stable/c/cd40e43f870cf21726b22487a95ed223790b3542 https://git.kernel.org/stable/c/d49270a04623ce3c0afddbf3e984cb245aa48e9c