# CVE-2026-97548: xfs: fix the rtrmap and rtrefcount _maxlevels_ondisk functions

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2026-09-25T10:21:42.239Z
- Modified: 2026-10-19T10:17:23.790Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0 before 108114437915e61e8f88d1cbcc442c3f886a347e; from 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0 before 84316cb25af95a60e655ccc8fe646bb5ad631b71; from 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0 before aa301322f72f82f26e4ba0826018d41388ab9896; 6.14 (not affected: before 6.14; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/108114437915e61e8f88d1cbcc442c3f886a347e>
- <https://git.kernel.org/stable/c/84316cb25af95a60e655ccc8fe646bb5ad631b71>
- <https://git.kernel.org/stable/c/aa301322f72f82f26e4ba0826018d41388ab9896>

## Sources

- CVE List: [CVE-2026-97548](https://www.cve.org/CVERecord?id=CVE-2026-97548), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-97548](https://nvd.nist.gov/vuln/detail/CVE-2026-97548), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-97548 · Whole record: https://cve.day/CVE-2026-97548.json · Rebuilt by cve.day 2026-11-25T22:59:40.953Z
