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 B73BB12BEA0 for ; Wed, 1 May 2024 12:58:56 +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=1714568336; cv=none; b=ANNB20XACw1nZoY/ObnvXKWtwjHJHMGnLqEO9ImRfOiccN7vZLCZnBemG/m3Hm8Oan0rBTOppCvP65qQZS9pebYEuX34RExpHeK5j+JgO2Tkr5d9cVaXXQSLmuGMFZotbFnb6SuVB1n/IEVXdHrU7bXBfsZOVJG3Gh1Aw/o0xDU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568336; c=relaxed/simple; bh=Vvh+PyuQQS9KWHwPr6a4/zLLCVI1mNMCTvwzAJ/gm8I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SqQ0UxwzwY1dApC8Pr51qQpiPxlRgziTM0gn+fJEnd5jPYQhLJXUIWrAGzMSOJc0AYISkjmvdVE34KCUCffoKXhJTXwWyhSJOzVR7Lo3W2zJFrUTt/0bHjWNvWCFYA5UFwxEw0rPkTM1xIhk39qoyjfMPtVrShUmQqoAHXP9ksg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yWq5Ph+b; 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="yWq5Ph+b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E9E2C113CC; Wed, 1 May 2024 12:58:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568336; bh=Vvh+PyuQQS9KWHwPr6a4/zLLCVI1mNMCTvwzAJ/gm8I=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yWq5Ph+btYWXbzlADyve4zhZvSJQIvhyfacb4WIioUH59a9o38Zzlzhon1VyyF4Rj P4czsYJh/U0bljlKl6IRJVRyxQ39ECkptA2o18M5mPDeYnPP8CIpokIWduP5U5EQrz KLAqVFExKF8B52Px6o25m3NNsuVM+HZC37qib72c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27051: cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value Date: Wed, 1 May 2024 14:57:36 +0200 Message-ID: <2024050114-CVE-2024-27051-07ce@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=2717; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Vvh+PyuQQS9KWHwPr6a4/zLLCVI1mNMCTvwzAJ/gm8I=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGNlp5U6N5Nn/5G6b22bl858LeZwclHK2mLfr+q/mw4 BW1a6+dO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiTHMZ5hnqKdz5rTBJ/xXz 9iwTxp/33dlV4xjmcD50yvx88unMilVhjMoMzzcWKVeXAgA= 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: cpufreq: brcmstb-avs-cpufreq: add check for cpufreq_cpu_get's return value cpufreq_cpu_get may return NULL. To avoid NULL-dereference check it and return 0 in case of error. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-27051 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit de322e085995 and fixed in 5.10.214 with commit 9127599c075c Issue introduced in 4.10 with commit de322e085995 and fixed in 5.15.153 with commit d951cf510fb0 Issue introduced in 4.10 with commit de322e085995 and fixed in 6.1.83 with commit e72160cb6e23 Issue introduced in 4.10 with commit de322e085995 and fixed in 6.6.23 with commit b25b64a241d7 Issue introduced in 4.10 with commit de322e085995 and fixed in 6.7.11 with commit 74b84d0d7118 Issue introduced in 4.10 with commit de322e085995 and fixed in 6.8.2 with commit e6e3e51ffba0 Issue introduced in 4.10 with commit de322e085995 and fixed in 6.9-rc1 with commit f661017e6d32 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-27051 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/cpufreq/brcmstb-avs-cpufreq.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/9127599c075caff234359950117018a010dd01db https://git.kernel.org/stable/c/d951cf510fb0df91d3abac0121a59ebbc63c0567 https://git.kernel.org/stable/c/e72160cb6e23b78b41999d6885a34ce8db536095 https://git.kernel.org/stable/c/b25b64a241d769e932a022e5c780cf135ef56035 https://git.kernel.org/stable/c/74b84d0d71180330efe67c82f973a87f828323e5 https://git.kernel.org/stable/c/e6e3e51ffba0784782b1a076d7441605697ea3c6 https://git.kernel.org/stable/c/f661017e6d326ee187db24194cabb013d81bc2a6