Skip to contentSkip to conversation

CVE-2026-93234: drm/gud: validate TV mode names before creating enum property

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/gud: validate TV mode names before creating enum property

The GUD protocol returns TV mode names as fixed-size GUD_CONNECTOR_TV_MODE_NAME_LEN entries and requires each name to be NUL-terminated.

gud_connector_add_tv_mode() currently passes each fixed-size entry directly to drm_mode_create_tv_properties_legacy(), which eventually reaches drm_property_add_enum() and strlen(). If a device returns an entry without a terminating NUL byte, strlen() reads past the end of the slot and can run beyond the allocated buffer, triggering an out-of-bounds read.

Validate that each returned TV mode name contains a NUL terminator within its fixed-size slot before passing it to the DRM property code. If a malformed entry is found, reject the device response with -EIO.

This fixes the out-of-bounds read without changing the handling of valid devices, and avoids silently truncating malformed protocol data.

The Linux kernel CVE team has assigned CVE-2026-93234 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 5.15.221 with commit 676f1fb3632bbc9ce83be7938e93fe6bfc9510fd
	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.1.188 with commit 06fcaf21c18ac88f57fee3803554f48c6026b95f
	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.6.157 with commit 082e378886547b5b1c4075ed307f7c68547868dc
	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.12.110 with commit 70cffc31a380b3eae45027101647aa94c242aa0e
	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 6.18.51 with commit 72a95df6bbc7d20c7af1e39d86b3e910cccd01ad
	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 7.2.5 with commit eab46d9629807db1b5647d17227e16110a18227f
	Issue introduced in 5.13 with commit 40e1a70b4aedf2859a1829991b48ef0ebe650bf2 and fixed in 7.3-rc2 with commit da1ea35fea67ad841f4ada28dd61b41be65e5437

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-93234

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/676f1fb3632bbc9ce83be7938e93fe6bfc9510fd
	https://git.kernel.org/stable/c/06fcaf21c18ac88f57fee3803554f48c6026b95f
	https://git.kernel.org/stable/c/082e378886547b5b1c4075ed307f7c68547868dc
	https://git.kernel.org/stable/c/70cffc31a380b3eae45027101647aa94c242aa0e
	https://git.kernel.org/stable/c/72a95df6bbc7d20c7af1e39d86b3e910cccd01ad
	https://git.kernel.org/stable/c/eab46d9629807db1b5647d17227e16110a18227f
	https://git.kernel.org/stable/c/da1ea35fea67ad841f4ada28dd61b41be65e5437