# CVE-2022-50658: cpufreq: qcom: fix memory leak in error path

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-12-09T01:29:06.106Z
- Modified: 2026-11-10T12:10:00.177Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a8811ec764f95a04ba82f6f457e28c5e9e36e36b before e55feb31df3fc78b880d6e9d4b5853f05c974833; from a8811ec764f95a04ba82f6f457e28c5e9e36e36b before b5606e3ab1f7cc00d89903f4a11fe57747bb3a68; from a8811ec764f95a04ba82f6f457e28c5e9e36e36b before b6ea267e0c6bdf5463358e2a2e5280cfa6cacc48; from a8811ec764f95a04ba82f6f457e28c5e9e36e36b before 9f42cf54403a42cb092636804d2628d8ecf71e75; 5.7 (not affected: before 5.7; from 5.10.152 up to 5.10.*; from 5.15.76 up to 5.15.*; from 6.0.6 up to 6.0.*; from 6.1 up to *)

## References

- <https://git.kernel.org/stable/c/e55feb31df3fc78b880d6e9d4b5853f05c974833>
- <https://git.kernel.org/stable/c/b5606e3ab1f7cc00d89903f4a11fe57747bb3a68>
- <https://git.kernel.org/stable/c/b6ea267e0c6bdf5463358e2a2e5280cfa6cacc48>
- <https://git.kernel.org/stable/c/9f42cf54403a42cb092636804d2628d8ecf71e75>

## Sources

- CVE List: [CVE-2022-50658](https://www.cve.org/CVERecord?id=CVE-2022-50658), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50658](https://nvd.nist.gov/vuln/detail/CVE-2022-50658), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2022-50658 · Whole record: https://cve.day/CVE-2022-50658.json · Rebuilt by cve.day 2026-11-25T22:58:21.307Z
