cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: apple-soc: Fix null-ptr-deref in apple_soc_cpufreq_get_rate()
cpufreq_cpu_get_raw() can return NULL when the target CPU is not present in the policy->cpus mask. apple_soc_cpufreq_get_rate() does not check for this case, which results in a NULL pointer dereference.
From the CVE record · Linux
The Linux kernel's apple_soc_cpufreq_get_rate() does not check whether cpufreq_cpu_get_raw() returns NULL. This can cause a NULL pointer dereference when the target CPU is absent from the policy->cpus mask. The input does not specify an attack path, authentication requirements, or whether user interaction is needed.
Teams running the Linux kernel with the apple-soc cpufreq component should check their installations; affected versions are not specified.