{"id":"CVE-2026-139548","state":"PUBLISHED","title":"platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data\n\ncros_typec_register_altmodes() iterates over sop_disc->svid_count and\nsop_disc->svids[i].mode_count from the EC_CMD_TYPEC_DISCOVERY response\nwithout validating their bounds.\n\nport->disc_data is allocated as a buffer of EC_PROTO2_MAX_RESPONSE_SIZE\nbytes, and each SVID entry contains a fixed mode_vdo[6] array. If the EC\nreturns an out-of-bounds svid_count or mode_count, the loops read past\nthe end of the mode_vdo array or the disc_data buffer.\n\nValidate that the discovery response with svid_count entries fits within\nEC_PROTO2_MAX_RESPONSE_SIZE using struct_size(), and ensure each SVID's\nmode_count does not exceed ARRAY_SIZE(sop_disc->svids[i].mode_vdo)\nbefore registering altmodes.","publishedAt":"2026-11-30T13:35:46.822Z","updatedAt":"2026-11-30T13:35:46.822Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"e561f3b727e14ec087bb15d6d3c9b6c66468c048","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"22050deecab9a0a65676aaeafc277e923c8e8c5c","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"ac2f3341c459468f25865180b626ba9447173366","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"833e3837354ac3d553d14a19eefffc323ee291c0","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"834847b5a34047e84bc5be2909ab3588876314e0","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"317e7abcaf60b79765dcf35c014edac8b9d37a6e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/chrome/cros_ec_typec.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/chrome/cros_ec_typec.c"]}],"references":["https://git.kernel.org/stable/c/e561f3b727e14ec087bb15d6d3c9b6c66468c048","https://git.kernel.org/stable/c/22050deecab9a0a65676aaeafc277e923c8e8c5c","https://git.kernel.org/stable/c/ac2f3341c459468f25865180b626ba9447173366","https://git.kernel.org/stable/c/833e3837354ac3d553d14a19eefffc323ee291c0","https://git.kernel.org/stable/c/834847b5a34047e84bc5be2909ab3588876314e0","https://git.kernel.org/stable/c/317e7abcaf60b79765dcf35c014edac8b9d37a6e"],"weaknesses":[],"ingestedAt":"2026-11-30T13:52:04.503Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139548.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139548","state":"PUBLISHED","datePublished":"2026-11-30T13:35:46.822Z","dateUpdated":"2026-11-30T13:35:46.822Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.940Z"},"containers":{"cna":{"title":"platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data\n\ncros_typec_register_altmodes() iterates over sop_disc->svid_count and\nsop_disc->svids[i].mode_count from the EC_CMD_TYPEC_DISCOVERY response\nwithout validating their bounds.\n\nport->disc_data is allocated as a buffer of EC_PROTO2_MAX_RESPONSE_SIZE\nbytes, and each SVID entry contains a fixed mode_vdo[6] array. If the EC\nreturns an out-of-bounds svid_count or mode_count, the loops read past\nthe end of the mode_vdo array or the disc_data buffer.\n\nValidate that the discovery response with svid_count entries fits within\nEC_PROTO2_MAX_RESPONSE_SIZE using struct_size(), and ensure each SVID's\nmode_count does not exceed ARRAY_SIZE(sop_disc->svids[i].mode_vdo)\nbefore registering altmodes."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"e561f3b727e14ec087bb15d6d3c9b6c66468c048","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"22050deecab9a0a65676aaeafc277e923c8e8c5c","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"ac2f3341c459468f25865180b626ba9447173366","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"833e3837354ac3d553d14a19eefffc323ee291c0","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"834847b5a34047e84bc5be2909ab3588876314e0","versionType":"git"},{"version":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","status":"affected","lessThan":"317e7abcaf60b79765dcf35c014edac8b9d37a6e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/chrome/cros_ec_typec.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/platform/chrome/cros_ec_typec.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e561f3b727e14ec087bb15d6d3c9b6c66468c048"},{"url":"https://git.kernel.org/stable/c/22050deecab9a0a65676aaeafc277e923c8e8c5c"},{"url":"https://git.kernel.org/stable/c/ac2f3341c459468f25865180b626ba9447173366"},{"url":"https://git.kernel.org/stable/c/833e3837354ac3d553d14a19eefffc323ee291c0"},{"url":"https://git.kernel.org/stable/c/834847b5a34047e84bc5be2909ab3588876314e0"},{"url":"https://git.kernel.org/stable/c/317e7abcaf60b79765dcf35c014edac8b9d37a6e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:35:46.822Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}