CVE-2026-43046: btrfs: reject root items with drop_progress and zero drop_level

Published May 1, 2026
·
Updated

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

btrfs: reject root items with dropprogress and zero droplevel

[BUG] When recovering relocation at mount time, mergerelocroot() and btrfsdropsnapshot() both use BUGON(level == 0) to guard against an impossible state: a non-zero dropprogress combined with a zero droplevel in a rootitem, which can be triggered:

------------[ cut here ]------------ kernel BUG at fs/btrfs/relocation.c:1545! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 283 ... Tainted: 6.18.0+ #16 PREEMPT(voluntary) Tainted: [O]=OOTMODULE, [E]=UNSIGNEDMODULE Hardware name: QEMU Ubuntu 24.04 PC v2, BIOS 1.16.3-debian-1.16.3-2 RIP: 0010:mergerelocroot+0x1266/0x1650 fs/btrfs/relocation.c:1545 Code: ffff0000 00004589 d7e9acfa ffffe8a1 79bafebe 02000000 Call Trace: mergerelocroots+0x295/0x890 fs/btrfs/relocation.c:1861 btrfsrecoverrelocation+0xd6e/0x11d0 fs/btrfs/relocation.c:4195 btrfsstartprerwmount+0xa4d/0x1810 fs/btrfs/disk-io.c:3130 openctree+0x5824/0x5fe0 fs/btrfs/disk-io.c:3640 btrfsfillsuper fs/btrfs/super.c:987 [inline] btrfsgettreesuper fs/btrfs/super.c:1951 [inline] btrfsgettreesubvol fs/btrfs/super.c:2094 [inline] btrfsgettree+0x111c/0x2190 fs/btrfs/super.c:2128 vfsgettree+0x9a/0x370 fs/super.c:1758 fcmount fs/namespace.c:1199 [inline] donewmountfc fs/namespace.c:3642 [inline] donewmount fs/namespace.c:3718 [inline] pathmount+0x5b8/0x1ea0 fs/namespace.c:4028 domount fs/namespace.c:4041 [inline] dosysmount fs/namespace.c:4229 [inline] sesysmount fs/namespace.c:4206 [inline] x64sysmount+0x282/0x320 fs/namespace.c:4206 ... RIP: 0033:0x7f969c9a8fde Code: 0f1f4000 48c7c2b0 fffffff7 d8648902 b8ffffff ffc3660f ---[ end trace 0000000000000000 ]---

The bug is reproducible on 7.0.0-rc2-next-20260310 with our dynamic metadata fuzzing tool that corrupts btrfs metadata at runtime.

[CAUSE] A non-zero dropprogress.objectid means an interrupted btrfsdropsnapshot() left a resume point on disk, and in that case droplevel must be greater than 0 because the checkpoint is only saved at internal node levels.

Although this invariant is enforced when the kernel writes the root item, it is not validated when the root item is read back from disk. That allows on-disk corruption to provide an invalid state with dropprogress.objectid != 0 and droplevel == 0.

When relocation recovery later processes such a root item, mergerelocroot() reads droplevel and hits BUGON(level == 0). The same invalid metadata can also trigger the corresponding BUGON() in btrfsdropsnapshot().

[FIX] Fix this by validating the rootitem invariant in tree-checker when reading root items from disk: if dropprogress.objectid is non-zero, droplevel must also be non-zero. Reject such malformed metadata with -EUCLEAN before it reaches mergerelocroot() or btrfsdropsnapshot() and triggers the BUGON.

After the fix, the same corruption is correctly rejected by tree-checker and the BUGON is no longer triggered.

Affected Software

12 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=2.6.29<5.15.203
Linux Linux kernel>=5.16<6.1.168
Linux Linux kernel>=6.2<6.6.134
Linux Linux kernel>=6.7<6.12.81
Linux Linux kernel>=6.13<6.18.22
Linux Linux kernel>=6.19<6.19.12
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
  2. Compensating control

    In the Btrfs tree-checker, validate root items when reading them from disk and reject the metadata with -EUCLEAN if drop_progress.objectid is non-zero while drop_level is zero.

Event History

May 1, 2026
CVE Published
via MITRE·02:15 PM
Data Sourced
via MITRE·02:15 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-43046?

CVE-2026-43046 is classified as a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2026-43046?

To fix CVE-2026-43046, update to the latest stable version of the Linux kernel that addresses this vulnerability.

3

What systems are affected by CVE-2026-43046?

CVE-2026-43046 affects various versions of the Linux kernel implementing Btrfs filesystem functions.

4

What type of vulnerability is CVE-2026-43046?

CVE-2026-43046 is a bug related to Btrfs filesystem handling during relocation recovery at mount time.

5

Is CVE-2026-43046 likely to be exploited?

While exploitation of CVE-2026-43046 is possible, it requires specific conditions related to Btrfs filesystem operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203