AZL-117073: CVE-2026-139333 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
btrfs: update the inode item when removing a free space inode
btrfsremovefreespaceinode() adds an orphan item for the free space inode and clears its link count in memory, but never writes the inode item. The item is only removed once the delayed iput evicts the inode, which happens in a later transaction, from the cleaner thread or a throttled transaction end.
If we crash in between, or if evict can't reserve space for the truncation and leaves the orphan item for the next mount, the on-disk inode still has a link count of 1. btrfsorphancleanup() then treats it as an inode with links and only deletes the orphan item. The free space header item is already gone at that point, so nothing ever finds the inode again, and its data extents are leaked.
Write the zero link count to the inode item in the same transaction as the orphan item, so the orphan cleanup evicts the inode instead. Account for the extra tree root item update when removing a block group.
Affected Software
Event History
Frequently Asked Questions
Which systems should prioritize this issue?
Systems using the Btrfs filesystem should prioritize it, particularly where free space inodes may be removed and the system could crash or encounter space-reservation failures during inode eviction.
What happens after an affected interruption?
The free space inode can remain on disk with a link count of 1 while its free space header has already been removed. Its data extents can then become unreachable and remain leaked.
Will orphan cleanup on the next mount recover the leaked inode?
Not in the affected state. Because the on-disk inode still appears linked, orphan cleanup removes only the orphan item rather than evicting the inode, leaving no remaining reference that would find it.