Skip to contentSkip to conversation

CVE-2026-93067: drm/bridge: tc358767: clamp the reported AUX read size to the request

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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/bridge: tc358767: clamp the reported AUX read size to the request

tc_aux_transfer() clamps an AUX read to the payload limit:

	size_t size = min_t(size_t, DP_AUX_MAX_PAYLOAD_BYTES - 1, msg->size);

After the transfer it replaces size with the byte count the controller reports in AUX_BYTES:

	if (size)
		size = FIELD_GET(AUX_BYTES, auxstatus);

AUX_BYTES is GENMASK(15, 8), so it can be up to 255. Nothing clamps it back to the request. tc_aux_read_data() reads that many bytes into the 16-byte auxrdata stack buffer, then copies them into the caller buffer. A reported count of 255 makes the read run to 256 bytes and overruns both.

The controller should never report more than it was asked to transfer, so this is defense in depth rather than a live hole. The reported count is only lightly trusted, and the check is cheap. Clamp it back to the request, the same way ti-sn65dsi86 does in commit aca58eac52b8 ("drm/bridge:
ti-sn65dsi86: Never store more than msg->size bytes in AUX xfer").

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

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

	Issue introduced in 5.4 with commit 12dfe7c4d9c53442efcb4113cff505f60d654906 and fixed in 5.10.270 with commit ebf00c51c9ac9188e2806a2b842418805ee879be
	Issue introduced in 5.4 with commit 12dfe7c4d9c53442efcb4113cff505f60d654906 and fixed in 5.15.221 with commit 424b762cc26d512e3e7421e57e41b4b55be2400b
	Issue introduced in 5.4 with commit 12dfe7c4d9c53442efcb4113cff505f60d654906 and fixed in 6.1.188 with commit dd6274706bec30d005bff0587a4262d01dc2775a
	Issue introduced in 5.4 with commit 12dfe7c4d9c53442efcb4113cff505f60d654906 and fixed in 6.6.157 with commit 982caa744fce79d18f2920382aaeb0da821a6e73
	Issue introduced in 5.4 with commit 12dfe7c4d9c53442efcb4113cff505f60d654906 and fixed in 6.12.110 with commit 33c0b072e31dee98a754d9bd01800359dfeb9e8f
	Issue introduced in 5.4 with commit 12dfe7c4d9c53442efcb4113cff505f60d654906 and fixed in 6.18.52 with commit 57c567e0e8aa76f6e3e8f39d7f40c20bc37e76af
	Issue introduced in 5.4 with commit 12dfe7c4d9c53442efcb4113cff505f60d654906 and fixed in 7.2.6 with commit 9ff718df547372d70ca20ad8e66a3fb1300936b2
	Issue introduced in 5.4 with commit 12dfe7c4d9c53442efcb4113cff505f60d654906 and fixed in 7.3-rc1 with commit ec6444a00c49e6c2b5e9a507272a28126677f9ee

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

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/bridge/tc358767.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/ebf00c51c9ac9188e2806a2b842418805ee879be
	https://git.kernel.org/stable/c/424b762cc26d512e3e7421e57e41b4b55be2400b
	https://git.kernel.org/stable/c/dd6274706bec30d005bff0587a4262d01dc2775a
	https://git.kernel.org/stable/c/982caa744fce79d18f2920382aaeb0da821a6e73
	https://git.kernel.org/stable/c/33c0b072e31dee98a754d9bd01800359dfeb9e8f
	https://git.kernel.org/stable/c/57c567e0e8aa76f6e3e8f39d7f40c20bc37e76af
	https://git.kernel.org/stable/c/9ff718df547372d70ca20ad8e66a3fb1300936b2
	https://git.kernel.org/stable/c/ec6444a00c49e6c2b5e9a507272a28126677f9ee