CVE-2025-38421
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.12.23 before 6.13, from 6.13.11 before 6.14, from 6.14.1 before 6.15.4, 6.14, 6.16NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: platform/x86/amd: pmf: Usar asignaciones administradas por dispositivo. Si la configuración de Smart PC falla por cualquier motivo, esto puede provocar una doble liberación al descargar amd-pmf. Esto se debe a que dev->buf se liberó, pero nunca se configuró como NULL y se libera de nuevo en amd_pmf_remove(). Para evitar errores sutiles de asignación en fallos que provoquen una doble liberación, cambie todas las asignaciones a asignaciones administradas por dispositivo.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38421 changed 2026-10-21CVE Terms of Use
NVDCVE-2025-38421 changed 2026-10-21Public domain