platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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

platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data

cros_typec_register_altmodes() iterates over sop_disc->svid_count and sop_disc->svids[i].mode_count from the EC_CMD_TYPEC_DISCOVERY response without validating their bounds.

port->disc_data is allocated as a buffer of EC_PROTO2_MAX_RESPONSE_SIZE bytes, and each SVID entry contains a fixed mode_vdo[6] array. If the EC returns an out-of-bounds svid_count or mode_count, the loops read past the end of the mode_vdo array or the disc_data buffer.

Validate that the discovery response with svid_count entries fits within EC_PROTO2_MAX_RESPONSE_SIZE using struct_size(), and ensure each SVID's mode_count does not exceed ARRAY_SIZE(sop_disc->svids[i].mode_vdo) before registering altmodes.

ProductVersions
Linux Linuxde0f49487db3667f5204dcec6d3482c9bd1a0a30 to before e561f3b727e14ec087bb15d6d3c9b6c66468c048 Affectedde0f49487db3667f5204dcec6d3482c9bd1a0a30 to before 22050deecab9a0a65676aaeafc277e923c8e8c5c Affectedde0f49487db3667f5204dcec6d3482c9bd1a0a30 to before ac2f3341c459468f25865180b626ba9447173366 Affectedde0f49487db3667f5204dcec6d3482c9bd1a0a30 to before 833e3837354ac3d553d14a19eefffc323ee291c0 Affectedde0f49487db3667f5204dcec6d3482c9bd1a0a30 to before 834847b5a34047e84bc5be2909ab3588876314e0 Affectedde0f49487db3667f5204dcec6d3482c9bd1a0a30 to before 317e7abcaf60b79765dcf35c014edac8b9d37a6e Affected
Linux Linux5.11 Affectedbefore 5.11 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.