<?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>Tue, 29 Sep 2026 05:35:29 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-64567 — btrfs: reject free space cache with more entries than pages</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-64567</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;btrfs: reject free space cache with more entries than pages&lt;/p&gt;
&lt;p&gt;When loading a v1 free space cache, __load_free_space_cache() takes
num_entries and num_bitmaps straight from the on-disk
btrfs_free_space_header. That header is stored in the tree_root under a key
with type 0, which the tree-checker has no case for, so neither count is
validated before the load trusts it.&lt;/p&gt;
&lt;p&gt;The load loops num_entries times and maps the next page whenever the current
one runs out, going through io_ctl_check_crc() -&amp;gt; io_ctl_map_page(), which
does io_ctl-&amp;gt;pages[io_ctl-&amp;gt;index++]. But pages[] is allocated in
io_ctl_init() from the cache inode&amp;#39;s i_size, not from num_entries:&lt;/p&gt;
&lt;p&gt;num_pages = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE);
	io_ctl-&amp;gt;pages = kcalloc(num_pages, sizeof(struct page *), GFP_NOFS);&lt;/p&gt;
&lt;p&gt;So if num_entries claims more records than the pages can hold, io_ctl-&amp;gt;index
runs off the end of pages[]. The write side never hits this because
io_ctl_add_entry() and io_ctl_add_bitmap() both stop once
io_ctl-&amp;gt;index &amp;gt;= io_ctl-&amp;gt;num_pages; the read side just never had the same
check.&lt;/p&gt;
&lt;p&gt;To trigger it, take a clean cache (num_entries = &amp;lt;N&amp;gt; here), set num_entries
in the header to 0x10000, and fix up the leaf checksum so it still passes
the tree-checker. The cache inode has i_size = 65536, so num_pages is 16 and
pages[] is a 16-pointer (kmalloc-128) array. The load now tries to read
65536 entries, io_ctl-&amp;gt;index walks up to 16, and pages[16] is…&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;btrfs: reject free space cache with more entries than pages&lt;/p&gt;
&lt;p&gt;When loading a v1 free space cache, __load_free_space_cache() takes
num_entries and num_bitmaps straight from the on-disk
btrfs_free_space_header. That header is stored in the tree_root under a key
with type 0, which the tree-checker has no case for, so neither count is
validated before the load trusts it.&lt;/p&gt;
&lt;p&gt;The load loops num_entries times and maps the next page whenever the current
one runs out, going through io_ctl_check_crc() -&amp;gt; io_ctl_map_page(), which
does io_ctl-&amp;gt;pages[io_ctl-&amp;gt;index++]. But pages[] is allocated in
io_ctl_init() from the cache inode&amp;#39;s i_size, not from num_entries:&lt;/p&gt;
&lt;p&gt;num_pages = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE);
	io_ctl-&amp;gt;pages = kcalloc(num_pages, sizeof(struct page *), GFP_NOFS);&lt;/p&gt;
&lt;p&gt;So if num_entries claims more records than the pages can hold, io_ctl-&amp;gt;index
runs off the end of pages[]. The write side never hits this because
io_ctl_add_entry() and io_ctl_add_bitmap() both stop once
io_ctl-&amp;gt;index &amp;gt;= io_ctl-&amp;gt;num_pages; the read side just never had the same
check.&lt;/p&gt;
&lt;p&gt;To trigger it, take a clean cache (num_entries = &amp;lt;N&amp;gt; here), set num_entries
in the header to 0x10000, and fix up the leaf checksum so it still passes
the tree-checker. The cache inode has i_size = 65536, so num_pages is 16 and
pages[] is a 16-pointer (kmalloc-128) array. The load now tries to read
65536 entries, io_ctl-&amp;gt;index walks up to 16, and pages[16] is…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-64567</guid>
    </item>
  </channel>
</rss>
