<?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:22:17 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-143261 — libfs: walk offset directories in offset order</title>
      <link>https://db.gcve.eu/vuln/cve-2026-143261</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;libfs: walk offset directories in offset order&lt;/p&gt;
&lt;p&gt;offset_iterate_dir() walks d_children from the head and only uses the
maple tree to map ctx-&amp;gt;pos back to a dentry when a getdents64() call
resumes. offset_dir_lookup() finds the entry at ctx-&amp;gt;pos, or the one
with the next lower offset if it is gone, and the list walk continues
from there.&lt;/p&gt;
&lt;p&gt;That only works if list order and offset order agree and quite often
they don&amp;#39;t. A rename over an existing name gives the moved dentry the
offset of the name it replaced but __d_move() puts it at the head of
d_children. RENAME_EXCHANGE does the same to both dentries. And once
the cyclic offset allocator wraps new entries get low offsets at the
head of the list.&lt;/p&gt;
&lt;p&gt;So if the entry at ctx-&amp;gt;pos is unlinked between two getdents64() calls
we resume at the entry with the next lower offset and that one can sit
anywhere in the list:&lt;/p&gt;
&lt;p&gt;(1) If it sits further down the list everything in between is skipped.
    Create y, t, a, b and rename b over t. The list is now t(4) a(5)
    y(3). Stop the listing at t and unlink t. The next call resumes at
    y and a is never returned although nobody touched it.&lt;/p&gt;
&lt;p&gt;(2) If there is no lower entry we restart at the head and return the
    whole directory again. Nickolai reported this for the simple case
    of unlinking the oldest entry while a listing is about to reach it.
    Ending the walk there instead turns this into (1): create a, b, c,
    renam…&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;libfs: walk offset directories in offset order&lt;/p&gt;
&lt;p&gt;offset_iterate_dir() walks d_children from the head and only uses the
maple tree to map ctx-&amp;gt;pos back to a dentry when a getdents64() call
resumes. offset_dir_lookup() finds the entry at ctx-&amp;gt;pos, or the one
with the next lower offset if it is gone, and the list walk continues
from there.&lt;/p&gt;
&lt;p&gt;That only works if list order and offset order agree and quite often
they don&amp;#39;t. A rename over an existing name gives the moved dentry the
offset of the name it replaced but __d_move() puts it at the head of
d_children. RENAME_EXCHANGE does the same to both dentries. And once
the cyclic offset allocator wraps new entries get low offsets at the
head of the list.&lt;/p&gt;
&lt;p&gt;So if the entry at ctx-&amp;gt;pos is unlinked between two getdents64() calls
we resume at the entry with the next lower offset and that one can sit
anywhere in the list:&lt;/p&gt;
&lt;p&gt;(1) If it sits further down the list everything in between is skipped.
    Create y, t, a, b and rename b over t. The list is now t(4) a(5)
    y(3). Stop the listing at t and unlink t. The next call resumes at
    y and a is never returned although nobody touched it.&lt;/p&gt;
&lt;p&gt;(2) If there is no lower entry we restart at the head and return the
    whole directory again. Nickolai reported this for the simple case
    of unlinking the oldest entry while a listing is about to reach it.
    Ending the walk there instead turns this into (1): create a, b, c,
    renam…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-143261</guid>
    </item>
  </channel>
</rss>
