CVE-2021-47313: cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: CPPC: Fix potential memleak in cppccpufreqcpuinit
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.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
cpufreq: CPPC: Fix potential memleak in cppccpufreqcpuinit
The Linux kernel CVE team has assigned CVE-2021-47313 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052129-CVE-2021-47313-af10@gregkh/T
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.12.19 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.13.4 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 5.14
Event History
Frequently Asked Questions
What is the severity of CVE-2021-47313?
CVE-2021-47313 is classified as a medium severity vulnerability due to its potential for memory leaks.
How do I fix CVE-2021-47313?
To fix CVE-2021-47313, upgrade to a patched version of the Linux kernel that addresses memory leak concerns.
Which versions of the Linux kernel are affected by CVE-2021-47313?
CVE-2021-47313 affects Linux kernel versions between 5.11 and 5.12.19 and versions between 5.13 and 5.13.4.
What type of vulnerability is CVE-2021-47313?
CVE-2021-47313 is categorized as a memory leak vulnerability in the Linux kernel.
What can happen if CVE-2021-47313 is exploited?
Exploitation of CVE-2021-47313 can lead to increased memory usage and potentially impact system performance.