CVE-2023-53618
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
07/10/2025
Last modified:
05/02/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
btrfs: reject invalid reloc tree root keys with stack dump<br />
<br />
[BUG]<br />
Syzbot reported a crash that an ASSERT() got triggered inside<br />
prepare_to_merge().<br />
<br />
That ASSERT() makes sure the reloc tree is properly pointed back by its<br />
subvolume tree.<br />
<br />
[CAUSE]<br />
After more debugging output, it turns out we had an invalid reloc tree:<br />
<br />
BTRFS error (device loop1): reloc tree mismatch, root 8 has no reloc root, expect reloc root key (-8, 132, 8) gen 17<br />
<br />
Note the above root key is (TREE_RELOC_OBJECTID, ROOT_ITEM,<br />
QUOTA_TREE_OBJECTID), meaning it&#39;s a reloc tree for quota tree.<br />
<br />
But reloc trees can only exist for subvolumes, as for non-subvolume<br />
trees, we just COW the involved tree block, no need to create a reloc<br />
tree since those tree blocks won&#39;t be shared with other trees.<br />
<br />
Only subvolumes tree can share tree blocks with other trees (thus they<br />
have BTRFS_ROOT_SHAREABLE flag).<br />
<br />
Thus this new debug output proves my previous assumption that corrupted<br />
on-disk data can trigger that ASSERT().<br />
<br />
[FIX]<br />
Besides the dedicated fix and the graceful exit, also let tree-checker to<br />
check such root keys, to make sure reloc trees can only exist for subvolumes.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.2.19 (including) | 5.3 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.3.4 (including) | 5.15.127 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.1.46 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.4.11 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.5:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.5:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.5:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.5:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.5:rc5:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



