# CVE-2026-98446: xfs: don't let hidden_space go negative in xfs_metafile_resv_init

- Severity: not scored yet
- 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 7% of CVEs (2026-12-01)
- Published: 2026-10-18T15:14:56.724Z
- Modified: 2026-10-19T10:18:53.727Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

xfs: don't let hidden_space go negative in xfs_metafile_resv_init

LOLLM points out that if the amount of fdblocks that we can reserve for
a metadata btree file goes below the space already used by that file,
then the hidden_space subtraction can underflow, causing
xfs_dec_fdblocks to subtract a huge amount of space.  We never want the
target to be less than the used sapce, so fix the logic that adjusts
dblocks_avail downwards.

Also fix an error in the adjacent comment.

(As written by CVE List.)

## Affected

- Linux Linux: from 1df8d75030b787a9fae270b59b93eef809dd2011 before 930a9c1c321efdaa3e7f8caecb0479cee3baf342; from 1df8d75030b787a9fae270b59b93eef809dd2011 before f0d8352a39f4a2e329ae45b71bb0d49e2ca0a6dc; from 1df8d75030b787a9fae270b59b93eef809dd2011 before 476582d754cdc5110f806001417fea6c77824c13; 6.15 (not affected: before 6.15; from 6.18.55 up to 6.18.*; from 7.2.9 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/930a9c1c321efdaa3e7f8caecb0479cee3baf342>
- <https://git.kernel.org/stable/c/f0d8352a39f4a2e329ae45b71bb0d49e2ca0a6dc>
- <https://git.kernel.org/stable/c/476582d754cdc5110f806001417fea6c77824c13>

## Sources

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

---

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