CVE-2026-138843: usb: typec: ucsi: ccg: Validate altmode index in GET_CURRENT_CAM response

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: typec: ucsi: ccg: Validate altmode index in GETCURRENTCAM response

When the PPM reports more than one DisplayPort alternate mode for a connector, ucsiccgupdatealtmodes() merges them into a single entry in uc->updated[] and sets uc->hasmultipledp. In that case, ucsiccgupdategetcurrentcamcmd() rewrites the response of the GETCURRENTCAM command. The response is a single byte holding the index of the currently active alternate mode, and it is provided by the PPM firmware.

The function uses this byte directly as an index into uc->orig[], and then uses the linkedidx read from that entry as the translated index into uc->updated[]. Both arrays have UCSIMAXALTMODES entries, but neither index is checked against that size.

If a malicious or buggy PPM reports a value of UCSIMAXALTMODES or larger, e.g. 0xFF, uc->orig[cam].linkedidx reads over the end of uc->orig[]. The byte read from there is then used as the index for writing cam into uc->updated[newcam].activeidx, so the out-of-bounds read is followed by an out-of-bounds write. This happens without any userspace action, since the UCSI core issues GETCURRENTCAM on its own when handling connector changes.

Fix this by rejecting responses whose index is out of range, printing an error and returning -EPROTO, so that the caller cannot accept this. Also check linkedidx before using it as an index, so that the write into uc->updated[] is always within bounds.

The response is now only processed when the command completed without an error. ucsisynccontrolcommon() only reads the response when the CCI reports command completion, so otherwise the buffer is not filled and must not be mistaken for an invalid index.

This bug was found with a Python script that traces where firmware input is used.

Affected Software

12 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.6.0<5.10.275
5.10.275
linux/kernel>=5.11.0<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4
debian/linux*
debian/linux<6.12.118-1
6.12.118-1
debian/linux<7.3.4-1
7.3.4-1
debian/linux<=6.1.176-1, <=6.1.192-3, <=6.12.117-1
6.12.118-17.3.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.10.275
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.226
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  7. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  8. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.118-1
  9. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.4-1
  10. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.118-1Fixed in 7.3.4-1
  11. Compensating control

    In the Linux kernel UCSI CCG GET_CURRENT_CAM response handling, validate the reported alternate-mode index before using it to access uc->orig[] or write to uc->updated[]; reject indexes greater than or equal to UCSI_MAX_ALTMODES with -EPROTO, and process the response only when the command completed without error.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description
Data Sourced
via OSV·01:25 PM
DescriptionAffected Software
Data Sourced
via NVD·02:17 PM
Description

Frequently Asked Questions

1

What systems are exposed to this issue?

Systems using the Linux kernel UCSI CCG path are affected when a connector has more than one DisplayPort alternate mode reported by the PPM. The issue is triggered if that PPM reports an invalid current alternate-mode index of UCSI_MAX_ALTMODES or greater.

2

What does an attacker or faulty component need to do to trigger it?

A malicious or buggy PPM firmware must return an out-of-range byte in the GET_CURRENT_CAM response, such as 0xFF. This causes an out-of-bounds read from uc->orig[] followed by an out-of-bounds write to uc->updated[]

3

Is user interaction required?

No. The UCSI core issues the GET_CURRENT_CAM command without userspace action, so the invalid firmware response can trigger the condition automatically.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203