CVE-2025-38421

Source
https://cve.org/CVERecord?id=CVE-2025-38421
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38421.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38421
Downstream
Related
Published
2025-07-25T14:16:42.409Z
Modified
2026-03-12T02:19:33.050636Z
Summary
platform/x86/amd: pmf: Use device managed allocations
Details

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 amdpmfremove().

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38421.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5b1122fc4995f308b21d7cfc64ef9880ac834d20
Fixed
0d10b532f861253c283863522d59d099fcb0796d
Fixed
d9db3a941270d92bbd1a6a6b54a10324484f2f2d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
e70b4b8f93d7fcf8ee063a1d1f18782c4da3d335
Last affected
3ed60e51ffdbfef14169bd967e21a6ba5e5ff42b

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38421.json"