CVE-2026-139433

btrfs: roll back sprout setup after device add failure

Published Nov 30, 2026 CVSS 3.1 · 4.1 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

btrfs: roll back sprout setup after device add failure

btrfs_init_new_device() calls btrfs_setup_sprout() before creating the
first writable chunks for a seed filesystem. That moves the seed devices
out of fs_info->fs_devices, 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
fs_info->fs_devices 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 btrfs_setup_sprout() and use it from the error path
so the mounted seed filesystem is restored before the temporary
seed_devices copy is released.

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

Analysis

AI-generated

Technical impact

When adding a new device to a btrfs seed filesystem, the routine btrfs_init_new_device() incorrectly calls btrfs_setup_sprout() before the first writable chunks are created. If a subsequent step in the process fails, the error path removes the device but does not undo the sprout setup, leaving the filesystem in a partially initialized sprout state. This state can result in the mounted filesystem having no active devices, potentially rendering it unusable and leading to data loss or corruption. The flaw is an error‑handling defect that compromises file‑system integrity.

Affected Systems

All Linux kernel builds that include the btrfs file‑system driver and that have not yet incorporated the fix found in the referenced kernel commits. The issue affects the generic Linux kernel product, as the bug resides in the core kernel code and impacts all deployments of Linux that use the btrfs file‑system.

Risk and Exploitability

The vulnerability is not indexed in the CISA KEV catalog and no EPSS score is available. However, exploitation requires privileged access to trigger a device addition on a btrfs volume, which is a high‑privilege operation. Based on the description, it is inferred that the attacker would need such privileged access to issue a btrfs device add command. Because the defect can silently corrupt a filesystem’s device list, the impact is significant for availability and integrity of data on affected systems. The lack of a publicly disclosed exploitation vector does not mitigate the risk of a future targeted attack once the flaw becomes known.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit fixing the error path (e.g., the commit identified by 3a660bffa0ea6151f01b76f8a4f55c842a7b3a9a or later).
  • If an immediate kernel upgrade is not possible, avoid performing btrfs device add operations on critical volumes and restrict privileged users from executing these commands on affected systems.
  • Monitor the filesystem for missing devices or abnormal device removal events and run periodic integrity checks using btrfs check.

Generated by OpenCVE AI on December 1, 2026 at 11:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-459
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-748
CWE-754
Type Values Removed Values Added
Weaknesses CWE-748
CWE-754
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: btrfs: roll back sprout setup after device add failure btrfs_init_new_device() calls btrfs_setup_sprout() before creating the first writable chunks for a seed filesystem. That moves the seed devices out of fs_info->fs_devices, 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 fs_info->fs_devices 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 btrfs_setup_sprout() and use it from the error path so the mounted seed filesystem is restored before the temporary seed_devices copy is released. [ Fix a conflict with per-profile available space, revert sprout before updating per-profile available space estimation. ]
Title btrfs: roll back sprout setup after device add failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:34 PM