drm/amd/display: fix incorrect mpc_combine array size
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: fix incorrect mpc_combine array size
[why] MAX_SURFACES is per stream, while MAX_PLANES is per asic. The mpc_combine is an array that records all the planes per asic. Therefore MAX_PLANES should be used as the array size. Using MAX_SURFACES causes array overflow when there are more than 3 planes.
[how] Use the MAX_PLANES for the mpc_combine array size.
From the CVE record · Linux
The Linux kernel’s AMD display component sizes the mpc_combine array using MAX_SURFACES instead of MAX_PLANES. This can cause an array overflow when there are more than three planes. The input does not establish how an attacker could trigger it or whether access or user interaction is required.
Anyone running a Linux kernel with the affected AMD display component should check their version; affected versions are not specified.