CVE-2026-97621: drm/rockchip: analogix_dp: fix unchecked bound endpoint name length
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/rockchip: analogix_dp: fix unchecked bound endpoint name length
rockchip_dp_drm_encoder_enable() uses sprintf() to format a device tree path into a 32-byte stack buffer. Device tree paths are not limited to this size, so a sufficiently long path can overflow the buffer.
Use snprintf() with the destination size to truncate the generated name and keep the writes within bounds.
The Linux kernel CVE team has assigned CVE-2026-97621 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit 729f8eefdcadaff98606931e691910f17d8d59d6 and fixed in 6.18.53 with commit 49f5268f43a791dd0d9ff554cce25a3685c7250b Issue introduced in 6.16 with commit 729f8eefdcadaff98606931e691910f17d8d59d6 and fixed in 7.2.7 with commit 2fcd112caa4ebc64fdcb509f0b26d8daa3fac950 Issue introduced in 6.16 with commit 729f8eefdcadaff98606931e691910f17d8d59d6 and fixed in 7.3-rc3 with commit bc69439d983cc491cc86e01fafc1deb94e1bb85e
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-97621
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/rockchip/analogix_dp-rockchip.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/49f5268f43a791dd0d9ff554cce25a3685c7250b https://git.kernel.org/stable/c/2fcd112caa4ebc64fdcb509f0b26d8daa3fac950 https://git.kernel.org/stable/c/bc69439d983cc491cc86e01fafc1deb94e1bb85e