Linux kernel out-of-bounds access in AMDGPU backlight curves
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 |
|
|
6.18.647.3.57.4-rc2In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: Clamp the ATIF backlight curve to its 99 points
amdgpu_atif_query_backlight_caps() stores the firmware's number_of_points as data_points but copies only the 99 points that luminance_data[] holds. number_of_points is a u8, so a firmware table that claims more makes the custom curve code in amdgpu_dm index past the array, and dm_query_extended_brightness_caps() copy past the end of the data_points[] buffer it fills
Clamp the count to ATIF_QBTC_MAX_DATA_POINTS and warn, since a table that claims more is a firmware bug
(cherry picked from commit af8a1c2b7d3de4960e10f94e8ba2fc0ccd168072)
From the CVE record · Linux
The amdgpu driver can access memory past its backlight curve buffers when an ATIF firmware table claims more than 99 points. The input does not establish whether an attacker can supply such a table, or whether exploitation is remote or local, requires authentication, or needs user interaction.
Engineers running Linux kernels with the amdgpu driver should check their kernel vendor's advisory; affected versions are not specified.