From mboxrd@z Thu Jan 1 00:00:00 1970 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 757561F429C for ; Fri, 27 Dec 2024 13:56:08 +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=1735307769; cv=none; b=qlJi2AxCphARSVUgVMuJx7y1a0ca0ZmaQ0Dpq6gB25wxb4Dm3ttyfaurgRENYTsaXJv8lk7kl2ctCiXDpDo91T9+rCHetOSfk2c8j50CJX6biqxlAnjzV/gEOFDZH/HscYHeMqfI0aMEB5M23b1fQHyFvJlx3nDYBwsq8K25WfE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307769; c=relaxed/simple; bh=mr3BXEm9uWQ+feLJQahfv1A6v1q5ooeNOhrlojJ5SMA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GvWZtj53d1Tud1yjXiECs02ircpTSntuAe7IfpvEyyosnmZtxlSZzkQEoG3B3gYYtsuwDafbiy7njYQpO0KNTyhz6WRskI8YXtyBk1PotLWZA4jCEe5uRDMYokbypGHBTe6vq267+XlT9NmZqggdC3eHPJKnsMkx7RjMzV+HmaA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NIVbGRju; 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="NIVbGRju" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 869AEC4CED0; Fri, 27 Dec 2024 13:56:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307768; bh=mr3BXEm9uWQ+feLJQahfv1A6v1q5ooeNOhrlojJ5SMA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NIVbGRjuH49tIVuJjoTFBfn0Wm097VY41756uZn/z8Nkh6VolKuMGxaesJQa0LcZe ihg7l4JJ1iarjCWs+nwu2Vv79nnI6GtysXnqBOPgSsVHfTwI+YDeFGPJtozTIVO0Ro R7erZBFOH3gauN6PQSHoYT/vWO7x8GFiiC0i3i6c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53231: cpufreq: CPPC: Fix possible null-ptr-deref for cpufreq_cpu_get_raw() Date: Fri, 27 Dec 2024 14:53:17 +0100 Message-ID: <2024122737-CVE-2024-53231-fe0f@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=2597; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mr3BXEm9uWQ+feLJQahfv1A6v1q5ooeNOhrlojJ5SMA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G1X1kjY0Lk4L+3rKY/lklpnZPFlbbG96he64wqR1c Manj7dSO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiMZ8ZFmyWv3TNJuql0s+8 +QdvlasJTVm9uYZhNrubufF2f97zX4qLdPqvi+xLsd3jCQA= 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: CPPC: Fix possible null-ptr-deref for cpufreq_cpu_get_raw() cpufreq_cpu_get_raw() may return NULL if the cpu is not in policy->cpus cpu mask and it will cause null pointer dereference. The Linux kernel CVE team has assigned CVE-2024-53231 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.1.120 with commit a357b63fd21e4b2791008c2175ba7a8c235ebce1 Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.6.64 with commit e07570a8f2cfc51260c6266cb8e1bd4777a610d6 Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.11.11 with commit e9b39f1924b76abc18881e4ce899fb232dd23d12 Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.12.2 with commit 65fe2f7fdafe2698a343661800434b3f2e51041e Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.13-rc1 with commit a78e7207564258db6e373e86294a85f9d646d35a 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-53231 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/a357b63fd21e4b2791008c2175ba7a8c235ebce1 https://git.kernel.org/stable/c/e07570a8f2cfc51260c6266cb8e1bd4777a610d6 https://git.kernel.org/stable/c/e9b39f1924b76abc18881e4ce899fb232dd23d12 https://git.kernel.org/stable/c/65fe2f7fdafe2698a343661800434b3f2e51041e https://git.kernel.org/stable/c/a78e7207564258db6e373e86294a85f9d646d35a