drm/amdgpu/powerplay/psm: Fix memory leak in power state init
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu/powerplay/psm: Fix memory leak in power state init
Commit 902bc65de0b3 ("drm/amdgpu/powerplay/psm: return an error in power state init") made the power state init function return early in case of failure to get an entry from the powerplay table, but it missed to clean up the allocated memory for the current power state before returning.
From the CVE record · Linux
The Linux kernel’s AMDGPU power state initialization can leak allocated memory if it fails to get an entry from the powerplay table. The input does not specify whether an attacker can trigger this failure, or any access or interaction requirements.
Engineers running Linux kernels with the affected AMDGPU powerplay code should check their versions; affected versions are not specified.