In the Linux kernel, the following vulnerability has been resolved:
btrfs: do not assert we found block group item when creating free space tree
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's item to the extent tree, in which case we do not have any items in the extent tree associated to the block group.
The insertion of a new block group'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).
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.
Syzbot reported this with the following stack trace:
BTRFS info (device loop3 state M): rebuilding free space tree assertion failed: ret == 0 :: 0, in fs/btrfs/free-space-tree.c:1115 ------------[ cut here ]------------ kernel BUG at fs/btrfs/free-space-tree.c:1115! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 6352 Comm: syz.3.25 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 RIP: 0010:populate_free_space_tree+0x700/0x710 fs/btrfs/free-space-tree.c:1115 Code: ff ff e8 d3 (...) RSP: 0018:ffffc9000430f780 EFLAGS: 00010246 RAX: 0000000000000043 RBX: ffff88805b709630 RCX: fea61d0e2e79d000 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000430f8b0 R08: ffffc9000430f4a7 R09: 1ffff92000861e94 R10: dffffc0000000000 R11: fffff52000861e95 R12: 0000000000000001 R13: 1ffff92000861f00 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007f424d9fe6c0(0000) GS:ffff888125afc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd78ad212c0 CR3: 0000000076d68000 CR4: 00000000003526f0 Call Trace: <TASK> btrfs_rebuild_free_space_tree+0x1ba/0x6d0 fs/btrfs/free-space-tree.c:1364 btrfs_start_pre_rw_mount+0x128f/0x1bf0 fs/btrfs/disk-io.c:3062 btrfs_remount_rw fs/btrfs/super.c:1334 [inline] btrfs_reconfigure+0xaed/0x2160 fs/btrfs/super.c:1559 reconfigure_super+0x227/0x890 fs/super.c:1076 do_remount fs/namespace.c:3279 [inline] path_mount+0xd1a/0xfe0 fs/namespace.c:4027 do_mount fs/namespace.c:4048 [inline] __do_sys_mount fs/namespace.c:4236 [inline] __se_sys_mount+0x313/0x410 fs/namespace.c:4213 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f424e39066a Code: d8 64 89 02 (...) RSP: 002b:00007f424d9fde68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f424d9fdef0 RCX: 00007f424e39066a RDX: 0000200000000180 RSI: 0000200000000380 RDI: 0000000000000000 RBP: 0000200000000180 R08: 00007f424d9fdef0 R09: 0000000000000020 R10: 0000000000000020 R11: 0000000000000246 R12: 0000200000000380 R13: 00007f424d9fdeb0 R14: 0000000000000000 R15: 00002000000002c0 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]---
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon_linux_2023 | — | Upgrade bpftool-debuginfoUpgrade perf6.12Upgrade kernel6.12-libbpf-debuginfoUpgrade python3-perf-debuginfoUpgrade kernel-modules-extra-commonUpgrade kernel6.12-tools-debuginfoUpgrade perf-debuginfoUpgrade bpftool6.12-debuginfoUpgrade kernel6.12-libbpf-develUpgrade kernel-toolsUpgrade perfUpgrade bpftoolUpgrade kernel-debuginfo-common-aarch64Upgrade kernel6.12-headersUpgrade kernel-libbpf-debuginfoUpgrade kernel6.12-develUpgrade kernel-tools-debuginfoUpgrade kernel6.12-modules-extra-commonUpgrade kernel-debuginfoUpgrade python3-perfUpgrade kernel6.12-libbpfUpgrade python3-perf6.12Upgrade kernel6.12-debuginfoUpgrade kernel-libbpf-staticUpgrade bpftool6.12Upgrade kernel-develUpgrade kernel-libbpfUpgrade kernelUpgrade kernel-tools-develUpgrade kernel-modules-extraUpgrade python3-perf6.12-debuginfoUpgrade kernel6.12-tools-develUpgrade kernel6.12-modules-extraUpgrade kernel-debuginfo-common-x86_64Upgrade kernel6.12-debuginfo-common-aarch64Upgrade kernel6.12-toolsUpgrade kernel6.12-libbpf-staticUpgrade kernel6.12-debuginfo-common-x86_64Upgrade kernel-livepatch-6.12.55-74.119Upgrade perf6.12-debuginfoUpgrade kernel6.12Upgrade kernel-headersUpgrade kernel-livepatch-6.1.158-178.288Upgrade kernel-libbpf-devel | Dec 9, 2025 | Oct 30, 2025 |
| Debian | — | Upgrade linux-6.1Upgrade linux | Nov 13, 2025 | Nov 13, 2025 |
| Oracle_linux | — | Upgrade kernel-uek | Dec 11, 2025 | Oct 30, 2025 |
| Redhat_linux | — | No solution exists | Jul 17, 2026 | Oct 30, 2025 |
| Suse | — | Upgrade kernel-zfcpdumpUpgrade kernel-obs-buildUpgrade kernel-default-develUpgrade kernel-64kbUpgrade reiserfs-kmp-defaultUpgrade kernel-macrosUpgrade kernel-default-baseUpgrade kernel-default-extraUpgrade kernel-docsUpgrade kernel-defaultUpgrade kernel-symsUpgrade kernel-develUpgrade kernel-64kb-develUpgrade kernel-source | Dec 5, 2025 | Nov 11, 2025 |
| Ubuntu | — | Upgrade linux-image-oem-22.04aUpgrade linux-image-6.17.0-1007-oracleUpgrade linux-image-virtual-6.8Upgrade linux-image-ibm-classicUpgrade linux-image-6.8.0-1052-gcp-fipsUpgrade linux-image-azure-lts-24.04Upgrade linux-image-raspi-realtime-6.8Upgrade linux-image-nvidia-64k-hwe-22.04Upgrade linux-image-6.8.0-106-genericUpgrade linux-image-fipsUpgrade linux-image-6.8.0-1049-ibmUpgrade linux-image-gkeop-6.8Upgrade linux-image-generic-64k-6.17Upgrade linux-image-oracle-64k-6.17Upgrade linux-image-oracle-64k-6.8Upgrade linux-image-generic-lpaeUpgrade linux-image-6.8.0-1047-oracle-64kUpgrade linux-image-gcp-64kUpgrade linux-image-6.17.0-1007-aws-64kUpgrade linux-image-aws-fipsUpgrade linux-image-kvmUpgrade linux-image-oem-22.04dUpgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-gcp-6.17Upgrade linux-image-6.8.0-106-lowlatency-64kUpgrade linux-image-6.8.0-2040-raspi-realtimeUpgrade linux-image-oracle-64k-lts-24.04Upgrade linux-image-ibm-lts-24.04Upgrade linux-image-generic-6.8Upgrade linux-image-ibm-6.8Upgrade linux-image-gcp-64k-lts-24.04Upgrade linux-image-6.8.0-1049-nvidia-lowlatency-64kUpgrade linux-image-6.17.0-1007-oracle-64kUpgrade linux-image-nvidia-6.8Upgrade linux-image-gke-64k-6.8Upgrade linux-image-aws-6.8Upgrade linux-image-ibmUpgrade linux-image-gcp-lts-24.04Upgrade linux-image-gcp-64k-6.17Upgrade linux-image-azure-6.17Upgrade linux-image-6.17.0-1007-gcp-64kUpgrade linux-image-6.17.0-14-genericUpgrade linux-image-6.17.0-1007-gcpUpgrade linux-image-6.8.0-106-lowlatencyUpgrade linux-image-oem-6.17Upgrade linux-image-6.17.0-1007-awsUpgrade linux-image-azure-fipsUpgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-generic-64k-6.8Upgrade linux-image-lowlatencyUpgrade linux-image-6.8.0-1050-raspiUpgrade linux-image-nvidia-lowlatencyUpgrade linux-image-awsUpgrade linux-image-lowlatency-6.8Upgrade linux-image-aws-fips-6.8Upgrade linux-image-oracle-6.8Upgrade linux-image-aws-64k-6.17Upgrade linux-image-aws-64k-lts-24.04Upgrade linux-image-6.8.0-1050-aws-fipsUpgrade linux-image-azureUpgrade linux-image-6.8.0-1048-gke-64kUpgrade linux-image-raspi-6.8Upgrade linux-image-6.17.0-1008-azureUpgrade linux-image-aws-64k-6.8Upgrade linux-image-oem-22.04bUpgrade linux-image-6.17.0-1008-raspiUpgrade linux-image-gcp-fipsUpgrade linux-image-generic-6.17Upgrade linux-image-oracle-6.17Upgrade linux-image-raspiUpgrade linux-image-xilinx-6.8Upgrade linux-image-aws-lts-24.04Upgrade linux-image-gke-64kUpgrade linux-image-nvidia-64k-6.8Upgrade linux-image-realtime-6.8.1Upgrade linux-image-6.8.0-1048-gkeUpgrade linux-image-6.8.0-1050-aws-64kUpgrade linux-image-6.8.0-1050-awsUpgrade linux-image-gcp-6.8Upgrade linux-image-gke-6.8Upgrade linux-image-lowlatency-64k-6.8Upgrade linux-image-realtime-6.17Upgrade linux-image-oracle-lts-24.04Upgrade linux-image-6.8.0-1051-azureUpgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-6.8.0-106-fipsUpgrade linux-image-realtimeUpgrade linux-image-aws-6.17Upgrade linux-image-gcpUpgrade linux-image-6.8.1-1045-realtimeUpgrade linux-image-6.8.0-1052-azure-fipsUpgrade linux-image-virtual-hwe-22.04Upgrade linux-image-oracle-64kUpgrade linux-image-gcp-fips-6.8Upgrade linux-image-fips-6.8Upgrade linux-image-6.8.0-1047-oracleUpgrade linux-image-azure-fips-6.8Upgrade linux-image-genericUpgrade linux-image-oracleUpgrade linux-image-6.17.0-14-generic-64kUpgrade linux-image-6.8.0-106-generic-64kUpgrade linux-image-aws-64kUpgrade linux-image-generic-hwe-22.04Upgrade linux-image-virtual-6.17Upgrade linux-image-6.17.0-1006-realtimeUpgrade linux-image-gkeUpgrade linux-image-oem-22.04Upgrade linux-image-nvidiaUpgrade linux-image-gcp-64k-6.8Upgrade linux-image-6.8.0-1049-nvidia-lowlatencyUpgrade linux-image-6.8.0-1035-gkeopUpgrade linux-image-intel-iot-realtimeUpgrade linux-image-6.8.0-1052-gcp-64kUpgrade linux-image-6.8.0-1052-gcpUpgrade linux-image-6.8.0-1049-nvidia-64kUpgrade linux-image-realtime-hwe-22.04Upgrade linux-image-raspi-6.17Upgrade linux-image-xilinxUpgrade linux-image-virtualUpgrade linux-image-6.17.0-1011-oemUpgrade linux-image-raspi-realtimeUpgrade linux-image-generic-64kUpgrade linux-image-gkeopUpgrade linux-image-nvidia-lowlatency-6.8Upgrade linux-image-azure-6.8Upgrade linux-image-6.8.0-1029-xilinxUpgrade linux-image-intel-iotgUpgrade linux-image-nvidia-lowlatency-64k-6.8Upgrade linux-image-xilinx-zynqmpUpgrade linux-image-oem-22.04cUpgrade linux-image-lowlatency-64kUpgrade linux-image-6.8.0-1049-nvidiaUpgrade linux-image-nvidia-hwe-22.04Upgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-nvidia-64k | Feb 13, 2026 | Feb 12, 2026 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Feb 9, 2026 | Oct 30, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub