# CVE-2026-139548: platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:35:46.822Z
- Modified: 2026-11-30T14:19:33.550Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from de0f49487db3667f5204dcec6d3482c9bd1a0a30 before e561f3b727e14ec087bb15d6d3c9b6c66468c048; from de0f49487db3667f5204dcec6d3482c9bd1a0a30 before 22050deecab9a0a65676aaeafc277e923c8e8c5c; from de0f49487db3667f5204dcec6d3482c9bd1a0a30 before ac2f3341c459468f25865180b626ba9447173366; from de0f49487db3667f5204dcec6d3482c9bd1a0a30 before 833e3837354ac3d553d14a19eefffc323ee291c0; from de0f49487db3667f5204dcec6d3482c9bd1a0a30 before 834847b5a34047e84bc5be2909ab3588876314e0; from de0f49487db3667f5204dcec6d3482c9bd1a0a30 before 317e7abcaf60b79765dcf35c014edac8b9d37a6e; 5.11 (not affected: before 5.11; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-139548](https://www.cve.org/CVERecord?id=CVE-2026-139548), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139548](https://nvd.nist.gov/vuln/detail/CVE-2026-139548), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139548 · Whole record: https://cve.day/CVE-2026-139548.json · Rebuilt by cve.day 2026-11-30T14:33:27.313Z
