Bug 1225051 (CVE-2021-47313) - VUL-0: CVE-2021-47313: kernel: cpufreq: CPPC: fix potential memleak in cppc_cpufreq_cpu_init
Summary: VUL-0: CVE-2021-47313: kernel: cpufreq: CPPC: fix potential memleak in cppc_c...
Status: RESOLVED FIXED
Alias: CVE-2021-47313
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/406948/
Whiteboard: CVSSv3.1:SUSE:CVE-2021-47313:4.4:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-22 16:26 UTC by SMASH SMASH
Modified: 2024-06-10 12:22 UTC (History)
2 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-05-22 16:26:04 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-47313
https://www.cve.org/CVERecord?id=CVE-2021-47313
https://git.kernel.org/stable/c/b775383355755885b19d2acef977f1ca132e80a3
https://git.kernel.org/stable/c/e1b2b2b61d30d7ce057ec17237c217d152ed97f2
https://git.kernel.org/stable/c/fe2535a44904a77615a3af8e8fd7dafb98fb0e1b
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2021/CVE-2021-47313.mbox
Comment 2 Gabriele Sonnu 2024-06-10 12:22:26 UTC
All done, closing.