<?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-09-29T10:45:34.144092+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-2026-89490</id>
    <title>CVE-2026-89490 — ocfs2: fix readdir position truncation on 32-bit kernels</title>
    <updated>2026-09-29T10:45:34.147270+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>ocfs2: fix readdir position truncation on 32-bit kernels</p>
<p>In ocfs2_dir_foreach_blk_el(), the directory cookie position is
rebuilt with</p>
<p>ctx-&gt;pos = (ctx-&gt;pos &amp; ~(sb-&gt;s_blocksize - 1)) | offset;</p>
<p>`ctx-&gt;pos` is loff_t (signed 64-bit), while `sb-&gt;s_blocksize` is
unsigned long.  On 32-bit kernels unsigned long is 32-bit, so the mask</p>
<p>~(sb-&gt;s_blocksize - 1)</p>
<p>is computed as a 32-bit unsigned value (e.g. 0xfffff000 for a 4 KiB
block size).  In the AND expression with the 64-bit `ctx-&gt;pos`, that
unsigned operand is zero-extended to 64 bits per the usual arithmetic
conversions, yielding 0x00000000fffff000.  The high 32 bits of
`ctx-&gt;pos` are silently cleared, even though directory size is
allowed to exceed 4 GiB.</p>
<p>When readdir() crosses the 4 GiB boundary on a 32-bit kernel the
position is reset back into the first 4 GiB block, making the
re-validation path re-enumerate already-returned dirents indefinitely.</p>
<p>This is ocfs2_dir_foreach_blk_el(), the extent-list readdir path taken
for all non-inline directories, so a directory large enough to cross
4 GiB reaches it.</p>
<p>This is the same class of bug that commit 3dce5bb82c97 ("exfat: Fix
bitwise operation having different size") fixed in exfat, and the
fix mirrors the equivalent ext4 fix in this series.  Cast the operand
to loff_t so the mask is 64-bit before the AND:</p>
<p>ctx-&gt;pos = (ctx-&gt;pos &amp; ~((loff_t)sb-&gt;s_blocksize - 1)) | offset;</p>
<p>64-bit kernels are unaffected.</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-89490"/>
  </entry>
</feed>
