{"id":"CVE-2026-139433","aliases":["CVE-2026-139433"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: roll back sprout setup after device add failure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: roll back sprout setup after device add failure\n\nbtrfs_init_new_device() calls btrfs_setup_sprout() before creating the\nfirst writable chunks for a seed filesystem. That moves the seed devices\nout of fs_info->fs_devices, clears the seeding state and installs a new\nfsid for the sprout filesystem.\n\nIf a later step fails, the error path removes the new device but leaves\nfs_info->fs_devices in the partially initialized sprout state.  The\nmounted filesystem can then be left with no open devices after the\nfailed device add.\n\nAdd the inverse of btrfs_setup_sprout() and use it from the error path\nso the mounted seed filesystem is restored before the temporary\nseed_devices copy is released.\n\n[ Fix a conflict with per-profile available space, revert sprout before\n  updating per-profile available space estimation. ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: roll back sprout setup after device add failure\n\nbtrfs_init_new_device() calls btrfs_setup_sprout() before creating the\nfirst writable chunks for a seed filesystem. That moves the seed devices\nout of fs_info->fs_devices, clears the seeding state and installs a new\nfsid for the sprout filesystem.\n\nIf a later step fails, the error path removes the new device but leaves\nfs_info->fs_devices in the partially initialized sprout state.  The\nmounted filesystem can then be left with no open devices after the\nfailed device add.\n\nAdd the inverse of btrfs_setup_sprout() and use it from the error path\nso the mounted seed filesystem is restored before the temporary\nseed_devices copy is released.\n\n[ Fix a conflict with per-profile available space, revert sprout before\n  updating per-profile available space estimation. ]","source":"cvelist"}],"published":"2026-11-30T13:34:42.742Z","modified":"2026-11-30T14:19:13.453Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"cad71cd6e45ca7268109d945c302cee9fb7c1de7","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"3a660bffa0ea6151f01b76f8a4f55c842a7b3a9a","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"98b03534b8f98ecac03dda2f366b70f8a845844a","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"f5166f53b60b4d1ee9957c0baccd3b09735001d4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.29","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.29","status":"unaffected"},{"type":"semver","introduced":"6.12.120","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/cad71cd6e45ca7268109d945c302cee9fb7c1de7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a660bffa0ea6151f01b76f8a4f55c842a7b3a9a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98b03534b8f98ecac03dda2f366b70f8a845844a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f5166f53b60b4d1ee9957c0baccd3b09735001d4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139433","url":"https://www.cve.org/CVERecord?id=CVE-2026-139433","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:42.742Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139433","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139433","licence":"Public domain","modified":"2026-11-30T14:19:13.453Z"}],"updatedAt":"2026-11-30T14:33:03.610Z","epss":{"score":0.00201,"percentile":0.10522,"date":"2026-12-01T12:00:22.000Z"}}