CVE-2026-97548

xfs: fix the rtrmap and rtrefcount _maxlevels_ondisk functions

Published Sep 25, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

xfs: fix the rtrmap and rtrefcount _maxlevels_ondisk functions

The _maxlevels_ondisk functions are used to compute the size of
in-memory btree cursors for each btree type. Unfortunately, LOLLM
noticed that the rtrmap and rtrefcount versions of these functions
forget to account for the inode root, which means that we could access
beyond the end of the cursor given a sufficiently large btree. Fix
this.

Analysis

AI-generated

Technical impact

In the Linux kernel’s XFS filesystem, two internal functions that calculate the maximum number of in‑memory B‑tree cursor levels fail to include the inode root in their size calculation. This oversight can cause a cursor to reference memory beyond its allocated bounds when the underlying B‑tree is sufficiently large, leading to out‑of‑bounds memory reads or writes. The resulting kernel memory corruption can manifest as a crash or, if an attacker controls the data leading to the fault, could be a stepping stone to privilege escalation or arbitrary kernel code execution.

Affected Systems

All Linux kernel releases that include the unpatched XFS rtrmap and rtrefcount _maxlevels_ondisk functions are affected. The vulnerability resides in the kernel, so any system running a kernel version that predates the commit that introduces the fix is potentially vulnerable. Systems that use XFS for file storage are at risk, while kernels patched after the commit are safe.

Risk and Exploitability

Based on the description, it is inferred that an attacker would need local or privileged access to modify XFS metadata or create an excessively large B-tree to trigger the out-of-bounds access; the attack vector is likely local. The CVSS score of 7.8 indicates a high severity, but the EPSS score of less than 1% and the absence from CISA KEV suggest a low probability of exploitation in the wild. An attacker with local or privileged access could manipulate XFS to create an extremely large B-tree, triggering the out‑of‑bounds memory access. Although the attack surface is limited to systems using XFS and the need for kernel modification, the potential impact on confidentiality, integrity, and availability is significant in an unpatched environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that includes the patch for the XFS rtrmap and rtrefcount _maxlevels_ondisk functions.
  • If an official update is not yet available, manually cherry‑pick the commit 108114437915e61e88f88d1cbcc442c3f886a347e, apply it, and rebuild the kernel.
  • Consider disabling XFS usage or migrating affected volumes to a different supported filesystem, such as ext4 or btrfs, to eliminate the risk.
  • Monitor kernel logs and system integrity for signs of XFS‑related corruption or kernel panics, and enforce strict access controls to prevent privileged users from creating the large B‑tree conditions.

Generated by OpenCVE AI on October 1, 2026 at 10:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xfs: fix the rtrmap and rtrefcount _maxlevels_ondisk functions The _maxlevels_ondisk functions are used to compute the size of in-memory btree cursors for each btree type. Unfortunately, LOLLM noticed that the rtrmap and rtrefcount versions of these functions forget to account for the inode root, which means that we could access beyond the end of the cursor given a sufficiently large btree. Fix this.
Title xfs: fix the rtrmap and rtrefcount _maxlevels_ondisk functions
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:09 AM
Reserved
Sep 24, 2026, 4:01 PM
Status
Received
Published
Sep 25, 2026, 11:17 AM
Modified
Oct 19, 2026, 10:17 AM
Severity
Moderate
Public date
Sep 25, 2026, 12:00 AM