{"id":"CVE-2026-139433","state":"PUBLISHED","title":"btrfs: roll back sprout setup after device add failure","description":"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. ]","publishedAt":"2026-11-30T13:34:42.742Z","updatedAt":"2026-11-30T13:34:42.742Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2b82032c34ec40515d3c45c36cd1961f37977de8","status":"affected","lessThan":"cad71cd6e45ca7268109d945c302cee9fb7c1de7","versionType":"git"},{"version":"2b82032c34ec40515d3c45c36cd1961f37977de8","status":"affected","lessThan":"3a660bffa0ea6151f01b76f8a4f55c842a7b3a9a","versionType":"git"},{"version":"2b82032c34ec40515d3c45c36cd1961f37977de8","status":"affected","lessThan":"98b03534b8f98ecac03dda2f366b70f8a845844a","versionType":"git"},{"version":"2b82032c34ec40515d3c45c36cd1961f37977de8","status":"affected","lessThan":"f5166f53b60b4d1ee9957c0baccd3b09735001d4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/volumes.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.29","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.29","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/volumes.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139433.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139433","state":"PUBLISHED","datePublished":"2026-11-30T13:34:42.742Z","dateUpdated":"2026-11-30T13:34:42.742Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.933Z"},"containers":{"cna":{"title":"btrfs: roll back sprout setup after device add failure","descriptions":[{"lang":"en","value":"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. ]"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2b82032c34ec40515d3c45c36cd1961f37977de8","status":"affected","lessThan":"cad71cd6e45ca7268109d945c302cee9fb7c1de7","versionType":"git"},{"version":"2b82032c34ec40515d3c45c36cd1961f37977de8","status":"affected","lessThan":"3a660bffa0ea6151f01b76f8a4f55c842a7b3a9a","versionType":"git"},{"version":"2b82032c34ec40515d3c45c36cd1961f37977de8","status":"affected","lessThan":"98b03534b8f98ecac03dda2f366b70f8a845844a","versionType":"git"},{"version":"2b82032c34ec40515d3c45c36cd1961f37977de8","status":"affected","lessThan":"f5166f53b60b4d1ee9957c0baccd3b09735001d4","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/volumes.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.29","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.29","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/volumes.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cad71cd6e45ca7268109d945c302cee9fb7c1de7"},{"url":"https://git.kernel.org/stable/c/3a660bffa0ea6151f01b76f8a4f55c842a7b3a9a"},{"url":"https://git.kernel.org/stable/c/98b03534b8f98ecac03dda2f366b70f8a845844a"},{"url":"https://git.kernel.org/stable/c/f5166f53b60b4d1ee9957c0baccd3b09735001d4"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:42.742Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.29","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}