drm/amd/pm: fix pptable use-after-free
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1684d3ba488529266ce6f97b88076bd185f4790e · < bb493058c35c8676e48269ab6732688ea733d23c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/pm: fix pptable use-after-free
amdgpu_dpm_get_pp_table() returns a pointer to a driver-owned power table after dropping adev->pm.mutex. The sysfs path then copies from that pointer. A concurrent pp_table write can replace and free the allocation during the copy, causing a use-after-free.
Change the DPM interface to copy into caller-provided storage while the mutex is held. Keep the size-only query for attribute discovery without exposing the driver-owned pointer.
(cherry picked from commit f6eed7acfd30099ef7baeb6ba45bb59daad80631)
From the CVE record · Linux
The Linux kernel’s AMD GPU power-table sysfs path can copy from a table after a concurrent pp_table write replaces and frees it, causing a use-after-free. Triggering this requires access to the relevant sysfs operations and a concurrent write; the input does not specify authentication requirements.
Engineers running Linux kernels with the affected AMD GPU power-management code should check their installations; affected versions are not specified.