CVE-2026-53136: drm/amd/display: Clamp VBIOS HDMI retimer register count to array size
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Clamp VBIOS HDMI retimer register count to array size
[Why & How]
The VBIOS integrated info tables (v1_11 and v2_1) contain HdmiRegNum and Hdmi6GRegNum fields that are used as loop bounds when copying retimer I2C register settings into fixed-size arrays (dp*_ext_hdmi_reg_settings[9] and dp*_ext_hdmi_6g_reg_settings[3]). These u8 fields are not validated before use, so a malformed VBIOS can specify values up to 255, causing an out-of-bounds heap write during driver probe.
Clamp each register count to the destination array size using min_t() before the copy loops, in both get_integrated_info_v11() and get_integrated_info_v2_1().
(cherry picked from commit 5a7f0ef90195940c54b0f5bb85b87da55f038c69)
The Linux kernel CVE team has assigned CVE-2026-53136 to this issue.
Affected and fixed versions
===========================
Fixed in 5.15.210 with commit 029571d51140650783be4fb98fe7cb4754752086 Fixed in 6.1.176 with commit 5f8b39452fb16f507c9e4d8b4a83ce27e893307c Fixed in 6.6.143 with commit 4d1c3c26c2ab1842e139e61983395d64bd2e518b Fixed in 6.12.94 with commit d6be8e59af412623e3d874be3a048406c0edfe60 Fixed in 6.18.36 with commit 3f32d52ec604c659725d865cf8cc6a17a33f9c6a Fixed in 7.0.13 with commit 8aaa7e317fbd4beb9c6a9f77aa4cf52fae78b117 Fixed in 7.1 with commit fb0707ce00eef4e2d60c3020e1c0432739703e4a
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-2026-53136
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/bios/bios_parser2.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/029571d51140650783be4fb98fe7cb4754752086 https://git.kernel.org/stable/c/5f8b39452fb16f507c9e4d8b4a83ce27e893307c https://git.kernel.org/stable/c/4d1c3c26c2ab1842e139e61983395d64bd2e518b https://git.kernel.org/stable/c/d6be8e59af412623e3d874be3a048406c0edfe60 https://git.kernel.org/stable/c/3f32d52ec604c659725d865cf8cc6a17a33f9c6a https://git.kernel.org/stable/c/8aaa7e317fbd4beb9c6a9f77aa4cf52fae78b117 https://git.kernel.org/stable/c/fb0707ce00eef4e2d60c3020e1c0432739703e4a