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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:34:42.742Z
- Modified: 2026-11-30T14:19:13.453Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 2b82032c34ec40515d3c45c36cd1961f37977de8 before cad71cd6e45ca7268109d945c302cee9fb7c1de7; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before 3a660bffa0ea6151f01b76f8a4f55c842a7b3a9a; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before 98b03534b8f98ecac03dda2f366b70f8a845844a; from 2b82032c34ec40515d3c45c36cd1961f37977de8 before f5166f53b60b4d1ee9957c0baccd3b09735001d4; 2.6.29 (not affected: before 2.6.29; from 6.12.120 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/cad71cd6e45ca7268109d945c302cee9fb7c1de7>
- <https://git.kernel.org/stable/c/3a660bffa0ea6151f01b76f8a4f55c842a7b3a9a>
- <https://git.kernel.org/stable/c/98b03534b8f98ecac03dda2f366b70f8a845844a>
- <https://git.kernel.org/stable/c/f5166f53b60b4d1ee9957c0baccd3b09735001d4>

## Sources

- CVE List: [CVE-2026-139433](https://www.cve.org/CVERecord?id=CVE-2026-139433), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139433](https://nvd.nist.gov/vuln/detail/CVE-2026-139433), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139433 · Whole record: https://cve.day/CVE-2026-139433.json · Rebuilt by cve.day 2026-11-30T14:33:03.610Z
