Linux
xfs: fix the rtrmap and rtrefcount _maxlevels_ondisk functions
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0, < 108114437915e61e8f88d1cbcc442c3f886a347e
- >= 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0, < 84316cb25af95a60e655ccc8fe646bb5ad631b71
- >= 9abe03a0e4f978615a2b1b484b8d09ca84c16ea0, < aa301322f72f82f26e4ba0826018d41388ab9896
Fixed in 108114437915e61e8f88d1cbcc442c3f886a347e, 84316cb25af95a60e655ccc8fe646bb5ad631b71, aa301322f72f82f26e4ba0826018d41388ab9896
- 6.14
Fixed in 0, 6.18.53, 7.2.7, 7.3
Mitigation
Upgrade Linux to 108114437915e61e8f88d1cbcc442c3f886a347e or 84316cb25af95a60e655ccc8fe646bb5ad631b71 or aa301322f72f82f26e4ba0826018d41388ab9896 or later.
Upgrade Linux to 0 or 6.18.53 or 7.2.7 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.