Bug 2383457 (CVE-2025-38421)

Summary: CVE-2025-38421 kernel: platform/x86/amd: pmf: Use device managed allocations
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: rhel-process-autobot, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in the Linux kernel's AMD Platform Management Framework (PMF) driver. This vulnerability can lead to a denial of service (DoS) or kernel memory corruption when unloading the driver after an initialization failure. Specifically, if smart PC setup fails, an internal memory buffer is freed without being cleared, causing the driver removal routine to release the same buffer again. A local privileged user could exploit this double-free flaw during driver cleanup to crash the system.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-07-25 15:01:49 UTC
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.

Comment 1 Jon Moroney 2025-07-25 17:50:28 UTC Comment hidden (spam)