# CVE-2024-40997: cpufreq: amd-pstate: fix memory leak on CPU EPP exit

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2024-07-12T12:37:39.128Z
- Modified: 2026-06-17T07:47:02.927Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from ffa5096a7c338641f70fb06d4778e8cf400181a8 before 448efb7ea0bfa2c4e27c5a2eb5684fd225cd12cd; from ffa5096a7c338641f70fb06d4778e8cf400181a8 before 8015c17fe11a8608cc3eb83d0ab831e1845a9582; from ffa5096a7c338641f70fb06d4778e8cf400181a8 before cea04f3d9aeebda9d9c063c0dfa71e739c322c81; 6.3 (not affected: before 6.3; from 6.6.36 up to 6.6.*; from 6.9.7 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: before 6.6.36; from 6.7 before 6.9.7

## References

- <https://git.kernel.org/stable/c/448efb7ea0bfa2c4e27c5a2eb5684fd225cd12cd> (mailing-list, patch)
- <https://git.kernel.org/stable/c/8015c17fe11a8608cc3eb83d0ab831e1845a9582> (mailing-list, patch)
- <https://git.kernel.org/stable/c/cea04f3d9aeebda9d9c063c0dfa71e739c322c81> (mailing-list, patch)

## Sources

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

---

Page: https://cve.day/CVE-2024-40997 · Whole record: https://cve.day/CVE-2024-40997.json · Rebuilt by cve.day 2026-11-25T22:58:42.882Z
