Linux Kernel Btrfs Uninitialized Value Vulnerability in Tree Block Cleaning

Vulnerability

A vulnerability in the Linux kernel's Btrfs file system has been addressed. The issue involved an uninitialized value being accessed in the function 'btrfs_clean_tree_block'. This vulnerability arose because a previous commit had incorrectly reordered the initialization of the extent buffer's header generation. As a result, when 'btrfs_clean_tree_block' was called, it accessed a generation field that had not been properly initialized, leading to potential undefined behavior.

Impact

The vulnerability could cause the Btrfs file system to operate on uninitialized data, which can lead to unpredictable behavior or corruption of file system metadata.

Reproduction

The vulnerability can be reproduced by creating a scenario where 'btrfs_clean_tree_block' is called on a tree block that has not had its header generation properly initialized. This can be done by manipulating the order of operations in the Btrfs extent buffer initialization process, specifically by moving the header generation initialization after the tree block cleaning, which is what the original vulnerability fix failed to address.

Remediation

Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been fixed.

Added: Dec 24, 2025, 4:56 PM
Updated: Dec 24, 2025, 4:56 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
1.5
threat
4.8
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.