7.5High

CVE-2024-38573cppc_cpufreq: Fix possible null pointer dereference

Linux Linux; linux linux_kernel; linux acrn Published: (2 years ago)

Description

In the Linux kernel, the following vulnerability has been resolved: cppc_cpufreq: Fix possible null pointer dereference cppc_cpufreq_get_rate() and hisi_cppc_cpufreq_get_rate() can be called from different places with various parameters. So cpufreq_cpu_get() can return null as 'policy' in some circumstances. Fix this bug by adding null return check. Found by Linux Verification Center (linuxtesting.org) with SVACE.

Weakness (CWE): CWE-476

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
linux acrn a28b2bfc099c – < cf7de25878a1
Linux Linux 5.11
linux linux_kernel a28b2bfc099c – < 9a185cc5a79b

References and patches