<?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://vulnerability.circl.lu</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>Sun, 04 Oct 2026 15:27:24 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-57952 — Revert "libfs: fix infinite directory reads for offset dir"</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-57952</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;Revert &amp;#34;libfs: fix infinite directory reads for offset dir&amp;#34;&lt;/p&gt;
&lt;p&gt;The current directory offset allocator (based on mtree_alloc_cyclic)
stores the next offset value to return in octx-&amp;gt;next_offset. This
mechanism typically returns values that increase monotonically over
time. Eventually, though, the newly allocated offset value wraps
back to a low number (say, 2) which is smaller than other already-
allocated offset values.&lt;/p&gt;
&lt;p&gt;Yu Kuai &amp;lt;yukuai3@huawei.com&amp;gt; reports that, after commit 64a7ce76fb90
(&amp;#34;libfs: fix infinite directory reads for offset dir&amp;#34;), if a
directory&amp;#39;s offset allocator wraps, existing entries are no longer
visible via readdir/getdents because offset_readdir() stops listing
entries once an entry&amp;#39;s offset is larger than octx-&amp;gt;next_offset.
These entries vanish persistently -- they can be looked up, but will
never again appear in readdir(3) output.&lt;/p&gt;
&lt;p&gt;The reason for this is that the commit treats directory offsets as
monotonically increasing integer values rather than opaque cookies,
and introduces this comparison:&lt;/p&gt;
&lt;p&gt;if (dentry2offset(dentry) &amp;gt;= last_index) {&lt;/p&gt;
&lt;p&gt;On 64-bit platforms, the directory offset value upper bound is
2^63 - 1. Directory offsets will monotonically increase for millions
of years without wrapping.&lt;/p&gt;
&lt;p&gt;On 32-bit platforms, however, LONG_MAX is 2^31 - 1. The allocator
can wrap after only a few weeks (at worst).&lt;/p&gt;
&lt;p&gt;Revert commit 64a7ce76fb90 (&amp;#34;libfs: fix infinite directory reads for
offset dir&amp;#34;) t…&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;Revert &amp;#34;libfs: fix infinite directory reads for offset dir&amp;#34;&lt;/p&gt;
&lt;p&gt;The current directory offset allocator (based on mtree_alloc_cyclic)
stores the next offset value to return in octx-&amp;gt;next_offset. This
mechanism typically returns values that increase monotonically over
time. Eventually, though, the newly allocated offset value wraps
back to a low number (say, 2) which is smaller than other already-
allocated offset values.&lt;/p&gt;
&lt;p&gt;Yu Kuai &amp;lt;yukuai3@huawei.com&amp;gt; reports that, after commit 64a7ce76fb90
(&amp;#34;libfs: fix infinite directory reads for offset dir&amp;#34;), if a
directory&amp;#39;s offset allocator wraps, existing entries are no longer
visible via readdir/getdents because offset_readdir() stops listing
entries once an entry&amp;#39;s offset is larger than octx-&amp;gt;next_offset.
These entries vanish persistently -- they can be looked up, but will
never again appear in readdir(3) output.&lt;/p&gt;
&lt;p&gt;The reason for this is that the commit treats directory offsets as
monotonically increasing integer values rather than opaque cookies,
and introduces this comparison:&lt;/p&gt;
&lt;p&gt;if (dentry2offset(dentry) &amp;gt;= last_index) {&lt;/p&gt;
&lt;p&gt;On 64-bit platforms, the directory offset value upper bound is
2^63 - 1. Directory offsets will monotonically increase for millions
of years without wrapping.&lt;/p&gt;
&lt;p&gt;On 32-bit platforms, however, LONG_MAX is 2^31 - 1. The allocator
can wrap after only a few weeks (at worst).&lt;/p&gt;
&lt;p&gt;Revert commit 64a7ce76fb90 (&amp;#34;libfs: fix infinite directory reads for
offset dir&amp;#34;) t…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-57952</guid>
    </item>
  </channel>
</rss>
