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 1E0E314B07B for ; Wed, 19 Jun 2024 13:38:21 +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=1718804301; cv=none; b=nRCEoq4YDKwAFxHj/EL2ZUuOfjlRfzVfO81V93EufD0Y2SrYgd99jKusQAHMHDSlFOyNWayi5wsl3nbF5KyvnwyfFH8oPn/gzfcMOO+CKsiRWhx7nITW/tbNRdqeO7xj0VqgEW5wvtrhRVUexsDZJRRDjb/txuyQslaG7QcbZdc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804301; c=relaxed/simple; bh=orq8J8tlxXdffdScHAEkfB3SpIczKc1dZLfmA6eg4QM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SRAG2AKuiZw5WOjYC687VZmdTFOwSqnJrE1vT0KdDs/bv1EMCBF6TYToBgYrU1hl89Y8ffkLtc9WfghsdmcVkzNJ3eDF7/HsbM3A8P1wlnXg6DYkq2CF/PuVZnmhhbMNda6XRSk6Kq+uypcQLUwW6/GBSY5BboF6CMsCRg/6bhg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q52dgJF0; 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="q52dgJF0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95324C2BBFC; Wed, 19 Jun 2024 13:38:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804301; bh=orq8J8tlxXdffdScHAEkfB3SpIczKc1dZLfmA6eg4QM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=q52dgJF05Qw2AAXkXoEc1mtDjGo1ko1neGOnj0D5XtxmOl+Mtl2MN+xeemA3kNDnv hPvM6bhXlp56mvuksqNpCcAOqmGdjOf0OA63AWFIDEp21mPDCX/MACGWoP2RcSgp32 VvxKIXMYQkx2DItyFUUFiSWt3HinzD/0A5gNkZfE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38573: cppc_cpufreq: Fix possible null pointer dereference Date: Wed, 19 Jun 2024 15:36:22 +0200 Message-ID: <2024061957-CVE-2024-38573-d4b6@gregkh> X-Mailer: git-send-email 2.45.2 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=2649; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=orq8J8tlxXdffdScHAEkfB3SpIczKc1dZLfmA6eg4QM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF9/bGtYgdUXD5HGRx4vM1xtPHs762nIiQDXmV9XuRx 1x2Z+u3HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARU32GBTdW2SwQ7vxycbny 17OOgZErNHetyWJYcLUqfm307wuBN6aLMBuw9CYHv41fCQA= 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: cppc_cpufreq: Fix possible null pointer dereference cppc_cpufreq_get_rate() and hisi_cppc_cpufreq_get_rate() can be called from different places with various parameters. So cpufreq_cpu_get() can return null as 'policy' in some circumstances. Fix this bug by adding null return check. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-38573 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit a28b2bfc099c and fixed in 5.15.161 with commit 9a185cc5a79b Issue introduced in 5.11 with commit a28b2bfc099c and fixed in 6.1.93 with commit 769c4f355b79 Issue introduced in 5.11 with commit a28b2bfc099c and fixed in 6.6.33 with commit f84b9b25d045 Issue introduced in 5.11 with commit a28b2bfc099c and fixed in 6.8.12 with commit b18daa4ec727 Issue introduced in 5.11 with commit a28b2bfc099c and fixed in 6.9.3 with commit dfec15222529 Issue introduced in 5.11 with commit a28b2bfc099c and fixed in 6.10-rc1 with commit cf7de25878a1 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-38573 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/cppc_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/9a185cc5a79ba408e1c73375706630662304f618 https://git.kernel.org/stable/c/769c4f355b7962895205b86ad35617873feef9a5 https://git.kernel.org/stable/c/f84b9b25d045e67a7eee5e73f21278c8ab06713c https://git.kernel.org/stable/c/b18daa4ec727c0266de5bfc78e818d168cc4aedf https://git.kernel.org/stable/c/dfec15222529d22b15e5b0d63572a9e39570cab4 https://git.kernel.org/stable/c/cf7de25878a1f4508c69dc9f6819c21ba177dbfe