Linux Kernel Btrfs Inode List Leak Vulnerability During Backreference Resolution

Vulnerability

A vulnerability in the Linux kernel's Btrfs file system has been addressed, which involved an inode list leak during backreference resolution. The issue arose because, during the backreference walking process, an error would trigger a jump to the 'out' label, where the 'parents' ulist was freed. However, this process did not free any inode lists attached to the ulist elements via the 'aux' field, leading to a leak of those lists. The vulnerability has been fixed by changing the cleanup process to call 'free_leaf_list()' instead of 'ulist_free()', ensuring that all attached inode lists are properly freed. The 'free_leaf_list()' function was also slightly simplified by removing unnecessary code.

Impact

The vulnerability could lead to a memory leak, where inode lists are not properly freed, potentially causing increased memory usage and degradation of system performance over time.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.0
exploitability
4.0
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.