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 5D26C1B85CC for ; Tue, 24 Dec 2024 11:30:06 +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=1735039806; cv=none; b=acS+GkX1AFO2zD6js+SumEPA7QCxWr9mOVfzlP3q1HYG7M3Py1HpFfFV7nV/jhxDOV0RLUf4RpwRpeMSLyEylUA/7f0xqSj0L1h4o/HUUi9PEeNQH3fjOSmsMm9IpHGE3bmkikzykG3U/1JP8JxToSdiYJ6U8umYwsbzTvm97zY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735039806; c=relaxed/simple; bh=ooexINKIbaCCxa15QfUABKXSLxDkOx6wNdUoIrk8jQo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Gj4EOkOy6yegEZ/RC5KUflv0lDKEieTnTNe+ExG4QytqGcdSny1ZGCVeYsjdYiSWH1yFNmZvyO5VkEu48cd1AOBlQ91Q6M3nUufjIiVUA7tDEQTuW1onLh+UaUS7ufIq025fiBV7OOuNZ2hzfECLwPQsBJA5auJ6Pfd8T5NN774= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AW5Y7LIC; 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="AW5Y7LIC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D2E8C4CED0; Tue, 24 Dec 2024 11:30:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735039806; bh=ooexINKIbaCCxa15QfUABKXSLxDkOx6wNdUoIrk8jQo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AW5Y7LICJA7S9a1D0vy8FztNHe5p0RTeI2Jj9ytktOnABF4NNYjSC31OiGCfuveRQ noxhWnp/fiwLgfV+WQR9A44gk0R5Lb8SKLksuW4Nv7mCLpSgbsBdYqohpeTIhqfM5V 9yyqUc5iLVquM60CdejeH6OR/ONp9+wAjqCGR7MM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53161: EDAC/bluefield: Fix potential integer overflow Date: Tue, 24 Dec 2024 12:29:41 +0100 Message-ID: <2024122431-CVE-2024-53161-50f6@gregkh> X-Mailer: git-send-email 2.47.1 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=3562; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ooexINKIbaCCxa15QfUABKXSLxDkOx6wNdUoIrk8jQo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlZs6UrAzr8+3etOsv6xd27vsFtuXBMvZTbwtWLfJc5q Bx4vbC4I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyXo9hwek+wfylXQ2FIspK JytmRN6acsjoJsM8c2lRo2D/gzNmnH8gKp4ltzb8rPQaAA== 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: EDAC/bluefield: Fix potential integer overflow The 64-bit argument for the "get DIMM info" SMC call consists of mem_ctrl_idx left-shifted 16 bits and OR-ed with DIMM index. With mem_ctrl_idx defined as 32-bits wide the left-shift operation truncates the upper 16 bits of information during the calculation of the SMC argument. The mem_ctrl_idx stack variable must be defined as 64-bits wide to prevent any potential integer overflow, i.e. loss of data from upper 16 bits. The Linux kernel CVE team has assigned CVE-2024-53161 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4 with commit 82413e562ea6eadfb6de946dcc6f74af31d64e7f and fixed in 5.4.287 with commit 8cc31cfa36ff37aff399b72faa2ded58110112ae Issue introduced in 5.4 with commit 82413e562ea6eadfb6de946dcc6f74af31d64e7f and fixed in 5.10.231 with commit e0269ea7a628fdeddd65b92fe29c09655dbb80b9 Issue introduced in 5.4 with commit 82413e562ea6eadfb6de946dcc6f74af31d64e7f and fixed in 5.15.174 with commit 4ad7033de109d0fec99086f352f58a3412e378b8 Issue introduced in 5.4 with commit 82413e562ea6eadfb6de946dcc6f74af31d64e7f and fixed in 6.1.120 with commit 578ca89b04680145d41011e7cec8806fefbb59e7 Issue introduced in 5.4 with commit 82413e562ea6eadfb6de946dcc6f74af31d64e7f and fixed in 6.6.64 with commit ac6ebb9edcdb7077e841862c402697c4c48a7c0a Issue introduced in 5.4 with commit 82413e562ea6eadfb6de946dcc6f74af31d64e7f and fixed in 6.11.11 with commit fdb90006184aa84c7b4e09144ed0936d4e1891a7 Issue introduced in 5.4 with commit 82413e562ea6eadfb6de946dcc6f74af31d64e7f and fixed in 6.12.2 with commit 000930193fe5eb79ce5563ee2e9ddb0c6e4e1bb5 Issue introduced in 5.4 with commit 82413e562ea6eadfb6de946dcc6f74af31d64e7f and fixed in 6.13-rc1 with commit 1fe774a93b46bb029b8f6fa9d1f25affa53f06c6 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-53161 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/edac/bluefield_edac.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/8cc31cfa36ff37aff399b72faa2ded58110112ae https://git.kernel.org/stable/c/e0269ea7a628fdeddd65b92fe29c09655dbb80b9 https://git.kernel.org/stable/c/4ad7033de109d0fec99086f352f58a3412e378b8 https://git.kernel.org/stable/c/578ca89b04680145d41011e7cec8806fefbb59e7 https://git.kernel.org/stable/c/ac6ebb9edcdb7077e841862c402697c4c48a7c0a https://git.kernel.org/stable/c/fdb90006184aa84c7b4e09144ed0936d4e1891a7 https://git.kernel.org/stable/c/000930193fe5eb79ce5563ee2e9ddb0c6e4e1bb5 https://git.kernel.org/stable/c/1fe774a93b46bb029b8f6fa9d1f25affa53f06c6