{"id":"CVE-2026-139548","aliases":["CVE-2026-139548"],"related":[],"kind":"vulnerability","state":"published","title":"platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:35:46.822Z","modified":"2026-11-30T14:19:33.550Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","fixed":"e561f3b727e14ec087bb15d6d3c9b6c66468c048","status":"affected"},{"type":"git","introduced":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","fixed":"22050deecab9a0a65676aaeafc277e923c8e8c5c","status":"affected"},{"type":"git","introduced":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","fixed":"ac2f3341c459468f25865180b626ba9447173366","status":"affected"},{"type":"git","introduced":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","fixed":"833e3837354ac3d553d14a19eefffc323ee291c0","status":"affected"},{"type":"git","introduced":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","fixed":"834847b5a34047e84bc5be2909ab3588876314e0","status":"affected"},{"type":"git","introduced":"de0f49487db3667f5204dcec6d3482c9bd1a0a30","fixed":"317e7abcaf60b79765dcf35c014edac8b9d37a6e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e561f3b727e14ec087bb15d6d3c9b6c66468c048","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22050deecab9a0a65676aaeafc277e923c8e8c5c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac2f3341c459468f25865180b626ba9447173366","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/833e3837354ac3d553d14a19eefffc323ee291c0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/834847b5a34047e84bc5be2909ab3588876314e0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/317e7abcaf60b79765dcf35c014edac8b9d37a6e","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139548","url":"https://www.cve.org/CVERecord?id=CVE-2026-139548","licence":"CVE Terms of Use","modified":"2026-11-30T13:35:46.822Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139548","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139548","licence":"Public domain","modified":"2026-11-30T14:19:33.550Z"}],"updatedAt":"2026-11-30T14:33:27.313Z","epss":{"score":0.00205,"percentile":0.11152,"date":"2026-12-01T12:00:22.000Z"}}