CVE-2023-53618

btrfs: reject invalid reloc tree root keys with stack dump

No CVSS score yet EPSS 0.20%

Published 7 Oct 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2023-53618

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-53618 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: reject invalid reloc tree root keys with stack dump

[BUG] Syzbot reported a crash that an ASSERT() got triggered inside prepare_to_merge().

That ASSERT() makes sure the reloc tree is properly pointed back by its subvolume tree.

[CAUSE] After more debugging output, it turns out we had an invalid reloc tree:

BTRFS error (device loop1): reloc tree mismatch, root 8 has no reloc root, expect reloc root key (-8, 132, 8) gen 17

Note the above root key is (TREE_RELOC_OBJECTID, ROOT_ITEM, QUOTA_TREE_OBJECTID), meaning it's a reloc tree for quota tree.

But reloc trees can only exist for subvolumes, as for non-subvolume trees, we just COW the involved tree block, no need to create a reloc tree since those tree blocks won't be shared with other trees.

Only subvolumes tree can share tree blocks with other trees (thus they have BTRFS_ROOT_SHAREABLE flag).

Thus this new debug output proves my previous assumption that corrupted on-disk data can trigger that ASSERT().

[FIX] Besides the dedicated fix and the graceful exit, also let tree-checker to check such root keys, to make sure reloc trees can only exist for subvolumes.

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.7% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 259ee7754b6793af8bdd77f9ca818bc41cfe9541, before 314135b7bae9618a317874ae195272682cf2d5d4
affected from 259ee7754b6793af8bdd77f9ca818bc41cfe9541, before 3ae93b316ca4b8b3c33798ef1d210355f2fb9318
affected from 259ee7754b6793af8bdd77f9ca818bc41cfe9541, before 84256e00eeca73c529fc6196e478cc89b8098157
affected from 259ee7754b6793af8bdd77f9ca818bc41cfe9541, before 6ebcd021c92b8e4b904552e4d87283032100796d
affected 3d95c52d789ca99e344061d7f6dadb2519adbcf5
affected fba904d68c8bbfcc89c2210cfcb2351be90bc3e5
affected from 5.2.19, before 5.3
affected from 5.3.4, before 5.4
Other versions: unaffected
Linux
affected 5.4
unaffected before 5.4
unaffected from 5.15.127 up to and including 5.15.*
unaffected from 6.1.46 up to and including 6.1.*
unaffected from 6.4.11 up to and including 6.4.*
unaffected 6.5 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-53618 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-53618

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2023-53618
trivy image --scanners vuln IMAGE | grep CVE-2023-53618

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2023-53618 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.