CVE-2026-89817: drm/gud: NUL-terminate TV mode names read from the device
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/gud: NUL-terminate TV mode names read from the device
gud_connector_add_tv_mode() reads a buffer of fixed-size mode names from the USB device and passes pointers into it to drm_mode_create_tv_properties_legacy(), which calls strlen() on each one. Nothing guarantees the device NUL-terminates a name, so strlen() can run past the end of a slot and, for the last mode, past the end of the allocation.
Terminate each name at the end of its slot before use.
The Linux kernel CVE team has assigned CVE-2026-89817 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 5.15.221 with commit 08c8ec28547987e55a90c662f8795e05c2925498 Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.1.188 with commit 9096edfd6f2edbc79612b482547e0972edbcfe4b Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.6.157 with commit 89210cb5ff8fdbe055c97ac688be2268f6c815ae Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.12.110 with commit d0f3312f7800eb0e00d1264f66104c788f43dd69 Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.18.51 with commit b86438a5c6b0250ccb07dd380184d1e70e0dea6c Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 7.2.5 with commit 6ea61f1d4cbaa0db937e31bffc041fb8afeacf52 Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 7.3-rc2 with commit 500cb24cd61bad8a2747ddfc49b7034899c82d94
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-89817
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/gud/gud_connector.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/08c8ec28547987e55a90c662f8795e05c2925498 https://git.kernel.org/stable/c/9096edfd6f2edbc79612b482547e0972edbcfe4b https://git.kernel.org/stable/c/89210cb5ff8fdbe055c97ac688be2268f6c815ae https://git.kernel.org/stable/c/d0f3312f7800eb0e00d1264f66104c788f43dd69 https://git.kernel.org/stable/c/b86438a5c6b0250ccb07dd380184d1e70e0dea6c https://git.kernel.org/stable/c/6ea61f1d4cbaa0db937e31bffc041fb8afeacf52 https://git.kernel.org/stable/c/500cb24cd61bad8a2747ddfc49b7034899c82d94