CVE-2026-139548

platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In the Linux kernel, the component cros_ec_typec registers alternate modes based on data received from the embedded controller. The implementation iterates over sop_disc->svid_count and sop_disc->svids[i].mode_count without checking that these values are within the bounds of the allocated discovery buffer. If the embedded controller returns a larger svid_count or a mode count that exceeds the fixed mode_vdo array size, the kernel reads past the end of the buffer and the array. This out‑of‑bounds read can corrupt kernel memory or be leveraged by an attacker to gain arbitrary code execution or increase privileges, especially if the EC is able to send crafted discovery data. The weakness is a classic buffer overrun scenario.

Affected Systems

All Linux distributions that include the cros_ec_typec kernel module are affected. The CNA lists the vendor as Linux:Linux, and no specific version range is provided, meaning any kernel build that contains this module and has not incorporated the bounds checks may be vulnerable. The flaw only exists on systems that accept type‑C alternative mode discovery data from a Chrome OS‑style embedded controller.

Risk and Exploitability

Because the flaw is triggered by malformed data from the embedded controller, the exploitation surface is limited to devices where an attacker can influence the EC firmware or the discovery process. No EPSS score is available, and the vulnerability is not listed in CISA’s KEV catalog, but the lack of bounds checking represents a high‑severity design issue. The CVSS score is not provided, so assessment relies on the nature of the vulnerability—provable memory corruption leading to code execution. Organizations running affected kernels should treat this as a high‑risk vulnerability pending a patch.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the bounds validation fix for the cros_ec_typec module.
  • If the kernel is customized, apply the patch that introduces the struct_size and ARRAY_SIZE checks, or merge the relevant commits into the local source tree.
  • As a temporary mitigation, consider disabling or limiting the EC’s type‑C alternate mode discovery or revert the EC firmware to a stable version that does not send malformed data.

Generated by OpenCVE AI on November 30, 2026 at 23:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
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.
Title platform/chrome: cros_ec_typec: Validate SVID and mode counts in discovery data
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM