CVE-2026-139548

Source
https://cve.org/CVERecord?id=CVE-2026-139548
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139548.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139548
Downstream
Published
2026-11-30T13:35:46Z
Modified
2026-11-30T15:02:29Z
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:

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139548.json"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"