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-97548 Overview
CVE-2026-97548 is a Linux kernel vulnerability in the XFS filesystem's realtime reverse-mapping (rtrmap) and realtime reference-count (rtrefcount) btree implementations. The _maxlevels_ondisk helper functions used to size in-memory btree cursors fail to account for the inode root. A sufficiently large btree can trigger access beyond the end of the allocated cursor, producing an out-of-bounds memory access in kernel space. The flaw was identified by the LOLLM tooling and resolved upstream across stable kernel branches.
Critical Impact
A local user manipulating XFS realtime metadata can trigger kernel out-of-bounds memory access, leading to memory corruption, denial of service, or potential privilege escalation.
Affected Products
- Linux kernel versions containing the XFS realtime reverse-mapping (rtrmap) btree code
- Linux kernel versions containing the XFS realtime reference-count (rtrefcount) btree code
- Distributions shipping XFS with realtime subvolume support prior to the fixing commits
Discovery Timeline
- 2026-09-25 - CVE-2026-97548 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97548
Vulnerability Analysis
The XFS filesystem uses btree cursors to traverse on-disk structures. Each btree type exposes a _maxlevels_ondisk helper used to compute the maximum cursor size the kernel must allocate. For the realtime reverse-mapping btree (rtrmap) and the realtime reference-count btree (rtrefcount), the helper did not include the inode root level in its calculation.
When the kernel allocates a cursor based on the undersized value and later walks a btree whose depth exceeds that bound, the walk indexes past the end of the cursor allocation. The result is an out-of-bounds read or write in kernel heap memory. Exploitation requires local access and some user interaction to mount or operate on a crafted XFS realtime volume.
Root Cause
The root cause is an off-by-one accounting error in the rtrmap and rtrefcount versions of the _maxlevels_ondisk functions. The inode root occupies a level in the on-disk btree layout but was omitted when the maximum level count was calculated. In-memory cursor allocation therefore underestimates the number of levels a legitimate but large btree can contain, producing a classic Out-of-Bounds Write/Read condition in a core filesystem code path.
Attack Vector
The attack requires local access to a system with XFS realtime support and the ability to introduce or operate on a specifically crafted XFS image. An attacker provides a filesystem whose rtrmap or rtrefcount btree exceeds the depth assumed by the buggy helper. When the kernel mounts or operates on the volume, cursor operations access memory beyond the cursor allocation. Successful exploitation can corrupt adjacent kernel structures, impacting confidentiality, integrity, and availability.
No verified public exploit code is available. The fix is distributed as kernel commits 108114437915, 84316cb25af9, and aa301322f72f on git.kernel.org.
Detection Methods for CVE-2026-97548
Indicators of Compromise
- Unexpected kernel oops, panic, or BUG: KASAN: slab-out-of-bounds entries referencing XFS btree cursor functions in dmesg or /var/log/kern.log.
- Mount or filesystem operations on XFS realtime volumes that terminate with filesystem shutdown events logged by XFS.
- Introduction of untrusted XFS images, loop-mounted filesystems, or removable media containing XFS realtime subvolumes.
Detection Strategies
- Enable KASAN on test or canary hosts to surface the out-of-bounds access during XFS realtime workloads.
- Audit running kernel versions against the fixing commits (108114437915, 84316cb25af9, aa301322f72f) using configuration management tooling.
- Alert on repeated XFS filesystem shutdowns or corruption events, which can signal attempted exploitation of malformed btrees.
Monitoring Recommendations
- Centralize kernel ring-buffer and syslog data to detect XFS-related faults across the fleet.
- Track mount events for removable or user-supplied block devices on multi-user Linux systems.
- Monitor privileged process behavior following any XFS fault to identify follow-on activity consistent with privilege escalation attempts.
How to Mitigate CVE-2026-97548
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced by commits 108114437915e61e8f88d1cbcc442c3f886a347e, 84316cb25af95a60e655ccc8fe646bb5ad631b71, and aa301322f72f82f26e4ba0826018d41388ab9896.
- Update to distribution kernel builds that incorporate the fix once released by the vendor.
- Restrict the ability of unprivileged users to mount arbitrary XFS images, including loopback and removable-media mounts.
Patch Information
The fix updates the rtrmap and rtrefcount implementations of _maxlevels_ondisk to account for the inode root when computing the maximum cursor depth. Patches are available via the stable kernel tree. See the kernel.org commit 1081144379, kernel.org commit 84316cb25a, and kernel.org commit aa301322f7.
Workarounds
- Disable or avoid use of the XFS realtime subvolume feature where it is not required.
- Prevent non-administrative users from attaching untrusted block devices or XFS images to the system.
- Where feasible, convert affected volumes to XFS configurations that do not use the realtime device until a patched kernel is deployed.
# Verify running kernel and look for XFS realtime btree fault signatures
uname -r
dmesg | grep -E 'xfs|rtrmap|rtrefcount|KASAN'
# Restrict mounting of untrusted block devices (example: udev rule placeholder)
# Review /etc/fstab and remove 'user' or 'users' mount options from untrusted entries
grep -E 'user[s]?' /etc/fstab
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

