Linux Kernel Btrfs Ordered Extent Handling Vulnerability

Vulnerability

A vulnerability in the Linux kernel's Btrfs file system has been addressed, related to the management of ordered extents during direct I/O operations. When a transaction abort occurs while writing data, existing ordered extents are marked with an error flag. If the system then attempts to split an ordered extent that still has remaining bytes, it triggers an assertion failure because of the error flag. This issue could lead to a denial-of-service condition by causing the kernel to crash or become unresponsive.

Impact

Exploitation of this vulnerability could cause a kernel panic, leading to a system crash and potential data loss.

Reproduction

The vulnerability can be reproduced by performing a direct I/O write operation on a Btrfs file system while simultaneously forcing a transaction abort. This can be achieved using a fault injection mechanism to simulate the transaction abort, which will mark the ordered extents with the error flag. After the transaction abort, the ordered extent can be split, triggering the assertion failure due to the presence of the error flag.

Remediation

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

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

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
0.0
relevance
0.0
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.