{"id":"CVE-2025-38421","aliases":["CVE-2025-38421"],"related":[],"kind":"vulnerability","state":"published","title":"platform/x86/amd: pmf: Use device managed allocations","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd: pmf: Use device managed allocations\n\nIf setting up smart PC fails for any reason then this can lead to\na double free when unloading amd-pmf.  This is because dev->buf was\nfreed but never set to NULL and is again freed in amd_pmf_remove().\n\nTo avoid subtle allocation bugs in failures leading to a double free\nchange all allocations into device managed allocations.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/x86/amd: pmf: Use device managed allocations\n\nIf setting up smart PC fails for any reason then this can lead to\na double free when unloading amd-pmf.  This is because dev->buf was\nfreed but never set to NULL and is again freed in amd_pmf_remove().\n\nTo avoid subtle allocation bugs in failures leading to a double free\nchange all allocations into device managed allocations.","source":"cvelist"},{"lang":"es","text":"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-&gt;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.","source":"nvd"}],"published":"2025-07-25T14:16:42.409Z","modified":"2026-10-21T13:18:11.537Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"e70b4b8f93d7fcf8ee063a1d1f18782c4da3d335","fixed":"d6a38e1a82d2f9abd0bae84a354654bccb8389f6","status":"affected"},{"type":"git","introduced":"5b1122fc4995f308b21d7cfc64ef9880ac834d20","fixed":"0d10b532f861253c283863522d59d099fcb0796d","status":"affected"},{"type":"git","introduced":"5b1122fc4995f308b21d7cfc64ef9880ac834d20","fixed":"d9db3a941270d92bbd1a6a6b54a10324484f2f2d","status":"affected"},{"type":"git","version":"3ed60e51ffdbfef14169bd967e21a6ba5e5ff42b","status":"affected"},{"type":"semver","introduced":"6.12.23","fixed":"6.12.114","status":"affected"},{"type":"semver","introduced":"6.13.11","fixed":"6.14","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.4","lastAffected":"6.15.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.16","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12.23","fixed":"6.13"},{"status":"affected","introduced":"6.13.11","fixed":"6.14"},{"status":"affected","introduced":"6.14.1","fixed":"6.15.4"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.16"},{"status":"affected","version":"6.16"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d6a38e1a82d2f9abd0bae84a354654bccb8389f6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d10b532f861253c283863522d59d099fcb0796d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d9db3a941270d92bbd1a6a6b54a10324484f2f2d","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38421","url":"https://www.cve.org/CVERecord?id=CVE-2025-38421","licence":"CVE Terms of Use","modified":"2026-10-21T12:37:04.677Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38421","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38421","licence":"Public domain","modified":"2026-10-21T13:18:11.537Z"}],"updatedAt":"2026-11-25T22:59:01.705Z","epss":{"score":0.00241,"percentile":0.16312,"date":"2026-12-01T12:00:22.000Z"}}