HIGH Introduced in 6.1
cros_ec_typec PdoCount Overflow
CVE-2026-93190
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.8MEDIUM
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 6.1 | 6.1.188 | 7617b210a220 |
| 6.12 | 6.1 | 6.12.110 | 2a7a4e45a3aa |
| 6.18 | 6.1 | 6.18.52 | e4728288473a |
| 6.6 | 6.1 | 6.6.157 | 4e37371cb4e3 |
| 7.2 | 6.1 | 7.2.6 | 54d6b0ee9b8b |
| mainline | 6.1 | 7.3 | a0a8cd9fc9c4 |
| cip/6.1 | 6.1 | 6.1.189-cip61 | 7617b210a220 |
| cip/6.1-rt | 6.1 | 6.1.189-cip61-rt32 | 7617b210a220 |
| cip/6.12 | 6.1 | 6.12.111-cip32 | 2a7a4e45a3aa |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |