KernelScan.io

HIGH Introduced in 6.1

cros_ec_typec PdoCount Overflow

CVE-2026-93190

CVSS 8.4 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.8MEDIUM

01

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.

02

Engine v0.6.0

Risk summary

A stack buffer overflow in the ChromeOS EC Type-C driver can be triggered by connecting a malicious USB-C device that causes the Embedded Controller to report more Power Data Objects than the kernel's fixed-size stack array can hold. The overflow of up to ~1 KB can corrupt the kernel stack, leading to code execution or a kernel crash. Devices with exposed USB-C ports on ChromeOS or compatible hardware are at risk; sealed enclosures or ports requiring disassembly mitigate physical access.

Affecteddrivers/platform/chrome/cros_ec_typec.c (platform/chrome)

Vulnerability analysis

The ChromeOS EC Type-C driver copies Power Data Object arrays from an Embedded Controller status response into a fixed-size stack buffer sized for seven entries, but it trusts the EC-supplied count without checking that it fits. A count larger than seven causes a memcpy to write past the end of the stack buffer, and also reads past the end of the EC response arrays. The fix adds a bounds check that rejects any count exceeding the maximum and skips PDO registration while still processing the rest of the status event. The vulnerable path is reached when a USB-C partner device is connected and the EC reports its power delivery capabilities; a malicious or non-compliant device could supply enough PDOs to trigger the overflow if the EC firmware does not independently cap the count. No system privileges are required—only physical access to a USB-C port on affected hardware.

03

BranchIntroducedFixed inPatch commit
6.16.16.1.1887617b210a220
6.126.16.12.1102a7a4e45a3aa
6.186.16.18.52e4728288473a
6.66.16.6.1574e37371cb4e3
7.26.17.2.654d6b0ee9b8b
mainline6.17.3a0a8cd9fc9c4
cip/6.16.16.1.189-cip617617b210a220
cip/6.1-rt6.16.1.189-cip61-rt327617b210a220
cip/6.126.16.12.111-cip322a7a4e45a3aa

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.111-cip32
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32