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 0BB1D6BFB8 for ; Sun, 28 Apr 2024 13:07:07 +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=1714309627; cv=none; b=nlqqTKxbiqFay6bUkydg72ZpODf3BG4visz3UAyiEbIbUkzbS2tuvFbinqtFXJ9g41fSc+wtGFLvSw1X3syFr+TSJEYN3yDwEb2vGcGgjKr5Rg6gRut1LuHJJ+BUVqzjd9qdrscESCscsS9urwyWOPSi8RFsBF9srhdKjUoChlY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714309627; c=relaxed/simple; bh=R+X8/KJ1GSoe3CRWnFYRe9mgbroXKA1ekb6ApWfI1Uc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YkFHHlaDeZrkcis2WH+bynxoaoTQa49dPj9GqBCKxrDJARvany4g984wjKvj7UpjLydkVu567ibWmO59gx3xsqGRsPjfZvWWWmY5xJgxy2ATdZIYRjn7hV024RBZmEFzWtuFPZ5xcdwWKX6NpsnKZj7IGgjdGyHcL4l0+tC0uqc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=btXReXfl; 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="btXReXfl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B5A7C113CC; Sun, 28 Apr 2024 13:07:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714309626; bh=R+X8/KJ1GSoe3CRWnFYRe9mgbroXKA1ekb6ApWfI1Uc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=btXReXfl7wB9Hq3AaN2DPxA+m/aFfjGiErJ2bCfgVlKwoF4mqGwEyFI8jWKzgNk3x IoEFGODzcih0WosOlQ7luCHXF+Fqzqydpkmj9/CKrbrdS3TKcv0ocHAJMy6JZSu0cS jYywd28jZBZ/hFSRYzxsvkYEXNqZjwCuhN2wRL3M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48657: arm64: topology: fix possible overflow in amu_fie_setup() Date: Sun, 28 Apr 2024 15:05:18 +0200 Message-ID: <2024042859-CVE-2022-48657-d23e@gregkh> X-Mailer: git-send-email 2.44.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=2369; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R+X8/KJ1GSoe3CRWnFYRe9mgbroXKA1ekb6ApWfI1Uc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGl6ntX2iW6BpXXneif2vTo6U5iVIaU18Pu11eFiM2zuS i+N9/7cEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMJE2WYZ7XldGJbrk/mgbSv HvXp4ofPm3BOZJhf0dwu4Wn547LA9UcenfWmffOXyX8AAA== 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: arm64: topology: fix possible overflow in amu_fie_setup() cpufreq_get_hw_max_freq() returns max frequency in kHz as *unsigned int*, while freq_inv_set_max_ratio() gets passed this frequency in Hz as 'u64'. Multiplying max frequency by 1000 can potentially result in overflow -- multiplying by 1000ULL instead should avoid that... Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. The Linux kernel CVE team has assigned CVE-2022-48657 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit cd0ed03a8903 and fixed in 5.10.150 with commit 904f881b5736 Issue introduced in 5.7 with commit cd0ed03a8903 and fixed in 5.15.71 with commit 3c3edb82d67b Issue introduced in 5.7 with commit cd0ed03a8903 and fixed in 5.19.12 with commit bb6d99e27cbe Issue introduced in 5.7 with commit cd0ed03a8903 and fixed in 6.0 with commit d4955c0ad77d 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-2022-48657 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: arch/arm64/kernel/topology.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/904f881b57360cf85de962d84d8614d94431f60e https://git.kernel.org/stable/c/3c3edb82d67b2be9231174ac2af4af60d4af7549 https://git.kernel.org/stable/c/bb6d99e27cbe6b30e4e3bbd32927fd3b0bdec6eb https://git.kernel.org/stable/c/d4955c0ad77dbc684fc716387070ac24801b8bca