AZL-117130: CVE-2026-139433 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
btrfs: roll back sprout setup after device add failure
btrfsinitnewdevice() calls btrfssetupsprout() before creating the first writable chunks for a seed filesystem. That moves the seed devices out of fsinfo->fsdevices, 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 fsinfo->fsdevices 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 btrfssetupsprout() and use it from the error path so the mounted seed filesystem is restored before the temporary seeddevices copy is released.
[ Fix a conflict with per-profile available space, revert sprout before updating per-profile available space estimation. ]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Add an inverse of btrfs_setup_sprout() and call it on the device-add error path to roll back sprout setup and restore the mounted seed filesystem before releasing the temporary seed_devices copy.
Event History
Frequently Asked Questions
Which systems are exposed to this failure condition?
Systems mounting a Btrfs seed filesystem and attempting to add a device are exposed. The failure requires a later step in the device-add operation to fail after sprout setup has already changed the filesystem device state.
What is the operational impact if the device-add operation fails?
The mounted seed filesystem can be left in a partially initialized sprout state with no open devices. This occurs because the failed operation removes the new device without restoring the original seed filesystem device configuration.
Is there a mitigation if the updated kernel cannot be deployed immediately?
Avoid device-add operations on mounted Btrfs seed filesystems, particularly where an operation failure is possible. The issue is triggered through the error path of that operation.
How can an administrator recognize a potentially affected filesystem?
A potentially affected system has experienced a failed device-add attempt on a mounted Btrfs seed filesystem. Afterward, the filesystem may have no open devices due to the incomplete rollback of sprout setup.