cvelo
P4 · InfoEPSS 0.2%

btrfs: roll back sprout setup after device add failure

  • CVE-2026-139433
  • GHSA-qh7v-2qh6-qmmh
  • EUVD-2026-139139

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. ]

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • Linux

    Affected versionsFixed in
    2.6.29none stated
    before 2.6.29: not affectednone stated
    from 6.12.120 up to 6.12.*: not affectednone stated
    from 6.18.65 up to 6.18.*: not affectednone stated
    from 7.3.6 up to 7.3.*: not affectednone stated
    from 7.4-rc1 onwards: not affectednone stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.