# CVE-2021-47313: cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init

- Severity: High 8.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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 18% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:30.607Z
- Modified: 2026-06-17T04:17:10.253Z
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from a28b2bfc099c6b9caa6ef697660408e076a32019 before b775383355755885b19d2acef977f1ca132e80a3; from a28b2bfc099c6b9caa6ef697660408e076a32019 before e1b2b2b61d30d7ce057ec17237c217d152ed97f2; from a28b2bfc099c6b9caa6ef697660408e076a32019 before fe2535a44904a77615a3af8e8fd7dafb98fb0e1b; 5.11 (not affected: before 5.11; from 5.12.19 up to 5.12.*; from 5.13.4 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: from a28b2bfc099c before b77538335575; from a28b2bfc099c before e1b2b2b61d30; from a28b2bfc099c before fe2535a44904; 5.11; from 5.11 before 5.12.19; from 5.13 before 5.13.4 (not affected: before 5.11; from 5.12.19 up to 5.13; from 5.13.4 up to 5.14; 5.14)

## References

- <https://git.kernel.org/stable/c/b775383355755885b19d2acef977f1ca132e80a3> (patch)
- <https://git.kernel.org/stable/c/e1b2b2b61d30d7ce057ec17237c217d152ed97f2> (patch)
- <https://git.kernel.org/stable/c/fe2535a44904a77615a3af8e8fd7dafb98fb0e1b> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2021-47313 · Whole record: https://cve.day/CVE-2021-47313.json · Rebuilt by cve.day 2026-11-25T22:58:08.791Z
