{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38421","id":"CVE-2025-38421","title":"platform/x86/amd: pmf: Use device managed allocations","description":"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\nchan","descriptionLong":"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.","published":"2025-07-25T14:16:42.409Z","updated":"2026-11-17T07:02:04.303276049Z","reserved":"2025-04-16T04:51:24.014Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e70b4b8f93d7fcf8ee063a1d1f18782c4da3d335","lessThan":"d6a38e1a82d2f9abd0bae84a354654bccb8389f6","status":"affected","versionType":"git"},{"version":"5b1122fc4995f308b21d7cfc64ef9880ac834d20","lessThan":"0d10b532f861253c283863522d59d099fcb0796d","status":"affected","versionType":"git"},{"version":"5b1122fc4995f308b21d7cfc64ef9880ac834d20","lessThan":"d9db3a941270d92bbd1a6a6b54a10324484f2f2d","status":"affected","versionType":"git"},{"version":"3ed60e51ffdbfef14169bd967e21a6ba5e5ff42b","status":"affected","versionType":"git"},{"version":"6.12.23","lessThan":"6.12.114","status":"affected","versionType":"semver"},{"version":"6.13.11","lessThan":"6.14","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","lessThan":"6.14","status":"unaffected","versionType":"semver"},{"version":"6.12.114","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.4","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-415"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/d6a38e1a82d2f9abd0bae84a354654bccb8389f6","tags":["web"]},{"url":"https://git.kernel.org/stable/c/0d10b532f861253c283863522d59d099fcb0796d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d9db3a941270d92bbd1a6a6b54a10324484f2f2d","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38421.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38421","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00235,"epssPercentile":0.14754,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38421","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38421","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38421","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38421","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}