# CVE-2025-38421: platform/x86/amd: pmf: Use device managed allocations

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-07-25T14:16:42.409Z
- Modified: 2026-10-21T13:18:11.537Z
- Weaknesses: CWE-415
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

platform/x86/amd: pmf: Use device managed allocations

If setting up smart PC fails for any reason then this can lead to
a double free when unloading amd-pmf.  This is because dev->buf was
freed but never set to NULL and is again freed in amd_pmf_remove().

To avoid subtle allocation bugs in failures leading to a double free
change all allocations into device managed allocations.

(As written by CVE List.)

## Affected

- Linux Linux: from e70b4b8f93d7fcf8ee063a1d1f18782c4da3d335 before d6a38e1a82d2f9abd0bae84a354654bccb8389f6; from 5b1122fc4995f308b21d7cfc64ef9880ac834d20 before 0d10b532f861253c283863522d59d099fcb0796d; from 5b1122fc4995f308b21d7cfc64ef9880ac834d20 before d9db3a941270d92bbd1a6a6b54a10324484f2f2d; 3ed60e51ffdbfef14169bd967e21a6ba5e5ff42b; from 6.12.23 before 6.12.114; from 6.13.11 before 6.14; 6.14 (not affected: before 6.14; from 6.12.114 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.12.23 before 6.13; from 6.13.11 before 6.14; from 6.14.1 before 6.15.4; 6.14; 6.16

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/d6a38e1a82d2f9abd0bae84a354654bccb8389f6>
- <https://git.kernel.org/stable/c/0d10b532f861253c283863522d59d099fcb0796d> (patch)
- <https://git.kernel.org/stable/c/d9db3a941270d92bbd1a6a6b54a10324484f2f2d> (patch)

## Sources

- CVE List: [CVE-2025-38421](https://www.cve.org/CVERecord?id=CVE-2025-38421), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2025-38421](https://nvd.nist.gov/vuln/detail/CVE-2025-38421), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2025-38421 · Whole record: https://cve.day/CVE-2025-38421.json · Rebuilt by cve.day 2026-11-25T22:59:01.705Z
