CVE-2021-47313 cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init
A memory leak in the Linux kernel's CPPC driver can lead to resource exhaustion and denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47313?
CVE-2021-47313 is a high-severity denial of service vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In 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.
Weakness: CWE-400
Which versions are affected by CVE-2021-47313?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47313?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2021-47313 being exploited?
There is no known exploitation of CVE-2021-47313 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as GHSA-mxwx-46p7-hcm6, UBUNTU-CVE-2021-47313.