drm/amd/pm: bound pp_dpm_set_pp_table() memcpy
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:
drm/amd/pm: bound pp_dpm_set_pp_table() memcpy
The powerplay path allocates hardcode_pp_table once with kmemdup(..., soft_pp_table_size). memcpy(..., size) used the sysfs store count (up to PAGE_SIZE) with no upper bound, causing heap overflow. Reject writes where size exceeds soft_pp_table_size.
From the CVE record · Linux
The Linux kernel’s AMD power-management sysfs path copies a supplied table using the write size without checking it against the allocated buffer. Someone able to write to that sysfs entry could trigger a heap overflow by supplying more data than the buffer holds.
Engineers running Linux kernels with the affected AMD power-management code should check their installations; affected versions were not specified.