Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 5.15.226 | — |
| Linux | Linux | 170a6726d0e266f2c8f306e3d61715c32f4ee41e <906bd29c833c0c21835da69044b85b9dce723f80 | — |
| Linux | Linux | 170a6726d0e266f2c8f306e3d61715c32f4ee41e <24376aa9ad111077bd018796ba22848db52db920 | — |
| Linux | Linux | patch: 6.12.118 | — |
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | 170a6726d0e266f2c8f306e3d61715c32f4ee41e <9b73d02a9d5d56efa4528622370db1e364628b24 | — |
| Linux | Linux | 170a6726d0e266f2c8f306e3d61715c32f4ee41e <02ee864e8d2142c5648998944c3306ea6a763c26 | — |
| Linux | Linux | 5.6 | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
| Linux | Linux | patch: 5.10.275 | — |
| Linux | Linux | 170a6726d0e266f2c8f306e3d61715c32f4ee41e <8e3cb6de2c5108cad19541055b60fc4400f97dde | — |
| Linux | Linux | 170a6726d0e266f2c8f306e3d61715c32f4ee41e <5d254d1e59da5b4bb05025924220faabb255b48f | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | 170a6726d0e266f2c8f306e3d61715c32f4ee41e <b46052b769919a02b1be360a93ff9379b1a5fd49 | — |
| Linux | Linux | 170a6726d0e266f2c8f306e3d61715c32f4ee41e <7eae4d201b568ee3a6dc5f143b5f5ee9563c3d60 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.118-1 | — |
| Debian 12 | linux | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- 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