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 191D6199FAF for ; Wed, 9 Oct 2024 14:14:10 +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=1728483251; cv=none; b=H0DwxQrz+HOk1B8l7dO1pD69o7lCYjh4QX0uisYuuDkxNyb3Qx6HJWg5xngE5jcf+w1KO+Ib+fk7nf9oD2LngU9lKKtqZQf+/JLKq9wMi3O4/AozCR5jRMijmUWq0ESwTpH8F7kQ0GEHdbctedpAOt/50bpsnQfaRJU4rpT0KDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728483251; c=relaxed/simple; bh=ZXKDNgHtLHRSctbFt5YdxlCpw5sXD8hq+PGJCY5afJo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KIiIze6yc0fS4hVP47XltVXsCCs9SiCR9wQqsVdZMrVdomWahYta4sgeSXSZXbOdOB9htIghJawAJJI/lX0sHmt7HBFX2l0s9nKKGFnTM+FzVRgXKNhnoH5NX2ZSwZR76gr7wpx1khiQ0nwLdK5wwZMI4Oxg0FEhBBcbBwgGmw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y/5XoYO1; 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="Y/5XoYO1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 408F3C4CEC3; Wed, 9 Oct 2024 14:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728483250; bh=ZXKDNgHtLHRSctbFt5YdxlCpw5sXD8hq+PGJCY5afJo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Y/5XoYO1+DhIahqy33uN5qgU30oG8rerj/u98HE9Kzsd2oMVv2BTpALXUEqEWKhDf VUho+y6IVbf23xJWiBwhC1KqKXbXuQr4E6JMoj56E2rbxxHV5+gaUTxjBon/IiM7v1 XExXDXH/r0YD7eMrk8zontR521cDvGDhVkUlCoUs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47664: spi: hisi-kunpeng: Add verification for the max_frequency provided by the firmware Date: Wed, 9 Oct 2024 16:14:06 +0200 Message-ID: <2024100904-CVE-2024-47664-f6bd@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=2094; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZXKDNgHtLHRSctbFt5YdxlCpw5sXD8hq+PGJCY5afJo=; b=owGbwMvMwCRo6H6F97bub03G02pJDOls/WuZfJdMyl7P6Ta/snSO8BNLtlOBYebrFmqkib7If +TAJ+/fEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNxbmBYsJLf7EvbIYvspR+d E4WPyDHySu64wbBgn/i688vFQqqDdpmph7ZrbnzIdtgLAA== 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: spi: hisi-kunpeng: Add verification for the max_frequency provided by the firmware If the value of max_speed_hz is 0, it may cause a division by zero error in hisi_calc_effective_speed(). The value of max_speed_hz is provided by firmware. Firmware is generally considered as a trusted domain. However, as division by zero errors can cause system failure, for defense measure, the value of max_speed is validated here. So 0 is regarded as invalid and an error code is returned. The Linux kernel CVE team has assigned CVE-2024-47664 to this issue. Affected and fixed versions =========================== Fixed in 6.6.51 with commit 16ccaf581da4 Fixed in 6.10.10 with commit ee73a15d4a8c Fixed in 6.11 with commit 5127c42c77de 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-47664 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/spi/spi-hisi-kunpeng.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/16ccaf581da4fcf1e4d66086cf37263f9a656d43 https://git.kernel.org/stable/c/ee73a15d4a8ce8fb02d7866f7cf78fcdd16f0fcc https://git.kernel.org/stable/c/5127c42c77de18651aa9e8e0a3ced190103b449c