What’s Vulnerable › Vulnerabilities
CVE-2024-40997: cpufreq: amd-pstate: fix memory leak on CPU EPP exit
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-12 · updated 2026-06-17
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: cpufreq: amd-pstate: fix memory leak on CPU EPP exit The cpudata memory from kzalloc() in amd_pstate_epp_cpu_init() is not freed in the analogous exit function, so fix that. [ rjw: Subject and changelog edits ]
Affected products
- Linux kernel: before 6.6.36; from 6.7 before 6.9.7 — fixed in 6.6.36, 6.9.7
How to fix
Upgrade to a fixed version: Linux kernel 6.6.36, 6.9.7. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/448efb7ea0bfa2c4e27c5a2eb5684fd225cd12cd
- https://git.kernel.org/stable/c/8015c17fe11a8608cc3eb83d0ab831e1845a9582
- https://git.kernel.org/stable/c/cea04f3d9aeebda9d9c063c0dfa71e739c322c81
- https://git.kernel.org/stable/c/448efb7ea0bfa2c4e27c5a2eb5684fd225cd12cd
- https://git.kernel.org/stable/c/8015c17fe11a8608cc3eb83d0ab831e1845a9582
- https://git.kernel.org/stable/c/cea04f3d9aeebda9d9c063c0dfa71e739c322c81
Get alerted when CVE-2024-40997 or the next vulnerability affects your stack