<?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>Sat, 05 Dec 2026 12:44:06 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-143246 — gpiolib: fix GPIO descriptor leak in gpiod_get_array()</title>
      <link>https://db.gcve.eu/vuln/cve-2026-143246</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;gpiolib: fix GPIO descriptor leak in gpiod_get_array()&lt;/p&gt;
&lt;p&gt;In gpiod_get_array(), descs-&amp;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-&amp;gt;desc[0] has already been acquired via gpiod_get_index(), but
descs-&amp;gt;ndescs is still 0. Consequently, gpiod_put_array() frees descs
without releasing descs-&amp;gt;desc[0], leaking the descriptor.&lt;/p&gt;
&lt;p&gt;Fix this by using a dedicated loop induction variable and incrementing
descs-&amp;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.&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;gpiolib: fix GPIO descriptor leak in gpiod_get_array()&lt;/p&gt;
&lt;p&gt;In gpiod_get_array(), descs-&amp;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-&amp;gt;desc[0] has already been acquired via gpiod_get_index(), but
descs-&amp;gt;ndescs is still 0. Consequently, gpiod_put_array() frees descs
without releasing descs-&amp;gt;desc[0], leaking the descriptor.&lt;/p&gt;
&lt;p&gt;Fix this by using a dedicated loop induction variable and incrementing
descs-&amp;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-143246</guid>
    </item>
  </channel>
</rss>
