# CVE-2026-139548

- Bağlantı: https://www.allsafe.com.tr/cve-2026-139548/
- Yayımlanma: 2026-11-30T17:19:33+03:00
- Yazar: Postmaster

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.

Bu kayıt NIST NVD kaynağından aktarılmıştır. Etkilenen sürümler, güncel değerlendirme
ve üretici referansları için kaynak kaydı inceleyin.

Kaynak: [NIST NVD — özgün kaydı inceleyin ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-139548)
