drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1
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.12.1096.15.46.16In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1
[Why] If the dummy values in `populate_dummy_dml_surface_cfg()` aren't updated then they can lead to a divide by zero in downstream callers like CalculateVMAndRowBytes()
[How] Initialize dummy value to a value to avoid divide by zero.
From the CVE record · Linux
The Linux kernel’s AMD display code can divide by zero if dummy values in `populate_dummy_dml_surface_cfg()` are not updated. This can occur in downstream callers such as `CalculateVMAndRowBytes()`. The input does not establish how an attacker could trigger it or whether access or user interaction is required.
Engineers running the Linux kernel should check their systems; affected versions are not specified.