Linux Kernel Btrfs NULL Pointer Dereference Vulnerability Leading to Kernel Panic

Vulnerability

A race condition has been identified in the Btrfs file system component of the Linux kernel, specifically within the tree modification log rewind process. This race condition can cause a kernel panic by triggering a NULL pointer dereference. The issue arises when logical inode resolution takes a tree modification log sequence number, and a backreference walk encounters a rewind on a busy node. This sequence of operations can create invalid entries that, when accessed, lead to a crash. The vulnerability is present in Linux kernel versions through 5.15.

Impact

Exploitation of this vulnerability causes a kernel panic, disrupting system operations and potentially leading to a denial of service.

Reproduction

The vulnerability can be reproduced by introducing delays in the 'btrfs_search_old_slot' function. This encourages more frequent log rewinding during 'ino_to_logical' IOCTL operations, which can trigger the race condition and subsequent kernel panic.

Remediation

Users can upgrade to the latest stable version of the Linux kernel to address this vulnerability.

Added: Oct 4, 2025, 7:03 PM
Updated: Oct 4, 2025, 7:03 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
0.6
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.