xfs: fix the rtrmap and rtrefcount _maxlevels_ondisk functions
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.537.2.77.3In 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.
From the CVE record · Linux
The XFS rtrmap and rtrefcount _maxlevels_ondisk functions fail to account for the inode root when sizing in-memory btree cursors. A sufficiently large btree could cause access beyond the end of a cursor. The input does not specify how an attacker could trigger this or whether access or user interaction is required.
Engineers running Linux kernels with XFS should check their versions; affected versions are not specified.