CVE-2022-50658 cpufreq: qcom: fix memory leak in error path
A memory leak in the Linux kernel cpufreq driver allows local attackers to cause denial of service by triggering an error path.
- 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-2022-50658?
CVE-2022-50658 is a memory corruption vulnerability in Linux, published on 9 Dec 2025. 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: qcom: fix memory leak in error path
If for some reason the speedbin length is incorrect, then there is a memory leak in the error path because we never free the speedbin buffer. This commit fixes the error path to always free the speedbin buffer.
Which versions are affected by CVE-2022-50658?
How do I fix CVE-2022-50658?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-50658 being exploited?
There is no known exploitation of CVE-2022-50658 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-50658, GHSA-8cxp-8frr-qhv6, UBUNTU-CVE-2022-50658.