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

Summary

CVECVE-2026-139548
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:19:33 UTC
Updated2026-11-30 14:19:33 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected de0f49487db3667f5204dcec6d3482c9bd1a0a30 e561f3b727e14ec087bb15d6d3c9b6c66468c048 git Not specified
CNA Linux Linux affected de0f49487db3667f5204dcec6d3482c9bd1a0a30 22050deecab9a0a65676aaeafc277e923c8e8c5c git Not specified
CNA Linux Linux affected de0f49487db3667f5204dcec6d3482c9bd1a0a30 ac2f3341c459468f25865180b626ba9447173366 git Not specified
CNA Linux Linux affected de0f49487db3667f5204dcec6d3482c9bd1a0a30 833e3837354ac3d553d14a19eefffc323ee291c0 git Not specified
CNA Linux Linux affected de0f49487db3667f5204dcec6d3482c9bd1a0a30 834847b5a34047e84bc5be2909ab3588876314e0 git Not specified
CNA Linux Linux affected de0f49487db3667f5204dcec6d3482c9bd1a0a30 317e7abcaf60b79765dcf35c014edac8b9d37a6e git Not specified
CNA Linux Linux affected 5.11 Not specified
CNA Linux Linux unaffected 5.11 semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/ac2f3341c459468f25865180b626ba9447173366 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/834847b5a34047e84bc5be2909ab3588876314e0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e561f3b727e14ec087bb15d6d3c9b6c66468c048 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/833e3837354ac3d553d14a19eefffc323ee291c0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/317e7abcaf60b79765dcf35c014edac8b9d37a6e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/22050deecab9a0a65676aaeafc277e923c8e8c5c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report