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-98445 Overview
CVE-2026-98445 affects the Linux kernel's XFS filesystem, specifically the online repair subsystem. A memory allocation failure in xrep_newbt_add_blocks can leak previously allocated btree blocks and force the filesystem offline. The underlying issue is architectural: callers cannot both undo the transaction and return the error. Either all changes are committed, or the filesystem shuts down. The upstream fix converts the small (~48 byte) btree space reservation allocation to NOFAIL, eliminating the failure path entirely.
Critical Impact
A failed memory allocation during XFS online repair can leak filesystem blocks and trigger an unrecoverable filesystem shutdown.
Affected Products
- Linux kernel (XFS filesystem, online repair functionality)
- Distributions shipping affected stable kernel branches prior to the referenced fix commits
- Systems with XFS online repair enabled
Discovery Timeline
- 2026-10-18 - CVE-2026-98445 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98445
Vulnerability Analysis
The vulnerability resides in the XFS online repair subsystem, which rebuilds damaged metadata structures while the filesystem is mounted. During a repair operation, xrep_newbt_add_blocks allocates a small reservation object (~48 bytes) that tracks blocks earmarked for writing a new btree.
If the kernel memory allocator returns failure for this allocation, the calling code encounters a structural limitation. The transaction cannot be rolled back while simultaneously propagating the error upward. The two available outcomes are both unacceptable: commit the partial changes and leak the already-allocated btree blocks, or shut down the filesystem to preserve consistency.
The practical result is that transient memory pressure during an online repair can convert into permanent block leakage or an unexpected filesystem shutdown [CWE-401, CWE-754].
Root Cause
The root cause is a design mismatch between the error-handling contract of xrep_newbt_add_blocks and the transactional semantics of XFS. Callers are forced to choose between error propagation and transaction rollback. Combined with a failable allocation on the hot path, any kernel memory pressure triggers the condition.
Attack Vector
This issue is a reliability and data-integrity defect rather than a remotely exploitable flaw. Triggering it requires memory exhaustion conditions on a host actively running XFS online repair. No authentication bypass, privilege escalation, or remote code execution path has been published. The externally visible impact is denial of service through forced filesystem shutdown and silent block leakage.
The upstream patches resolve the issue by issuing the small reservation allocation with __GFP_NOFAIL, so the allocator loops until memory is available rather than returning an error the caller cannot handle.
Detection Methods for CVE-2026-98445
Indicators of Compromise
- Kernel log entries indicating XFS online repair shutdown or xrep_newbt_add_blocks failures
- Unexplained drops in reported free space on XFS volumes following repair activity
- xfs_scrub or xfs_repair reporting block accounting discrepancies after online repair runs
Detection Strategies
- Audit installed kernel versions against the four stable fix commits (0e0d337, 3380151, ab1c416, b15c79f) referenced in the kernel.org advisory.
- Correlate memory-pressure events (OOM kill logs, high MemAvailable dips) with XFS repair activity on the same host.
- Baseline XFS filesystem free-space metrics and alert on unexplained reductions following online repair operations.
Monitoring Recommendations
- Forward dmesg and /var/log/messages to a centralized log platform and alert on XFS error strings referencing repair, shutdown, or allocation failure.
- Monitor filesystem shutdown events (XFS_FORCED_SHUTDOWN) across the fleet.
- Track kernel package versions in configuration management to confirm patched builds are deployed.
How to Mitigate CVE-2026-98445
Immediate Actions Required
- Inventory Linux hosts running XFS with online repair enabled and identify kernels missing the referenced stable fixes.
- Schedule kernel updates to a stable release containing commits 0e0d3372a840, 3380151cf0ce, ab1c416d2377, or b15c79fca280.
- Avoid initiating online repair operations under memory pressure until patched kernels are deployed.
Patch Information
Fixes have been merged across multiple stable branches. See the upstream commits: Kernel Git Commit 0e0d337, Kernel Git Commit 3380151, Kernel Git Commit ab1c416, and Kernel Git Commit b15c79f. Apply the vendor-supplied kernel update appropriate to your distribution.
Workarounds
- Defer or disable XFS online repair (xfs_scrub -r) on affected hosts until patched kernels are installed.
- Ensure adequate free memory headroom on hosts that must run online repair; consider reserving memory via cgroup limits on other workloads.
- Run xfs_repair offline during maintenance windows as an alternative to online repair where feasible.
# Verify installed kernel against patched stable commits
uname -r
rpm -q kernel # RHEL/CentOS/Fedora
dpkg -l | grep linux-image # Debian/Ubuntu
# Temporarily disable scheduled online scrub/repair timers
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

