Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2023-53339— btrfs: fix BUG_ON condition in btrfs_cancel_balance

AI Predicted 5.5 Difficulty: Moderate EPSS 0.20% · P10

Possible ATT&CK Techniques 1AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 5

VendorProductVersion RangeStatus
LinuxLinuxddf7e8984c83aee9122552529f4e77291903f8d9< ceb9ba8e30833a4823e2dc73f80ebcdf2498d01aaffected
72efe5d44821e38540888a5fe3ff3d0faab6acad< ae81329f7de3aa6f34ecdfa5412e72161a30e9ceaffected
b19c98f237cd76981aaded52c258ce93f7daa8cb< 29eefa6d0d07e185f7bfe9576f91e6dba98189c2affected
6.1.42< 6.1.47affected
6.4.7< 6.4.12affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2023-53339

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
btrfs: fix BUG_ON condition in btrfs_cancel_balance
Source: CVE Program / CVE List V5
Vulnerability Description
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); > }
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于btrfs_cancel_balance函数中的竞争条件,可能导致内核崩溃。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux ddf7e8984c83aee9122552529f4e77291903f8d9 ~ ceb9ba8e30833a4823e2dc73f80ebcdf2498d01a -
LinuxLinux 6.1.42 ~ 6.1.47 -

II. Public POCs for CVE-2023-53339

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-53339

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-09-17 · 56 CVEs total

CVE-2023-533389.8 CRITICALlwt: Fix return values of BPF xmit ops
CVE-2022-503739.8 CRITICALfs: dlm: fix race in lowcomms
CVE-2022-503639.8 CRITICALskmsg: pass gfp argument to alloc_sk_msg()
CVE-2023-533609.8 CRITICALNFSv4.2: Rework scratch handling for READ_PLUS (again)
CVE-2023-533588.8 HIGHksmbd: fix racy issue under cocurrent smb2 tree disconnect
CVE-2023-533407.8 HIGHnet/mlx5: Collect command failures data only for known commands
CVE-2022-503687.8 HIGHdrm/msm/dsi: fix memory corruption with too many bridges
CVE-2022-503677.8 HIGHfs: fix UAF/GPF bug in nilfs_mdt_destroy
CVE-2022-503627.8 HIGHdmaengine: hisilicon: Add multi-thread support for a DMA channel
CVE-2023-533547.8 HIGHskbuff: skb_segment, Call zero copy functions before using skbuff frags
CVE-2022-503557.8 HIGHstaging: vt6655: fix some erroneous memory clean-up loops
CVE-2022-503547.8 HIGHdrm/amdkfd: Fix kfd_process_device_init_vm error handling
CVE-2023-533357.5 HIGHRDMA/cxgb4: Fix potential null-ptr-deref in pass_establish()
CVE-2022-503657.5 HIGHskbuff: Account for tail adjustment during pull operations
CVE-2023-53336media: ipu-bridge: Fix null pointer deref on SSDB/PLD parsing warnings
CVE-2022-50369drm/vkms: Fix null-ptr-deref in vkms_release()
CVE-2022-50372cifs: Fix memory leak when build ntlmssp negotiate blob failed
CVE-2022-50371led: qcom-lpg: Fix sleeping in atomic
CVE-2022-50370i2c: designware: Fix handling of real but unexpected device interrupts
CVE-2022-50374Bluetooth: hci_{ldisc,serdev}: check percpu_init_rwsem() failure

Showing top 20 of 56 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2023-53339

No comments yet


Leave a comment