In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix BUG_ON condition in btrfs_cancel_balance
Pausing and canceling balance can race to interrupt balance lead to BUG_ON panic in btrfs_cancel_balance. The BUG_ON condition in btrfs_cancel_balance does not take this race scenario into account.
However, the race condition has no other side effects. We can fix that.
Reproducing it with panic trace like this:
kernel BUG at fs/btrfs/volumes.c:4618! RIP: 0010:btrfs_cancel_balance+0x5cf/0x6a0 Call Trace: <TASK> ? do_nanosleep+0x60/0x120 ? hrtimer_nanosleep+0xb7/0x1a0 ? sched_core_clone_cookie+0x70/0x70 btrfs_ioctl_balance_ctl+0x55/0x70 btrfs_ioctl+0xa46/0xd20 __x64_sys_ioctl+0x7d/0xa0 do_syscall_64+0x38/0x80 entry_SYSCALL_64_after_hwframe+0x63/0xcd
Race scenario as follows: > mutex_unlock(&fs_info->balance_mutex); > -------------------- > .......issue pause and cancel req in another thread > -------------------- > ret = __btrfs_balance(fs_info); > > mutex_lock(&fs_info->balance_mutex); > if (ret == -ECANCELED && atomic_read(&fs_info->balance_pause_req)) { > btrfs_info(fs_info, "balance: paused"); > btrfs_exclop_balance(fs_info, BTRFS_EXCLOP_BALANCE_PAUSED); > }
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-tools-develUpgrade kernel-headersUpgrade kernel-develUpgrade perfUpgrade kernel-toolsUpgrade kernel-debuginfo-common-aarch64Upgrade perf-debuginfoUpgrade python-perf-debuginfoUpgrade kernelUpgrade kernel-livepatch-5.10.192-182.736Upgrade kernel-livepatch-5.15.128-80.144Upgrade bpftoolUpgrade kernel-debuginfoUpgrade python-perfUpgrade kernel-tools-debuginfoUpgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-x86_64 | May 20, 2026 | May 20, 2026 |
| Amazon_linux_2023 | — | Upgrade kernel-libbpfUpgrade kernel-headersUpgrade kernel-develUpgrade kernel-debuginfoUpgrade python3-perfUpgrade kernel-tools-develUpgrade kernel-livepatch-6.1.49-69.116Upgrade kernel-tools-debuginfoUpgrade perfUpgrade perf-debuginfoUpgrade kernel-libbpf-staticUpgrade kernelUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-libbpf-develUpgrade bpftool-debuginfoUpgrade bpftoolUpgrade python3-perf-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-tools | Oct 16, 2025 | Sep 17, 2025 |
| Debian | — | Upgrade linux | Sep 19, 2025 | Sep 19, 2025 |
| Redhat_linux | — | No solution exists | Jul 17, 2026 | Sep 17, 2025 |
| Ubuntu | — | Upgrade linux-oracle-5.4Upgrade linux-hwe-5.15Upgrade linux-fipsUpgrade linux-lowlatencyUpgrade linux-nvidiaUpgrade linux-ibm-5.15Upgrade linux-gcp-5.4Upgrade linux-gkeopUpgrade linux-hwe-5.4Upgrade linux-azure-fde-5.15Upgrade linuxUpgrade linux-azure-fipsUpgrade linux-nvidia-tegra-igxUpgrade linux-xilinx-zynqmpUpgrade linux-riscv-5.15Upgrade linux-ibm-5.4Upgrade linux-raspiUpgrade linux-azure-5.15Upgrade linux-nvidia-tegraUpgrade linux-intel-iotgUpgrade linux-oracle-5.15Upgrade linux-azureUpgrade linux-kvmUpgrade linux-aws-fipsUpgrade linux-intel-iotg-5.15Upgrade linux-ibmUpgrade linux-aws-5.4Upgrade linux-gkeUpgrade linux-oracleUpgrade linux-bluefieldUpgrade linux-gcp-fipsUpgrade linux-raspi-5.4Upgrade linux-awsUpgrade linux-nvidia-tegra-5.15Upgrade linux-realtimeUpgrade linux-azure-fdeUpgrade linux-gcpUpgrade linux-gcp-5.15Upgrade linux-intel-iot-realtimeUpgrade linux-aws-5.15Upgrade linux-azure-5.4Upgrade linux-iotUpgrade linux-lowlatency-hwe-5.15 | Sep 26, 2025 | Sep 17, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Oct 15, 2025 | Sep 17, 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