<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T19:27:03.479863+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-138843</id>
    <title>CVE-2026-138843 — usb: typec: ucsi: ccg: Validate altmode index in GET_CURRENT_CAM response</title>
    <updated>2026-12-04T19:27:03.481733+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>usb: typec: ucsi: ccg: Validate altmode index in GET_CURRENT_CAM response</p>
<p>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-&gt;updated[] and sets uc-&gt;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.</p>
<p>The function uses this byte directly as an index into uc-&gt;orig[], and
then uses the linked_idx read from that entry as the translated index
into uc-&gt;updated[]. Both arrays have UCSI_MAX_ALTMODES entries, but
neither index is checked against that size.</p>
<p>If a malicious or buggy PPM reports a value of UCSI_MAX_ALTMODES or
larger, e.g. 0xFF, uc-&gt;orig[cam].linked_idx reads over the end of
uc-&gt;orig[]. The byte read from there is then used as the index for
writing cam into uc-&gt;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.</p>
<p>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-&gt;updated[] is alw…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-138843"/>
  </entry>
</feed>
