Linux Kernel XFS Btree Revalidation Null Pointer Dereference Vulnerability

Vulnerability

A null pointer dereference vulnerability has been identified in the Linux kernel's XFS file system, specifically within the btree revalidation process. This issue arises in the allocation and inode btree repair functions, which simultaneously rebuild both trees. After the rebuild, the trees are evaluated to ensure that any corruptions have been resolved. However, a flaw was introduced when the first btree validation nullified the cursor needed for the second, leading to a crash. The vulnerability affects the Linux kernel through version 6.8.

Impact

Exploitation of this vulnerability causes a kernel crash due to a null pointer dereference, disrupting system operations and potentially leading to a denial of service.

Reproduction

The vulnerability can be reproduced by using the 'xfs_file_ioctl' function with the 'XFS_IOC_SCRUBV_METADATA' command, which triggers the btree repair and validation process. Injecting an error during the first btree validation causes the cursor for the second validation to be nullified, setting up the null pointer dereference when the second validation is attempted.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for upgrading the Linux kernel can be found in the official Linux documentation.

Added: Mar 18, 2026, 6:43 PM
Updated: Mar 18, 2026, 6:43 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
4.1
threat
4.8
urgency
2.9
incentive
0.0

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