{"id":"DEBIAN-CVE-2023-53339","details":"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:    \u003cTASK\u003e    ? 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:   \u003e mutex_unlock(&fs_info-\u003ebalance_mutex);   \u003e --------------------   \u003e .......issue pause and cancel req in another thread   \u003e --------------------   \u003e ret = __btrfs_balance(fs_info);   \u003e   \u003e mutex_lock(&fs_info-\u003ebalance_mutex);   \u003e if (ret == -ECANCELED && atomic_read(&fs_info-\u003ebalance_pause_req)) {   \u003e         btrfs_info(fs_info, \"balance: paused\");   \u003e         btrfs_exclop_balance(fs_info, BTRFS_EXCLOP_BALANCE_PAUSED);   \u003e }","modified":"2026-09-15T09:02:43.904595620Z","published":"2025-09-17T15:15:37.030Z","upstream":["CVE-2023-53339"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-53339"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.1.52-1"}]}],"versions":["6.1.27-1","6.1.37-1","6.1.38-1","6.1.38-2","6.1.38-2~bpo11+1","6.1.38-3","6.1.38-4","6.1.38-4~bpo11+1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-53339.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.4.13-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-53339.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.4.13-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-53339.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}