CVE-2026-139433: btrfs: roll back sprout setup after device add failure

Published Nov 30, 2026
·
Updated

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

btrfs: roll back sprout setup after device add failure

btrfsinitnewdevice() calls btrfssetupsprout() before creating the first writable chunks for a seed filesystem. That moves the seed devices out of fsinfo->fsdevices, clears the seeding state and installs a new fsid for the sprout filesystem.

If a later step fails, the error path removes the new device but leaves fsinfo->fsdevices in the partially initialized sprout state. The mounted filesystem can then be left with no open devices after the failed device add.

Add the inverse of btrfssetupsprout() and use it from the error path so the mounted seed filesystem is restored before the temporary seeddevices copy is released.

[ Fix a conflict with per-profile available space, revert sprout before updating per-profile available space estimation. ]

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this failure path?

The affected path applies to mounted Btrfs seed filesystems when adding a device and initializing a sprout filesystem. The issue occurs only if a later step in that device-add operation fails after sprout setup has already changed the filesystem device state.

2

What is the operational impact if the device add fails?

The mount can be left in a partially initialized sprout state, with the newly added device removed but the original seed devices no longer correctly represented in fs_info->fs_devices. The mounted filesystem can consequently be left with no open devices.

3

What should operators do if they encounter a failed device add on a seed filesystem?

The provided fix restores the mounted seed filesystem during error handling before temporary seed-device state is released. Until the fix is available, avoid relying on a failed device-add operation to leave the mounted seed filesystem in a usable state and investigate mounts that exhibit no open devices after such a failure.

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