{"id":"CVE-2026-139548","summary":"platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data","details":"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-\u003esvid_count and\nsop_disc-\u003esvids[i].mode_count from the EC_CMD_TYPEC_DISCOVERY response\nwithout validating their bounds.\n\nport-\u003edisc_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-\u003esvids[i].mode_vdo)\nbefore registering altmodes.","modified":"2026-12-01T21:02:38.770273059Z","published":"2026-11-30T13:35:46.822Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139548.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/22050deecab9a0a65676aaeafc277e923c8e8c5c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/317e7abcaf60b79765dcf35c014edac8b9d37a6e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/833e3837354ac3d553d14a19eefffc323ee291c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/834847b5a34047e84bc5be2909ab3588876314e0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ac2f3341c459468f25865180b626ba9447173366"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e561f3b727e14ec087bb15d6d3c9b6c66468c048"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139548.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139548"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"de0f49487db3667f5204dcec6d3482c9bd1a0a30"},{"fixed":"e561f3b727e14ec087bb15d6d3c9b6c66468c048"},{"fixed":"22050deecab9a0a65676aaeafc277e923c8e8c5c"},{"fixed":"ac2f3341c459468f25865180b626ba9447173366"},{"fixed":"833e3837354ac3d553d14a19eefffc323ee291c0"},{"fixed":"834847b5a34047e84bc5be2909ab3588876314e0"},{"fixed":"317e7abcaf60b79765dcf35c014edac8b9d37a6e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139548.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139548.json"}}],"schema_version":"1.9.2"}