<?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:21:34 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-142890 — namei: don't assert S_ISDIR on a stale rcu-walk inode</title>
      <link>https://db.gcve.eu/vuln/cve-2026-142890</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;namei: don&amp;#39;t assert S_ISDIR on a stale rcu-walk inode&lt;/p&gt;
&lt;p&gt;lookup_inode_permission_may_exec() asserts that it is only ever handed a
directory, on the grounds that link_path_walk() has already checked
d_can_lookup().  In rcu-walk that does not follow.  step_into() samples
-&amp;gt;d_inode and validates it against -&amp;gt;d_seq, but link_path_walk() loads
-&amp;gt;d_flags again afterwards, and nothing orders that load against changes
of the dentry:&lt;/p&gt;
&lt;p&gt;CPU0 (rcu-walk of &amp;#34;x/y&amp;#34;)              CPU1
  step_into(x)
    inode = x-&amp;gt;d_inode   // regular file
    read_seqcount_retry(&amp;amp;x-&amp;gt;d_seq) == 0
    nd-&amp;gt;inode = inode
                                        unlink(&amp;#34;x&amp;#34;)
                                          d_delete()  // x goes negative
                                        mkdir(&amp;#34;x&amp;#34;)
                                          d_instantiate()  // same dentry
  d_can_lookup(x)        // true now
  may_lookup()
    VFS_BUG_ON_INODE(!S_ISDIR(nd-&amp;gt;inode-&amp;gt;i_mode))&lt;/p&gt;
&lt;p&gt;With CONFIG_PREEMPT_RCU the walker can be preempted in that window, so it
is not limited to a few instructions.  mkdir() only gets the same dentry
back if the filesystem keeps negative dentries around.  tmpfs doesn&amp;#39;t,
ext4 does.&lt;/p&gt;
&lt;p&gt;Apart from the assertion the stale inode is harmless, and has been there
since before the assertion was added: nd-&amp;gt;seq no longer matches x-&amp;gt;d_seq,
so lookup_fast(), follow_dotdot_rcu() and try_to_unlazy() all fail with
-ECHILD and the walk is redone in ref…&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;namei: don&amp;#39;t assert S_ISDIR on a stale rcu-walk inode&lt;/p&gt;
&lt;p&gt;lookup_inode_permission_may_exec() asserts that it is only ever handed a
directory, on the grounds that link_path_walk() has already checked
d_can_lookup().  In rcu-walk that does not follow.  step_into() samples
-&amp;gt;d_inode and validates it against -&amp;gt;d_seq, but link_path_walk() loads
-&amp;gt;d_flags again afterwards, and nothing orders that load against changes
of the dentry:&lt;/p&gt;
&lt;p&gt;CPU0 (rcu-walk of &amp;#34;x/y&amp;#34;)              CPU1
  step_into(x)
    inode = x-&amp;gt;d_inode   // regular file
    read_seqcount_retry(&amp;amp;x-&amp;gt;d_seq) == 0
    nd-&amp;gt;inode = inode
                                        unlink(&amp;#34;x&amp;#34;)
                                          d_delete()  // x goes negative
                                        mkdir(&amp;#34;x&amp;#34;)
                                          d_instantiate()  // same dentry
  d_can_lookup(x)        // true now
  may_lookup()
    VFS_BUG_ON_INODE(!S_ISDIR(nd-&amp;gt;inode-&amp;gt;i_mode))&lt;/p&gt;
&lt;p&gt;With CONFIG_PREEMPT_RCU the walker can be preempted in that window, so it
is not limited to a few instructions.  mkdir() only gets the same dentry
back if the filesystem keeps negative dentries around.  tmpfs doesn&amp;#39;t,
ext4 does.&lt;/p&gt;
&lt;p&gt;Apart from the assertion the stale inode is harmless, and has been there
since before the assertion was added: nd-&amp;gt;seq no longer matches x-&amp;gt;d_seq,
so lookup_fast(), follow_dotdot_rcu() and try_to_unlazy() all fail with
-ECHILD and the walk is redone in ref…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-142890</guid>
    </item>
  </channel>
</rss>
