CVE-2026-99411: xfs: actually lock the metafile reservation when adjusting after repair
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: actually lock the metafile reservation when adjusting after repair
LOLLM reported that xrep_reset_metafile_resv performs unlocked loads and stores to the metadata file space reservation counters and thus can race with other threads. Fix this by taking the lock.
The Linux kernel CVE team has assigned CVE-2026-99411 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 1df8d75030b787a9fae270b59b93eef809dd2011 and fixed in 6.18.61 with commit 83f274a69ba6379a50780a7cb117b9052d3a8e6f Issue introduced in 6.15 with commit 1df8d75030b787a9fae270b59b93eef809dd2011 and fixed in 7.3.2 with commit 45e05c784eee04fb78d8eb80d6635bd85482644a Issue introduced in 6.15 with commit 1df8d75030b787a9fae270b59b93eef809dd2011 and fixed in 7.4-rc1 with commit e53c620b3670fc0c162b5f768a10a3a17d0c04f6
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-99411
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/repair.c
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/83f274a69ba6379a50780a7cb117b9052d3a8e6f https://git.kernel.org/stable/c/45e05c784eee04fb78d8eb80d6635bd85482644a https://git.kernel.org/stable/c/e53c620b3670fc0c162b5f768a10a3a17d0c04f6