CVE-2025-38421

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

7.8 high EPSS 0.24%

Published 25 Jul 2025 Updated 21 Oct 2026 CNA: Linux

Check your servers for CVE-2025-38421

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38421 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.8 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.2% of all scored CVEs. Scores of 2 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e70b4b8f93d7fcf8ee063a1d1f18782c4da3d335, before d6a38e1a82d2f9abd0bae84a354654bccb8389f6
affected from 5b1122fc4995f308b21d7cfc64ef9880ac834d20, before 0d10b532f861253c283863522d59d099fcb0796d
affected from 5b1122fc4995f308b21d7cfc64ef9880ac834d20, before d9db3a941270d92bbd1a6a6b54a10324484f2f2d
affected 3ed60e51ffdbfef14169bd967e21a6ba5e5ff42b
affected from 6.12.23, before 6.12.114
affected from 6.13.11, before 6.14
Other versions: unaffected
Linux
affected 6.14
unaffected before 6.14
unaffected from 6.12.114 up to and including 6.12.*
unaffected from 6.15.4 up to and including 6.15.*
unaffected 6.16 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38421 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38421

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38421
trivy image --scanners vuln IMAGE | grep CVE-2025-38421

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38421 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.