| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-53230: cpufreq: CPPC: Fix possible null-ptr-deref for cppc_get_cpu_cost() |
| |
| 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 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 |