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 BAB091F4283 for ; Fri, 27 Dec 2024 13:56:04 +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=1735307764; cv=none; b=jBPYH/Vnoj0juzOv7tfd9MxhcCTSL2YkfBym/xvhTxZ8m4+8/WVAyI/kDc7jzmg16r/7PnqI99INL07+d4c34AX901YLliTHfdON+1DHCKeWj69GINRidwCvp9zxgkNuuM1XIUK52+P1jNNbX2Bk1XNMawfi6cAeqaIhffX/Ujg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735307764; c=relaxed/simple; bh=GgrgxgnDYVgCyQqfOSnihIbnrdACZ5K9p21DwH8KaTc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WoGOznv1vR3BG4xTQLYdW5+viioOi3CndEcg3ENR7nvbGlU1SG3PpsipL78ZlMUMKZsGWeocpIRUK8Zm6/Jc0FuOLrOCz0Ecb0nqlu0FPcVkbtVu3KQkl0pHr6au49yMvCuZqW5M/pOb8gf3sKDdn/PC0Oqlg7G3ZBiEH+LMoO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VQ/JiIuG; 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="VQ/JiIuG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25FC4C4CED0; Fri, 27 Dec 2024 13:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735307764; bh=GgrgxgnDYVgCyQqfOSnihIbnrdACZ5K9p21DwH8KaTc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VQ/JiIuGPdBDtGaGsA1egOpFCEneRw5OWn2f9zj6bH55/fYSO5+y55CugTROyvI1E IlHUqkV8inQhOaR1bKPVtjmnIcCj2PHtsCbK4edgDVmAJTyNpdM/sBxRC98pQO8/9x qSjribQVlPJhKHZ0DzpaHdb24jS4uW9G7mI4cwLo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53230: cpufreq: CPPC: Fix possible null-ptr-deref for cppc_get_cpu_cost() Date: Fri, 27 Dec 2024 14:53:16 +0100 Message-ID: <2024122736-CVE-2024-53230-5851@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=2635; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GgrgxgnDYVgCyQqfOSnihIbnrdACZ5K9p21DwH8KaTc=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5G1WVn34K1ZwfNtPYcJV43C4ljp0eW+Z2zeJ4IRD3q VJa58KRjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI4COGeZo9t69wd6mtMrss PunZtx/J6jNbjzLMU2WNvC5nP2Xmhd1vzxoUzr3aZmrXDQA= 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 cppc_get_cpu_cost() cpufreq_cpu_get_raw() may return NULL if the cpu is not in policy->cpus cpu mask and it will cause null pointer dereference, so check NULL for cppc_get_cpu_cost(). The Linux kernel CVE team has assigned CVE-2024-53230 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.1.120 with commit 1975b481f644f8f841d9c188e3c214fce187f18b Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.6.64 with commit f05ef81db63889f6f14eb77fd140dac6cedb6f7f Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.11.11 with commit afd22d9839359829776abb55cc9bc4946e888704 Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.12.2 with commit 6be57617a38b3f33266acecdb3c063c1c079aaf7 Issue introduced in 5.19 with commit 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae and fixed in 6.13-rc1 with commit 1a1374bb8c5926674973d849feed500bc61ad535 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-53230 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/1975b481f644f8f841d9c188e3c214fce187f18b https://git.kernel.org/stable/c/f05ef81db63889f6f14eb77fd140dac6cedb6f7f https://git.kernel.org/stable/c/afd22d9839359829776abb55cc9bc4946e888704 https://git.kernel.org/stable/c/6be57617a38b3f33266acecdb3c063c1c079aaf7 https://git.kernel.org/stable/c/1a1374bb8c5926674973d849feed500bc61ad535