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-livepatch-5.10.192-182.736Upgrade kernelUpgrade bpftool-debuginfoUpgrade kernel-tools-debuginfoUpgrade python-perfUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-livepatch-5.15.128-80.144Upgrade bpftoolUpgrade kernel-debuginfoUpgrade kernel-develUpgrade kernel-toolsUpgrade perfUpgrade kernel-tools-develUpgrade kernel-debuginfo-common-aarch64Upgrade perf-debuginfoUpgrade python-perf-debuginfoUpgrade kernel-headers | May 20, 2026 | May 20, 2026 |
| Amazon_linux_2023 | — | Upgrade kernel-livepatch-6.1.49-69.116Upgrade kernelUpgrade kernel-libbpf-develUpgrade kernel-tools-debuginfoUpgrade kernel-tools-develUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-libbpf-staticUpgrade kernel-libbpfUpgrade kernel-develUpgrade python3-perfUpgrade perfUpgrade kernel-debuginfoUpgrade kernel-headersUpgrade perf-debuginfoUpgrade bpftoolUpgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-toolsUpgrade python3-perf-debuginfo | 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-intel-iotg-5.15Upgrade linux-intel-iotgUpgrade linux-azure-fipsUpgrade linux-gkeopUpgrade linux-nvidia-tegraUpgrade linux-riscv-5.15Upgrade linux-gcp-5.4Upgrade linux-ibm-5.15Upgrade linuxUpgrade linux-azureUpgrade linux-nvidiaUpgrade linux-raspiUpgrade linux-azure-5.15Upgrade linux-aws-fipsUpgrade linux-fipsUpgrade linux-lowlatencyUpgrade linux-hwe-5.15Upgrade linux-oracle-5.15Upgrade linux-gkeUpgrade linux-aws-5.4Upgrade linux-ibm-5.4Upgrade linux-oracleUpgrade linux-nvidia-tegra-igxUpgrade linux-hwe-5.4Upgrade linux-xilinx-zynqmpUpgrade linux-oracle-5.4Upgrade linux-azure-fde-5.15Upgrade linux-kvmUpgrade linux-ibmUpgrade linux-gcp-5.15Upgrade linux-iotUpgrade linux-gcp-fipsUpgrade linux-intel-iot-realtimeUpgrade linux-gcpUpgrade linux-awsUpgrade linux-realtimeUpgrade linux-aws-5.15Upgrade linux-azure-5.4Upgrade linux-raspi-5.4Upgrade linux-bluefieldUpgrade linux-nvidia-tegra-5.15Upgrade 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