<?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, 24 Oct 2026 06:39:03 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-98981 — namespace: unhash a dentry before detaching the mounts on it</title>
      <link>https://db.gcve.eu/vuln/cve-2026-98981</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;namespace: unhash a dentry before detaching the mounts on it&lt;/p&gt;
&lt;p&gt;unlink(), rmdir() and rename() remove the entry from the filesystem,
call detach_mounts() on the entry with the inode locked and then call
d_delete() once the inode is unlocked.&lt;/p&gt;
&lt;p&gt;The thing is that between detach_mounts() and d_delete() the dentry is
still hashed and positive. But after detach_mounts() nothing covers the
dentry anymore. A lookup that finds this dentry in the dcache can
uncover what the mounts hid.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s a problem when unlinking files or directories that are
mountpoints in other mount namespaces. Everybody who had the underlying
entry covered can race the detach_mount() call until d_delete() has run.&lt;/p&gt;
&lt;p&gt;The race window isn&amp;#39;t all that small. It encompasses namespace_unlock()
with a full synchronize_rcu_expedited() grace period and the
inode_unlock() of the entry.&lt;/p&gt;
&lt;p&gt;In my experiments three walkers that kept trying read an overmounted
file in 11938 of the 16140 unlinks that removed its mountpoint from a
bind mount of the filesystem within a minute.&lt;/p&gt;
&lt;p&gt;Fun fact, d_invalidate() has the same ordering problem but gets it
right. It unhashes the dentry first and detaches the mounts afterwards.
Let&amp;#39;s do the same in __detach_mounts():&lt;/p&gt;
&lt;p&gt;- A lookup that hasn&amp;#39;t found the dentry yet misses it in the dcache and
  waits for the directory lock that the caller holds until the name is
  gone for good.&lt;/p&gt;
&lt;p&gt;- A lockless lookup that found it already fails the…&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;namespace: unhash a dentry before detaching the mounts on it&lt;/p&gt;
&lt;p&gt;unlink(), rmdir() and rename() remove the entry from the filesystem,
call detach_mounts() on the entry with the inode locked and then call
d_delete() once the inode is unlocked.&lt;/p&gt;
&lt;p&gt;The thing is that between detach_mounts() and d_delete() the dentry is
still hashed and positive. But after detach_mounts() nothing covers the
dentry anymore. A lookup that finds this dentry in the dcache can
uncover what the mounts hid.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s a problem when unlinking files or directories that are
mountpoints in other mount namespaces. Everybody who had the underlying
entry covered can race the detach_mount() call until d_delete() has run.&lt;/p&gt;
&lt;p&gt;The race window isn&amp;#39;t all that small. It encompasses namespace_unlock()
with a full synchronize_rcu_expedited() grace period and the
inode_unlock() of the entry.&lt;/p&gt;
&lt;p&gt;In my experiments three walkers that kept trying read an overmounted
file in 11938 of the 16140 unlinks that removed its mountpoint from a
bind mount of the filesystem within a minute.&lt;/p&gt;
&lt;p&gt;Fun fact, d_invalidate() has the same ordering problem but gets it
right. It unhashes the dentry first and detaches the mounts afterwards.
Let&amp;#39;s do the same in __detach_mounts():&lt;/p&gt;
&lt;p&gt;- A lookup that hasn&amp;#39;t found the dentry yet misses it in the dcache and
  waits for the directory lock that the caller holds until the name is
  gone for good.&lt;/p&gt;
&lt;p&gt;- A lockless lookup that found it already fails the…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-98981</guid>
    </item>
  </channel>
</rss>
