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-98447 Overview
CVE-2026-98447 is a memory corruption vulnerability in the Linux kernel's XFS filesystem. The flaw resides in the on-disk realtime refcount (rtrefcount) btree root formatting routines. These methods copy too many bytes during inode btree root formatting because node blocks contain only one set of keys, not two. The resulting memcpy overrun corrupts memory located beyond the destination buffer.
Critical Impact
An out-of-bounds write triggered during XFS realtime refcount btree root formatting can corrupt adjacent kernel memory, leading to filesystem instability, kernel panic, or potential privilege escalation on affected systems.
Affected Products
- Linux kernel (upstream) versions containing the XFS rtrefcount btree root formatting code
- Distributions shipping affected kernel builds with XFS realtime refcount support enabled
- Systems using XFS filesystems with realtime refcount btree features
Discovery Timeline
- 2026-10-18 - CVE-2026-98447 published to the National Vulnerability Database (NVD)
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98447
Vulnerability Analysis
The vulnerability affects XFS code responsible for formatting on-disk realtime refcount (rtrefcount) btree roots. The affected inode btree root formatting methods incorrectly copy twice the required number of key bytes. Node blocks in this btree layout contain a single set of keys, but the formatter treats them as if two sets exist.
The oversized memcpy writes past the end of the intended destination buffer. This produces an out-of-bounds write [CWE-787] into whatever kernel memory follows the buffer. Depending on allocator layout, the overwritten region may contain unrelated kernel objects, filesystem metadata, or control structures.
The issue was identified by a tool referenced as LOLLM in the upstream commit message. The fix is tracked in Linux kernel commits 2703b954d306, d46492fb8018, and fe2f9135df43.
Root Cause
The root cause is an incorrect byte count passed to memcpy during serialization of rtrefcount btree node roots. The formatting routine assumed the node layout mirrored structures containing two key sets. The actual on-disk node layout stores one key set, so the computed length is double the required value. This mismatch produces a buffer overrun on every invocation involving a node-form root.
Attack Vector
Triggering the condition requires operations that cause XFS to format an rtrefcount btree root into an inode fork. A local actor able to mount or manipulate XFS filesystems with realtime refcount features, or workloads that exercise reflink or shared-extent operations on realtime devices, can reach the vulnerable path. Successful exploitation corrupts adjacent kernel memory, with impact ranging from denial of service to memory-safety primitives suitable for further exploitation. No public proof-of-concept exploit is referenced in the advisory data.
See the upstream fix for implementation details: Kernel Git Commit 2703b95, Kernel Git Commit d46492f, and Kernel Git Commit fe2f913.
Detection Methods for CVE-2026-98447
Indicators of Compromise
- Unexpected kernel oops or panic traces referencing XFS rtrefcount btree code paths or xfs_rtrefcountbt_* symbols.
- KASAN or SLUB debug reports flagging out-of-bounds writes originating in XFS btree root formatting functions.
- Filesystem corruption warnings or XFS_CORRUPTION_ERROR entries in dmesg after reflink or shared-extent activity on realtime devices.
Detection Strategies
- Enable kernel hardening features such as KASAN and SLUB_DEBUG on test systems to catch the out-of-bounds write before deployment.
- Audit installed kernel package versions against distribution advisories referencing commits 2703b954d306, d46492fb8018, and fe2f9135df43.
- Correlate XFS error messages with workloads performing reflink, snapshot, or refcount operations on realtime devices.
Monitoring Recommendations
- Forward kernel ring buffer and journald output to a central log platform and alert on XFS corruption, BUG, or KASAN strings.
- Monitor filesystem mount flags and feature bits to inventory hosts using XFS realtime refcount capabilities.
- Track kernel package upgrade status across the fleet to confirm patch coverage over time.
How to Mitigate CVE-2026-98447
Immediate Actions Required
- Identify Linux hosts running XFS with realtime refcount features enabled and prioritize them for patching.
- Apply the latest stable kernel update from your distribution that includes commits 2703b954d306, d46492fb8018, and fe2f9135df43.
- Reboot patched systems to activate the fixed kernel image.
- Restrict local accounts that can mount arbitrary filesystems or craft XFS images until patches are deployed.
Patch Information
The upstream fix corrects the byte count used when formatting on-disk rtrefcount btree roots so that only the single key set present in node blocks is copied. The relevant commits are Kernel Git Commit 2703b95, Kernel Git Commit d46492f, and Kernel Git Commit fe2f913. Consult your distribution's security advisories for backported package versions.
Workarounds
- Avoid provisioning new XFS filesystems with realtime refcount features on unpatched kernels.
- Restrict mount privileges and disable automatic mounting of untrusted removable media that may contain crafted XFS images.
- Where feasible, migrate critical workloads off XFS realtime devices until patched kernels are deployed.
# Verify running kernel version and XFS feature usage
uname -r
xfs_info /path/to/mount | grep -E 'rtreflink|reflink|realtime'
# Example patch deployment on Debian/Ubuntu
sudo apt update && sudo apt install --only-upgrade linux-image-$(uname -r | cut -d- -f3-)
sudo reboot
# Example patch deployment on RHEL/CentOS/Rocky
sudo dnf update kernel
sudo reboot
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

