drm/amd/display: Add check for granularity in dml ceil/floor helpers
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4562236b3bc0a28aeb6ee93b2d8a849a4c4e1c7c · < 4f0dd09ed3001725ffd8cdc2868e71df585392fe| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Add check for granularity in dml ceil/floor helpers
[Why] Wrapper functions for dcn_bw_ceil2() and dcn_bw_floor2() should check for granularity is non zero to avoid assert and divide-by-zero error in dcn_bw_ functions.
[How] Add check for granularity 0.
(cherry picked from commit f6e09701c3eb2ccb8cb0518e0b67f1c69742a4ec)
From the CVE record · Linux
The Linux kernel's AMD display bandwidth ceil/floor helpers lacked a check for zero granularity, which could trigger an assertion or divide-by-zero error. The input does not specify whether an attacker can trigger this, or the access and interaction required.
Engineers running the Linux kernel should check their AMD display code; affected versions are not specified.