CVE-2026-142809: xfs: range-check bc_levels array access in scrub tracepoints
In the Linux kernel, the following vulnerability has been resolved:
xfs: range-check bclevels array access in scrub tracepoints
LOLLM noticed xchkbtree()'s odd habit of passing cur->bcnlevels to xchkbtreeptrok when we're checking the pointer to the root block at the start of the btree scan. This enables us to skip checking the pointer for an inode btree's root (since it doesn't have one) but doesn't handle per-AG btrees quite correctly. There isn't a problem for xfsbtreecheckptr itself, but the corruption tracepoint naively walks off the end of bclevel[]. Fix that by adding a helper to do an implicit range check.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the out-of-bounds access?
The issue is reached during XFS scrub btree checking when handling a per-allocation-group btree root pointer. The underlying pointer-checking routine is not affected; the out-of-bounds access occurs in the corruption tracepoint when it walks the bc_level array.
How can I tell whether a system is affected?
A system is affected if it runs a Linux kernel containing the vulnerable XFS scrub tracepoint behavior and performs the relevant scrub btree checks. The provided information does not identify affected kernel versions or a specific observable indicator beyond the tracepoint path.
What is the mitigation if an updated kernel cannot be deployed immediately?
Avoid triggering the affected XFS scrub btree-checking path, particularly checks involving per-allocation-group btrees, until the kernel fix can be applied. The provided information does not specify a configuration-only workaround.