<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 04 Dec 2026 19:00:16 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-138819 — serial: 8250_exar: store the GPIO platform device in struct exar8250</title>
      <link>https://db.gcve.eu/vuln/cve-2026-138819</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;serial: 8250_exar: store the GPIO platform device in struct exar8250&lt;/p&gt;
&lt;p&gt;The GPIO platform device is registered via platform-&amp;gt;register_gpio()
when port 0 is being set up. It is stored to port-&amp;gt;port.private_data of
the on-stack uart template (and from there it is copied into every
registered port). pci_xr17v35x_exit() then fetches it back by
serial8250_get_port(priv-&amp;gt;line[0]).&lt;/p&gt;
&lt;p&gt;But port 0 does not have to exist at that point. If
serial8250_register_8250_port() fails for port 0, priv-&amp;gt;line[0] holds a
negative error code. The probe still succeeds (it only breaks the loop),
so on unbind, priv-&amp;gt;line[0] (a negative value) is passed to
serial8250_get_port(). The GPIO device is never unregistered and a
bogus port is accessed.&lt;/p&gt;
&lt;p&gt;The same problem would also occur after the planned conversion of
serial8250_register_8250_port() to return a uart port instead of a
line. As Sashiko pointed out in that case:
  If board-&amp;gt;setup() fails for the first port (i=0) in exar_pci_probe(),
  priv-&amp;gt;uport[0] remains NULL. If serial8250_register_8250_port() fails,
  it returns an ERR_PTR. In either case, the loop breaks and probe
  returns success. When the device is later unbound,
  pci_xr17v35x_exit() unconditionally passes priv-&amp;gt;uport[0] to
  platform-&amp;gt;unregister_gpio(), which will dereference it without
  checking for validity.&lt;/p&gt;
&lt;p&gt;The GPIO device belongs to the PCI device, not to any particular port.
So store it in a new struct exar8250::…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;serial: 8250_exar: store the GPIO platform device in struct exar8250&lt;/p&gt;
&lt;p&gt;The GPIO platform device is registered via platform-&amp;gt;register_gpio()
when port 0 is being set up. It is stored to port-&amp;gt;port.private_data of
the on-stack uart template (and from there it is copied into every
registered port). pci_xr17v35x_exit() then fetches it back by
serial8250_get_port(priv-&amp;gt;line[0]).&lt;/p&gt;
&lt;p&gt;But port 0 does not have to exist at that point. If
serial8250_register_8250_port() fails for port 0, priv-&amp;gt;line[0] holds a
negative error code. The probe still succeeds (it only breaks the loop),
so on unbind, priv-&amp;gt;line[0] (a negative value) is passed to
serial8250_get_port(). The GPIO device is never unregistered and a
bogus port is accessed.&lt;/p&gt;
&lt;p&gt;The same problem would also occur after the planned conversion of
serial8250_register_8250_port() to return a uart port instead of a
line. As Sashiko pointed out in that case:
  If board-&amp;gt;setup() fails for the first port (i=0) in exar_pci_probe(),
  priv-&amp;gt;uport[0] remains NULL. If serial8250_register_8250_port() fails,
  it returns an ERR_PTR. In either case, the loop breaks and probe
  returns success. When the device is later unbound,
  pci_xr17v35x_exit() unconditionally passes priv-&amp;gt;uport[0] to
  platform-&amp;gt;unregister_gpio(), which will dereference it without
  checking for validity.&lt;/p&gt;
&lt;p&gt;The GPIO device belongs to the PCI device, not to any particular port.
So store it in a new struct exar8250::…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-138819</guid>
    </item>
  </channel>
</rss>
