CVE-2026-99392: xfs: don't subtract excess usage twice when computing agf_btreeblks
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: don't subtract excess usage twice when computing agf_btreeblks
LOLLM noticed that the free space btree repair code calculates agf_btreeblks from the number of blocks we wrote to rebuild the free space btrees (minus the roots). That's correct. However, it observes that we subtract the "excess" reservation, which is not correct. Fix this accounting problem.
The Linux kernel CVE team has assigned CVE-2026-99392 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit 4bdfd7d15747b170ce93a06fafccaf20544b6684 and fixed in 6.12.117 with commit 7fd7a78cb5cce2a6fabd50cf77d059a10cbcf9b8 Issue introduced in 6.8 with commit 4bdfd7d15747b170ce93a06fafccaf20544b6684 and fixed in 6.18.61 with commit 3e8c3ed178c1e8a1cc93f773ed15c6e487c7885e Issue introduced in 6.8 with commit 4bdfd7d15747b170ce93a06fafccaf20544b6684 and fixed in 7.3.2 with commit 10fead7a6e6ec8ed9e2f749012163b19afc5b445 Issue introduced in 6.8 with commit 4bdfd7d15747b170ce93a06fafccaf20544b6684 and fixed in 7.4-rc1 with commit 4439b626fb5104204952aa2f169451688fb6be26
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99392
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/xfs/scrub/alloc_repair.c
fs/xfs/scrub/newbt.c
fs/xfs/scrub/newbt.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/7fd7a78cb5cce2a6fabd50cf77d059a10cbcf9b8 https://git.kernel.org/stable/c/3e8c3ed178c1e8a1cc93f773ed15c6e487c7885e https://git.kernel.org/stable/c/10fead7a6e6ec8ed9e2f749012163b19afc5b445 https://git.kernel.org/stable/c/4439b626fb5104204952aa2f169451688fb6be26