CVE-2021-47313Published May 21, 2024 · May 21Updated Jun 17
cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init
Linux
High8.4Fix available
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 |
|
|
5.12.195.13.45.14In the Linux kernel, the following vulnerability has been resolved:
cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init
It's a classic example of memleak, we allocate something, we fail and never free the resources.
Make sure we free all resources on policy ->init() failures.
From the CVE record · Linux
The Linux kernel's CPPC cpufreq initialization can leak allocated resources when policy initialization fails. This can consume memory; the input does not specify how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running the Linux kernel should check for this issue; affected versions are not specified.