<?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:19:47 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-142976 — w1: remove the master's files before taking its locks</title>
      <link>https://db.gcve.eu/vuln/cve-2026-142976</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;w1: remove the master&amp;#39;s files before taking its locks&lt;/p&gt;
&lt;p&gt;__w1_remove_master_device() calls w1_destroy_master_attributes() with
both the mutex of the master and list_mutex held.  Removing the files
waits for the callbacks which are running, and nearly all of them take
one of these two locks:&lt;/p&gt;
&lt;p&gt;__w1_remove_master_device()           read() of .../w1_master_slaves
    mutex_lock(&amp;amp;dev-&amp;gt;mutex)               kernfs active reference
    mutex_lock(&amp;amp;dev-&amp;gt;list_mutex)          w1_master_attribute_show_slaves()
    w1_destroy_master_attributes()          mutex_lock(&amp;amp;md-&amp;gt;list_mutex)
      sysfs_remove_group()                    waits
        waits for the reference&lt;/p&gt;
&lt;p&gt;The files are readable for everybody, and a bus master goes away when, for
instance, a DS2490 USB adapter is unplugged.&lt;/p&gt;
&lt;p&gt;Remove the files first, before the locks are taken.  That has to be done
before the slaves are detached and not afterwards: as long as the files
exist, a write to w1_master_add could attach a new slave behind the back
of this function, which would then wait for the reference count of the
master for ever.  And it is done before the thread is stopped, because a
write to w1_master_search wakes the thread up.&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;w1: remove the master&amp;#39;s files before taking its locks&lt;/p&gt;
&lt;p&gt;__w1_remove_master_device() calls w1_destroy_master_attributes() with
both the mutex of the master and list_mutex held.  Removing the files
waits for the callbacks which are running, and nearly all of them take
one of these two locks:&lt;/p&gt;
&lt;p&gt;__w1_remove_master_device()           read() of .../w1_master_slaves
    mutex_lock(&amp;amp;dev-&amp;gt;mutex)               kernfs active reference
    mutex_lock(&amp;amp;dev-&amp;gt;list_mutex)          w1_master_attribute_show_slaves()
    w1_destroy_master_attributes()          mutex_lock(&amp;amp;md-&amp;gt;list_mutex)
      sysfs_remove_group()                    waits
        waits for the reference&lt;/p&gt;
&lt;p&gt;The files are readable for everybody, and a bus master goes away when, for
instance, a DS2490 USB adapter is unplugged.&lt;/p&gt;
&lt;p&gt;Remove the files first, before the locks are taken.  That has to be done
before the slaves are detached and not afterwards: as long as the files
exist, a write to w1_master_add could attach a new slave behind the back
of this function, which would then wait for the reference count of the
master for ever.  And it is done before the thread is stopped, because a
write to w1_master_search wakes the thread up.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-142976</guid>
    </item>
  </channel>
</rss>
