drm/amd/pm: fix a double-free in si_dpm_init
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 841686df9f7d2942cfd94d024b8591fa3f74ef7c · < fb1936cb587262cd539e84b34541abb06e42b2f9| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/pm: fix a double-free in si_dpm_init
When the allocation of adev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries fails, amdgpu_free_extended_power_table is called to free some fields of adev. However, when the control flow returns to si_dpm_sw_init, it goes to label dpm_failed and calls si_dpm_fini, which calls amdgpu_free_extended_power_table again and free those fields again. Thus a double-free is triggered.
From the CVE record · Linux
The Linux kernel’s AMD GPU power-management initialization has a double-free vulnerability. If an allocation fails, cleanup frees the same fields twice. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running Linux kernels with AMD GPU power management should check their installations; affected versions are not specified.