CVE-2025-38421

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

State
Published
Severity
7.8 High
Published
Jul 25, 2025
Updated
Oct 21, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e70b4b8f93d7fcf8ee063a1d1f18782c4da3d335 to before d6a38e1a82d2f9abd0bae84a354654bccb8389f6Affected
  • 5b1122fc4995f308b21d7cfc64ef9880ac834d20 to before 0d10b532f861253c283863522d59d099fcb0796dAffected
  • 5b1122fc4995f308b21d7cfc64ef9880ac834d20 to before d9db3a941270d92bbd1a6a6b54a10324484f2f2dAffected
  • 3ed60e51ffdbfef14169bd967e21a6ba5e5ff42bAffected
  • 6.12.23 to before 6.12.114Affected
  • 6.13.11 to before 6.14Affected
LinuxLinux
  • 6.14Affected
  • before 6.14Not affected
  • 6.12.114 through 6.12.*Not affected
  • 6.15.4 through 6.15.*Not affected
  • 6.16 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.