platform/x86/amd: pmf: Use device managed allocations
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s amd-pmf component can double-free a buffer if smart PC setup fails and amd-pmf is then unloaded. The input does not specify whether an attacker can trigger these conditions, what they could achieve, or what access would be required.
Engineers running Linux systems that use amd-pmf should check their kernel versions; affected versions are not specified.