Out-of-bounds read and write in Linux kernel UCSI CCG driver
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Partial Red Hat: 4 without a fix
No CVSS vector from any source. Fix status from CNA and Red Hat.
Summary
The Linux kernel from 5.6 is affected. The UCSI CCG driver uses a byte supplied by the PPM firmware as an array index when it rewrites the GET_CURRENT_CAM response, without checking its range. A malicious or buggy PPM that reports an index of UCSI_MAX_ALTMODES or larger, such as 0xFF, causes an out-of-bounds read followed by an out-of-bounds write. The UCSI core issues this command on its own, so no userspace action is needed.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
In the Linux kernel, the following vulnerability has been resolved: usb: typec: ucsi: ccg: Validate altmode index in GET_CURRENT_CAM response When the PPM reports more than one DisplayPort alternate mode for a connector, ucsi_ccg_update_altmodes() merges them into a single entry in uc->updated[] and sets uc->has_multiple_dp. In that case, ucsi_ccg_update_get_current_cam_cmd() rewrites the response of the GET_CURRENT_CAM 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 linked_idx read from that entry as the translated index into uc->updated[]. Both arrays have UCSI_MAX_ALTMODES entries, but neither index is checked against that size. If a malicious or buggy PPM reports a value of UCSI_MAX_ALTMODES or larger, e.g. 0xFF, uc->orig[cam].linked_idx reads over the end of uc->orig[]. The byte read from there is then used as the index for writing cam into uc->updated[new_cam].active_idx, 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 GET_CURRENT_CAM 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 linked_idx 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. ucsi_sync_control_common() 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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 5.6 and later | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.63, 7.3.4, 7.4-rc1 | Patch available | CNA |
- Linux VendorLinux Affected 5.6 and later Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.63, 7.3.4, 7.4-rc1 Patch available CNA
Remediation
Fixed versions are Linux kernel 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.63, 7.3.4 and 7.4-rc1. Red Hat Enterprise Linux 9 and 10 and Red Hat OpenShift Container Platform 4 and 5 are affected, and Red Hat's plan for them is none available.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.118, 6.18.63, 7.3.4, 7.4-rc1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet: Fix deferred |
Not affected: 4 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat OpenShift Container Platform 4
Timeline
- 2026-11-30 Threatist record created from CVE-2026-138843
- 2026-11-30 Alias added: GHSA-ggfj-r73j-jvqj
- 2026-12-01 Affected versions changed · Red Hat
- 2026-12-01 CVSS score added · Red Hat
References
Other 8
- https://git.kernel.org/stable/c/24376aa9ad111077bd018796ba22848db52db920
- https://git.kernel.org/stable/c/9b73d02a9d5d56efa4528622370db1e364628b24
- https://git.kernel.org/stable/c/b46052b769919a02b1be360a93ff9379b1a5fd49
- https://git.kernel.org/stable/c/906bd29c833c0c21835da69044b85b9dce723f80
- https://git.kernel.org/stable/c/7eae4d201b568ee3a6dc5f143b5f5ee9563c3d60
- https://git.kernel.org/stable/c/5d254d1e59da5b4bb05025924220faabb255b48f
- https://git.kernel.org/stable/c/8e3cb6de2c5108cad19541055b60fc4400f97dde
- https://git.kernel.org/stable/c/02ee864e8d2142c5648998944c3306ea6a763c26
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-138843 · CVE Program
- CVE-2026-138843 · NVD
- GHSA-ggfj-r73j-jvqj · GitHub Advisory Database · CC BY 4.0
- CVE-2026-138843 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences