Skip to contentSkip to conversation

CVE-2026-93190: platform/chrome: cros_ec_typec: Reject out-of-bounds PD cap count

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:

platform/chrome: cros_ec_typec: Reject out-of-bounds PD cap count

cros_typec_register_partner_pdos() copies the partner PDOs from the EC TYPEC_STATUS response into the fixed caps_desc.pdo[PDO_MAX_OBJECTS] array.

	memcpy(caps_desc.pdo, resp->source_cap_pdos,
	       sizeof(u32) * resp->source_cap_count);
	...
	memcpy(caps_desc.pdo, resp->sink_cap_pdos,
	       sizeof(u32) * resp->sink_cap_count);

PDO_MAX_OBJECTS is 7. source_cap_count and sink_cap_count are u8 fields from the EC. The only check is that they are not both zero. If either is larger than 7, the memcpy writes past the end of the array on the stack. A count of 255 overflows it by about 1 KB. The EC source arrays are only seven entries wide. A larger count reads past them too.

The ChromeOS EC firmware caps these counts today, so a compliant setup does not hit this. The kernel should still validate these values rather than trust them.

Validate the counts in cros_typec_register_partner_pdos() next to the memcpy. Skip the PDO registration if either count is above PDO_MAX_OBJECTS. The rest of cros_typec_handle_status() still runs so events are handled and cleared.

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

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

	Issue introduced in 6.1 with commit 348a2e8c93d3ca622cf1b293cd2f597c9db74d9d and fixed in 6.1.188 with commit 7617b210a2200b76d8f171819390468c7d189c80
	Issue introduced in 6.1 with commit 348a2e8c93d3ca622cf1b293cd2f597c9db74d9d and fixed in 6.6.157 with commit 4e37371cb4e3b8ff564d7760029236a7bd614562
	Issue introduced in 6.1 with commit 348a2e8c93d3ca622cf1b293cd2f597c9db74d9d and fixed in 6.12.110 with commit 2a7a4e45a3aa4f4ef7013eb64649f6184b76a293
	Issue introduced in 6.1 with commit 348a2e8c93d3ca622cf1b293cd2f597c9db74d9d and fixed in 6.18.52 with commit e4728288473a5024a8bdba7d43f346719606fea0
	Issue introduced in 6.1 with commit 348a2e8c93d3ca622cf1b293cd2f597c9db74d9d and fixed in 7.2.6 with commit 54d6b0ee9b8ba434089b11843effc111dc2e6ead
	Issue introduced in 6.1 with commit 348a2e8c93d3ca622cf1b293cd2f597c9db74d9d and fixed in 7.3-rc1 with commit a0a8cd9fc9c48b95095bcec4b146f7a99486f58e

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

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/platform/chrome/cros_ec_typec.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/7617b210a2200b76d8f171819390468c7d189c80
	https://git.kernel.org/stable/c/4e37371cb4e3b8ff564d7760029236a7bd614562
	https://git.kernel.org/stable/c/2a7a4e45a3aa4f4ef7013eb64649f6184b76a293
	https://git.kernel.org/stable/c/e4728288473a5024a8bdba7d43f346719606fea0
	https://git.kernel.org/stable/c/54d6b0ee9b8ba434089b11843effc111dc2e6ead
	https://git.kernel.org/stable/c/a0a8cd9fc9c48b95095bcec4b146f7a99486f58e