Skip to main content
Vulnerability Database/CVE-2026-97551

CVE-2026-97551: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-97551 is a privilege escalation flaw in the Linux kernel XFS filesystem that can cause system shutdowns through improper block reservation handling. This post explains its impact, affected versions, and mitigation steps.

Published:

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-97551 Overview

CVE-2026-97551 is a Linux kernel vulnerability in the XFS filesystem's parent pointer update path. The function xfs_parent_da_args_init() constructs an xfs_da_args structure from a zeroed xfs_parent_args allocation, leaving args->total set to zero. When xfs_da_grow_inode_int() subtracts from this field, the xfs_extlen_t (uint32_t) wraps to ~0U, bypassing the free-space check in xfs_alloc_space_available(). On an allocation group with zero available blocks, the allocation returns -ENOSPC, which xfs_defer_finish_noroll() escalates to a full filesystem shutdown.

Critical Impact

Attackers or workloads triggering attribute-fork growth on near-full XFS allocation groups can force a filesystem shutdown, resulting in denial of service for any workload backed by the affected XFS volume.

Affected Products

  • Linux kernel versions containing the XFS parent pointer feature prior to the referenced stable commits
  • Distributions shipping XFS with parent pointers enabled
  • Systems using XFS as the backing filesystem for container, database, or storage workloads

Discovery Timeline

  • 2026-09-25 - CVE-2026-97551 published to the National Vulnerability Database (NVD)
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97551

Vulnerability Analysis

The defect is a kernel-level uninitialized memory use combined with an integer underflow in the XFS directory and attribute (DA) code path. XFS parent pointers associate attribute entries with their parent directory for consistency checking and online repair. The initialization helper xfs_parent_da_args_init() relies on kmem_cache_zalloc(), which zeroes the xfs_parent_args structure. The derived xfs_da_args.total field, which represents a running block reservation, is therefore zero rather than a valid reservation count.

Downstream, xfs_da_grow_inode_int() decrements args->total as blocks are consumed during attribute fork growth. Because total is a uint32_t, the first decrement from zero wraps to 0xFFFFFFFF. The space-availability check in xfs_alloc_space_available() then interprets the massive residual reservation as sufficient and proceeds with allocation. When the targeted allocation group has no free blocks, the allocator clamps maxlen to zero and returns -ENOSPC. The deferred operation framework xfs_defer_finish_noroll() treats this failure during a transaction replay as unrecoverable and shuts down the filesystem.

Root Cause

The root cause is a missing field initialization. The log recovery path xfs_attri_recover_work() in xfs_attr_item.c correctly populates args->total before growing a fork, but the parent pointer add and replace paths did not. The fix mirrors the recovery path by setting args->total for operations that can grow the attribute fork while leaving removals and lookups unchanged.

Attack Vector

Triggering the condition requires local filesystem activity that performs rename or hardlink operations on an XFS volume with parent pointers enabled, where at least one allocation group is fully consumed. The vulnerability does not require elevated privileges beyond standard write access to the affected filesystem. Successful exploitation produces a filesystem shutdown rather than code execution or information disclosure.

The vulnerability manifests entirely within kernel allocation accounting. See the upstream commits linked in the references for the exact patch diffs.

Detection Methods for CVE-2026-97551

Indicators of Compromise

  • Kernel log entries containing XFS shutdown messages immediately following attribute or rename operations
  • -ENOSPC errors from xfs_defer_finish_noroll recorded in dmesg on volumes that are not actually full
  • Filesystem transitioning to read-only state during routine metadata operations
  • Unexpected xfs_force_shutdown entries in system logs correlated with parent pointer updates

Detection Strategies

  • Audit running kernel versions against the fixed commits referenced in the Linux kernel git tree
  • Monitor /var/log/messages and journald for XFS shutdown events paired with low-free-space warnings on specific allocation groups
  • Correlate filesystem shutdowns with workloads that heavily use rename, link, or extended attribute operations

Monitoring Recommendations

  • Collect XFS allocation group free-space telemetry using xfs_db or node-exporter metrics to identify groups near zero free blocks
  • Alert on any xfs_force_shutdown kernel message in production filesystems
  • Track kernel version drift across the fleet to confirm patch deployment

How to Mitigate CVE-2026-97551

Immediate Actions Required

  • Apply the stable kernel update containing the XFS parent pointer initialization fix
  • Identify hosts running XFS with parent pointers enabled via xfs_info /mountpoint and prioritize them for patching
  • Rebalance or expand XFS volumes approaching full allocation group utilization to reduce the likelihood of triggering the underflow

Patch Information

The fix is delivered through the Linux kernel stable tree. Reference commits include 8e4ebb6a, 9ad85bce, ac903288, and c66e138a. Install the distribution kernel package that incorporates these commits and reboot affected hosts.

Workarounds

  • Avoid creating new XFS filesystems with parent pointers (-n ptr=1) until the patched kernel is deployed
  • Maintain generous free-space headroom on XFS volumes to prevent any allocation group from reaching zero available blocks
  • Where feasible, migrate critical workloads to patched hosts before performing bulk rename or hardlink operations
bash
# Verify running kernel version and XFS parent pointer status
uname -r
xfs_info /path/to/mount | grep -i parent

# Check for XFS shutdown events in kernel log
dmesg | grep -Ei 'xfs.*(shutdown|ENOSPC)'

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.