cpufreq: scmi: Fix null-ptr-deref in scmi_cpufreq_get_rate()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 99d6bdf3387734d75e3e34e94a58b8a355b7a9c8 · < cfaca93b8fe317b7faa9af732e0ba8c9081fa018| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: scmi: Fix null-ptr-deref in scmi_cpufreq_get_rate()
cpufreq_cpu_get_raw() can return NULL when the target CPU is not present in the policy->cpus mask. scmi_cpufreq_get_rate() does not check for this case, which results in a NULL pointer dereference.
Add NULL check after cpufreq_cpu_get_raw() to prevent this issue.
From the CVE record · Linux
The Linux kernel’s scmi_cpufreq_get_rate() can dereference a NULL pointer when the target CPU is absent from the policy’s CPU mask. The input does not specify how an attacker could trigger this condition, or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their kernel includes the affected SCMI cpufreq code; affected versions are not specified.