CVE-2021-47313

cpufreq: CPPC: Fix potential memleak in cppc_cpufreq_cpu_init

State
Published
Severity
8.4 High
Published
May 21, 2024
Updated
May 11, 2026
Reserved
May 21, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.4 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-400 Uncontrolled Resource Consumption

Affected Products

ProductVersions
LinuxLinux
  • a28b2bfc099c6b9caa6ef697660408e076a32019 to before b775383355755885b19d2acef977f1ca132e80a3Affected
  • a28b2bfc099c6b9caa6ef697660408e076a32019 to before e1b2b2b61d30d7ce057ec17237c217d152ed97f2Affected
  • a28b2bfc099c6b9caa6ef697660408e076a32019 to before fe2535a44904a77615a3af8e8fd7dafb98fb0e1bAffected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 5.12.19 through 5.12.*Not affected
  • 5.13.4 through 5.13.*Not affected
  • 5.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.