cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 343a8d17fa8d6dd97f408e8fedbcef12073f3774 · < 28fbd7b13b4d3074b16db913aedc9d8d37ab41e7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: scpi: Fix null-ptr-deref in scpi_cpufreq_get_rate()
cpufreq_cpu_get_raw() can return NULL when the target CPU is not present in the policy->cpus mask. scpi_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 scpi_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 attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the SCPI CPU frequency driver should check their versions; affected versions are not specified.