<?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-29T04:49:54.225167+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-64567</id>
    <title>CVE-2026-64567 — btrfs: reject free space cache with more entries than pages</title>
    <updated>2026-09-29T04:49:54.238335+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>btrfs: reject free space cache with more entries than pages</p>
<p>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.</p>
<p>The load loops num_entries times and maps the next page whenever the current
one runs out, going through io_ctl_check_crc() -&gt; io_ctl_map_page(), which
does io_ctl-&gt;pages[io_ctl-&gt;index++]. But pages[] is allocated in
io_ctl_init() from the cache inode's i_size, not from num_entries:</p>
<p>num_pages = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE);
	io_ctl-&gt;pages = kcalloc(num_pages, sizeof(struct page *), GFP_NOFS);</p>
<p>So if num_entries claims more records than the pages can hold, io_ctl-&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-&gt;index &gt;= io_ctl-&gt;num_pages; the read side just never had the same
check.</p>
<p>To trigger it, take a clean cache (num_entries = &lt;N&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-&gt;index walks up to 16, and pages[16] is…</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-64567"/>
  </entry>
</feed>
