amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ d5bf26539494d16dfabbbea0854a47d202ea15c0 · < d27252b5706e51188aed7647126e44dcf9e940c1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
amdgpu/pm: prevent array underflow in vega20_odn_edit_dpm_table()
In the PP_OD_EDIT_VDDC_CURVE case the "input_index" variable is capped at 2 but not checked for negative values so it results in an out of bounds read. This value comes from the user via sysfs.
From the CVE record · Linux
The Linux kernel's amdgpu power-management code does not reject negative input_index values in vega20_odn_edit_dpm_table(). A user who can supply a negative value through sysfs can trigger an out-of-bounds read; the input does not specify whether authentication or additional user interaction is required.
Engineers running the Linux kernel with amdgpu should check their affected versions; no version range is provided.