<?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:50:02 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-143057 — gpio: shared: fix a race in shared desc release path</title>
      <link>https://db.gcve.eu/vuln/cve-2026-143057</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;gpio: shared: fix a race in shared desc release path&lt;/p&gt;
&lt;p&gt;gpiod_shared_put() races with concurrent calls to
devm_gpiod_shared_get() like so:&lt;/p&gt;
&lt;p&gt;CPU 0 (unbind / probe failure)      CPU 1 (concurrent proxy probe)
==============================      ==============================
gpiod_shared_put()
  kref_put(&amp;amp;entry-&amp;gt;ref, ...)
    refcount_dec_and_test() // -&amp;gt; 0
                                    devm_gpiod_shared_get()
                                      mutex_lock(&amp;amp;entry-&amp;gt;lock);
                                      if (entry-&amp;gt;shared_desc) {
                                        kref_get(&amp;amp;entry-&amp;gt;ref); // on 0!
                                        shared_desc = entry-&amp;gt;shared_desc;
                                      }
                                      mutex_unlock(&amp;amp;entry-&amp;gt;lock);
    gpio_shared_release()
      mutex_lock(&amp;amp;entry-&amp;gt;lock);
      kfree(shared_desc);
      entry-&amp;gt;shared_desc = NULL;
      mutex_unlock(&amp;amp;entry-&amp;gt;lock);
                                      // uses freed shared_desc&lt;/p&gt;
&lt;p&gt;Because gpiod_shared_put() decrements entry-&amp;gt;ref without holding
entry-&amp;gt;lock and gpio_shared_release() only acquires entry-&amp;gt;lock after the
reference count has already reached zero, a concurrent call to
devm_gpiod_shared_get() can acquire entry-&amp;gt;lock in the intermediate window
and observe a non-NULL entry-&amp;gt;shared_desc. This can result in a
use-after-free and a double-free when the second consumer releases its
refere…&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;gpio: shared: fix a race in shared desc release path&lt;/p&gt;
&lt;p&gt;gpiod_shared_put() races with concurrent calls to
devm_gpiod_shared_get() like so:&lt;/p&gt;
&lt;p&gt;CPU 0 (unbind / probe failure)      CPU 1 (concurrent proxy probe)
==============================      ==============================
gpiod_shared_put()
  kref_put(&amp;amp;entry-&amp;gt;ref, ...)
    refcount_dec_and_test() // -&amp;gt; 0
                                    devm_gpiod_shared_get()
                                      mutex_lock(&amp;amp;entry-&amp;gt;lock);
                                      if (entry-&amp;gt;shared_desc) {
                                        kref_get(&amp;amp;entry-&amp;gt;ref); // on 0!
                                        shared_desc = entry-&amp;gt;shared_desc;
                                      }
                                      mutex_unlock(&amp;amp;entry-&amp;gt;lock);
    gpio_shared_release()
      mutex_lock(&amp;amp;entry-&amp;gt;lock);
      kfree(shared_desc);
      entry-&amp;gt;shared_desc = NULL;
      mutex_unlock(&amp;amp;entry-&amp;gt;lock);
                                      // uses freed shared_desc&lt;/p&gt;
&lt;p&gt;Because gpiod_shared_put() decrements entry-&amp;gt;ref without holding
entry-&amp;gt;lock and gpio_shared_release() only acquires entry-&amp;gt;lock after the
reference count has already reached zero, a concurrent call to
devm_gpiod_shared_get() can acquire entry-&amp;gt;lock in the intermediate window
and observe a non-NULL entry-&amp;gt;shared_desc. This can result in a
use-after-free and a double-free when the second consumer releases its
refere…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-143057</guid>
    </item>
  </channel>
</rss>
