Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97552 Overview
CVE-2026-97552 is a Linux kernel vulnerability in the XFS filesystem. The flaw resides in xfs_defer_finish_one(), which declares an error variable without initialization. The function only assigns error inside a loop iterating over dfp->dfp_work. When that list is empty, the loop never executes and the function returns an indeterminate stack value.
The condition is reachable through xfs_defer_add_barrier(), invoked by xfs_reap_ag_blocks() on any kernel built with CONFIG_XFS_ONLINE_REPAIR. A non-zero stack value causes xfs_defer_finish_noroll() to treat a successful barrier as fatal, triggering a SHUTDOWN_CORRUPT_INCORE mid-repair.
Critical Impact
An uninitialized stack read in XFS online repair can force a false filesystem shutdown, interrupting repair operations and reducing availability.
Affected Products
- Linux kernel builds with CONFIG_XFS_ONLINE_REPAIR enabled
- XFS filesystem subsystem (upstream mainline prior to the referenced fix commits)
- Downstream distribution kernels pending backport of the fix
Discovery Timeline
- 2026-09-25 - CVE-2026-97552 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97552
Vulnerability Analysis
The defect is a classic Uninitialized Memory Use issue in the XFS deferred operations subsystem. xfs_defer_finish_one() processes a list of pending deferred work items referenced by dfp->dfp_work. The function declares a local error variable but assigns it only within the per-item loop body.
When the work list is empty, the loop body never executes. Control passes directly to the cleanup path labeled "Done with the dfp, free it," and the function returns the uninitialized value from the stack. Callers interpret this return as the operation's result.
The return value then propagates to xfs_defer_finish_noroll(), which treats any non-EAGAIN, non-zero value as a fatal error. The result is a SHUTDOWN_CORRUPT_INCORE event that aborts the in-progress online repair and marks the filesystem corrupt in-core, even though no corruption occurred.
Root Cause
The root cause is a missing initializer on the local error variable combined with a code path where the assignment loop can be skipped. Item-less pending items reach this path through xfs_defer_add_barrier(), used by xfs_reap_ag_blocks(). The correct return in that path is zero, since draining an empty item list is a successful barrier.
Attack Vector
This is not a remotely triggerable code execution flaw. Exposure requires a kernel with CONFIG_XFS_ONLINE_REPAIR enabled and execution of online repair operations that invoke the barrier path. The practical impact is unexpected filesystem shutdowns during administrative repair activity, affecting availability. No exploit is listed in CISA KEV, and no public proof-of-concept is referenced.
The vulnerability mechanism is described in the upstream commit messages linked in the external references. See the Kernel Git Commit 30748a24 and related commits for the exact source changes.
Detection Methods for CVE-2026-97552
Indicators of Compromise
- Unexpected XFS filesystem shutdowns during or shortly after online repair operations
- Kernel log entries indicating SHUTDOWN_CORRUPT_INCORE with no evidence of actual on-disk corruption
- Repair commands returning non-EAGAIN errors from xfs_defer_finish_noroll() paths on empty barrier items
Detection Strategies
- Inventory kernels compiled with CONFIG_XFS_ONLINE_REPAIR and correlate them against patched commit hashes
- Review dmesg and journal logs for XFS shutdown events coinciding with xfs_reap_ag_blocks() activity
- Compare uname -r output across hosts to confirm patched kernel versions are deployed
Monitoring Recommendations
- Alert on XFS shutdown events via syslog forwarding to a central log platform
- Track filesystem availability metrics on hosts running online repair tooling
- Monitor changes in XFS error counts after scheduled filesystem maintenance windows
How to Mitigate CVE-2026-97552
Immediate Actions Required
- Identify hosts running kernels with CONFIG_XFS_ONLINE_REPAIR enabled
- Apply the upstream fix or vendor-backported kernel update at the next maintenance window
- Pause scheduled online repair operations on unpatched hosts until the fix is deployed
Patch Information
The fix initializes error to zero in xfs_defer_finish_one(), ensuring the empty-list path returns a successful status. Patch commits are available at Kernel Git Commit 30748a24, Kernel Git Commit 6176d21d, Kernel Git Commit 6b507c23, and Kernel Git Commit ba949a14. Consult your distribution's security tracker for backport status.
Workarounds
- Defer use of XFS online repair features (xfs_scrub -r) until a patched kernel is installed
- Rebuild affected kernels without CONFIG_XFS_ONLINE_REPAIR where online repair is not operationally required
- Perform offline xfs_repair during planned downtime as an alternative to online repair on unpatched systems
# Verify kernel version and XFS online repair configuration
uname -r
grep CONFIG_XFS_ONLINE_REPAIR /boot/config-$(uname -r)
# Temporarily disable scheduled online scrub/repair until patched
systemctl disable --now xfs_scrub_all.timer
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

