<?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 16:39:33 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-40100 — btrfs: do not assert we found block group item when creating free space tree</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-40100</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: do not assert we found block group item when creating free space tree&lt;/p&gt;
&lt;p&gt;Currently, when building a free space tree at populate_free_space_tree(),
if we are not using the block group tree feature, we always expect to find
block group items (either extent items or a block group item with key type
BTRFS_BLOCK_GROUP_ITEM_KEY) when we search the extent tree with
btrfs_search_slot_for_read(), so we assert that we found an item. However
this expectation is wrong since we can have a new block group created in
the current transaction which is still empty and for which we still have
not added the block group&amp;#39;s item to the extent tree, in which case we do
not have any items in the extent tree associated to the block group.&lt;/p&gt;
&lt;p&gt;The insertion of a new block group&amp;#39;s block group item in the extent tree
happens at btrfs_create_pending_block_groups() when it calls the helper
insert_block_group_item(). This typically is done when a transaction
handle is released, committed or when running delayed refs (either as
part of a transaction commit or when serving tickets for space reservation
if we are low on free space).&lt;/p&gt;
&lt;p&gt;So remove the assertion at populate_free_space_tree() even when the block
group tree feature is not enabled and update the comment to mention this
case.&lt;/p&gt;
&lt;p&gt;Syzbot reported this with the following stack trace:&lt;/p&gt;
&lt;p&gt;BTRFS info (device loop3 state M): rebuilding free space tree
  assertion failed: ret == 0 :: 0, in f…&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: do not assert we found block group item when creating free space tree&lt;/p&gt;
&lt;p&gt;Currently, when building a free space tree at populate_free_space_tree(),
if we are not using the block group tree feature, we always expect to find
block group items (either extent items or a block group item with key type
BTRFS_BLOCK_GROUP_ITEM_KEY) when we search the extent tree with
btrfs_search_slot_for_read(), so we assert that we found an item. However
this expectation is wrong since we can have a new block group created in
the current transaction which is still empty and for which we still have
not added the block group&amp;#39;s item to the extent tree, in which case we do
not have any items in the extent tree associated to the block group.&lt;/p&gt;
&lt;p&gt;The insertion of a new block group&amp;#39;s block group item in the extent tree
happens at btrfs_create_pending_block_groups() when it calls the helper
insert_block_group_item(). This typically is done when a transaction
handle is released, committed or when running delayed refs (either as
part of a transaction commit or when serving tickets for space reservation
if we are low on free space).&lt;/p&gt;
&lt;p&gt;So remove the assertion at populate_free_space_tree() even when the block
group tree feature is not enabled and update the comment to mention this
case.&lt;/p&gt;
&lt;p&gt;Syzbot reported this with the following stack trace:&lt;/p&gt;
&lt;p&gt;BTRFS info (device loop3 state M): rebuilding free space tree
  assertion failed: ret == 0 :: 0, in f…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-40100</guid>
    </item>
  </channel>
</rss>
