CVE-2023-53806: drm/amd/display: populate subvp cmd info only for the top pipe
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: populate subvp cmd info only for the top pipe
[Why]
System restart observed while changing the display resolution to 8k with extended mode. Sytem restart was caused by a page fault.
[How]
When the driver populates subvp info it did it for both the pipes using vblank which caused an outof bounds array access causing the page fault. added checks to allow the top pipe only to fix this issue.
The Linux kernel CVE team has assigned CVE-2023-53806 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.30 with commit 92e6c79acad4b96efeff261d27bdbd8089a7dd24 Fixed in 6.3.4 with commit 375d192eb1f1d9229a6d994da7ba31f3582b106b Fixed in 6.4 with commit 9bb10b7aaec3b6278f9cc410c17dcaa129bbbbf0
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2023-53806
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/92e6c79acad4b96efeff261d27bdbd8089a7dd24 https://git.kernel.org/stable/c/375d192eb1f1d9229a6d994da7ba31f3582b106b https://git.kernel.org/stable/c/9bb10b7aaec3b6278f9cc410c17dcaa129bbbbf0