<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-05T12:12:02.231310+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2024-57952</id>
    <title>CVE-2024-57952 — Revert "libfs: fix infinite directory reads for offset dir"</title>
    <updated>2026-10-05T12:12:02.233860+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>Revert "libfs: fix infinite directory reads for offset dir"</p>
<p>The current directory offset allocator (based on mtree_alloc_cyclic)
stores the next offset value to return in octx-&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.</p>
<p>Yu Kuai &lt;yukuai3@huawei.com&gt; reports that, after commit 64a7ce76fb90
("libfs: fix infinite directory reads for offset dir"), if a
directory's offset allocator wraps, existing entries are no longer
visible via readdir/getdents because offset_readdir() stops listing
entries once an entry's offset is larger than octx-&gt;next_offset.
These entries vanish persistently -- they can be looked up, but will
never again appear in readdir(3) output.</p>
<p>The reason for this is that the commit treats directory offsets as
monotonically increasing integer values rather than opaque cookies,
and introduces this comparison:</p>
<p>if (dentry2offset(dentry) &gt;= last_index) {</p>
<p>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.</p>
<p>On 32-bit platforms, however, LONG_MAX is 2^31 - 1. The allocator
can wrap after only a few weeks (at worst).</p>
<p>Revert commit 64a7ce76fb90 ("libfs: fix infinite directory reads for
offset dir") t…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2024-57952"/>
  </entry>
</feed>
