<?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-05T12:25:31.388869+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-143246</id>
    <title>CVE-2026-143246 — gpiolib: fix GPIO descriptor leak in gpiod_get_array()</title>
    <updated>2026-12-05T12:25:31.390843+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>gpiolib: fix GPIO descriptor leak in gpiod_get_array()</p>
<p>In gpiod_get_array(), descs-&gt;ndescs is used as the loop induction
variable and is only incremented at the end of each iteration. When
krealloc() fails on the first iteration (when index is 0),
descs-&gt;desc[0] has already been acquired via gpiod_get_index(), but
descs-&gt;ndescs is still 0. Consequently, gpiod_put_array() frees descs
without releasing descs-&gt;desc[0], leaking the descriptor.</p>
<p>Fix this by using a dedicated loop induction variable and incrementing
descs-&gt;ndescs immediately upon storing the retrieved descriptor.
Additionally, since the fast-path array_info setup only executes for the
first element (index 0), simplify the bitmap_set() calls to start at bit
0 for count bits instead of calculating offsets from the loop index.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-143246"/>
  </entry>
</feed>
