<?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>Wed, 30 Sep 2026 12:06:01 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-89493 — ocfs2: validate rl_used against rl_count in refcount block validator</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-89493</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;ocfs2: validate rl_used against rl_count in refcount block validator&lt;/p&gt;
&lt;p&gt;ocfs2_find_refcount_rec_in_rl() walks the on-disk refcount record array
with:&lt;/p&gt;
&lt;p&gt;for (; i &amp;lt; le16_to_cpu(rb-&amp;gt;rf_records.rl_used); i++) {
		rec = &amp;amp;rb-&amp;gt;rf_records.rl_recs[i];
		...&lt;/p&gt;
&lt;p&gt;rl_recs[] lives in a single metadata block (4096 bytes on the common
configuration), so its real capacity is fixed by
ocfs2_refcount_recs_per_rb(sb) (247 records for a 4K block with the
16-byte ocfs2_refcount_rec).  rl_used and rl_count are both read directly
off disk by ocfs2_validate_refcount_block() and are never checked against
that capacity, nor against each other, before any refcount/reflink/CoW
operation walks the array.&lt;/p&gt;
&lt;p&gt;A crafted (or corrupted) refcount block with rl_used == 0xffff makes the
loop above walk far past the end of the block, dereferencing rl_recs[i]
for i up to 65534.  The resulting index is then handed to the sibling
ocfs2_insert_refcount_rec(), whose insert-shift does:&lt;/p&gt;
&lt;p&gt;if (index &amp;lt; le16_to_cpu(rf_list-&amp;gt;rl_used))
		memmove(&amp;amp;rf_list-&amp;gt;rl_recs[index + 1],
			&amp;amp;rf_list-&amp;gt;rl_recs[index],
			(le16_to_cpu(rf_list-&amp;gt;rl_used) - index) *
			 sizeof(struct ocfs2_refcount_rec));&lt;/p&gt;
&lt;p&gt;i.e.  a memmove() of up to (0xffff - index) * 16 bytes (~1 MiB) from an
offset already past the block.  This is reachable from an ordinary reflink
(FICLONE) against a crafted/corrupted ocfs2 image: attaching an extent
whose cpos sorts past every real record in the leaf forces the…&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;ocfs2: validate rl_used against rl_count in refcount block validator&lt;/p&gt;
&lt;p&gt;ocfs2_find_refcount_rec_in_rl() walks the on-disk refcount record array
with:&lt;/p&gt;
&lt;p&gt;for (; i &amp;lt; le16_to_cpu(rb-&amp;gt;rf_records.rl_used); i++) {
		rec = &amp;amp;rb-&amp;gt;rf_records.rl_recs[i];
		...&lt;/p&gt;
&lt;p&gt;rl_recs[] lives in a single metadata block (4096 bytes on the common
configuration), so its real capacity is fixed by
ocfs2_refcount_recs_per_rb(sb) (247 records for a 4K block with the
16-byte ocfs2_refcount_rec).  rl_used and rl_count are both read directly
off disk by ocfs2_validate_refcount_block() and are never checked against
that capacity, nor against each other, before any refcount/reflink/CoW
operation walks the array.&lt;/p&gt;
&lt;p&gt;A crafted (or corrupted) refcount block with rl_used == 0xffff makes the
loop above walk far past the end of the block, dereferencing rl_recs[i]
for i up to 65534.  The resulting index is then handed to the sibling
ocfs2_insert_refcount_rec(), whose insert-shift does:&lt;/p&gt;
&lt;p&gt;if (index &amp;lt; le16_to_cpu(rf_list-&amp;gt;rl_used))
		memmove(&amp;amp;rf_list-&amp;gt;rl_recs[index + 1],
			&amp;amp;rf_list-&amp;gt;rl_recs[index],
			(le16_to_cpu(rf_list-&amp;gt;rl_used) - index) *
			 sizeof(struct ocfs2_refcount_rec));&lt;/p&gt;
&lt;p&gt;i.e.  a memmove() of up to (0xffff - index) * 16 bytes (~1 MiB) from an
offset already past the block.  This is reachable from an ordinary reflink
(FICLONE) against a crafted/corrupted ocfs2 image: attaching an extent
whose cpos sorts past every real record in the leaf forces the…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-89493</guid>
    </item>
  </channel>
</rss>
