Skip to contentSkip to conversation

CVE-2026-99412: xfs: avoid cross-rtgroup reaping after a repair

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

xfs: avoid cross-rtgroup reaping after a repair

LOLLM notices that the extents stored in a xrtb_bitmap (aka xfs_rtblock bitmap) can span multiple rtgroups due to two circumstances. The first is that the size of an rtgroup is an exact power of two, which means that rtgroups are adjacent in the segmented xfs_rtblock_t address space. This is fairly common to reduce the amount of multiplication and division needed to handle space on the rt volume.

The second is that (unlike in the original rtgroups design), rtgroups do not have fixed-location metadata like AGs do, which means that there's nothing to force a break between rtgroups.

Therefore, we must loop through the rtgroups in xreap_rtmeta_extent to avoid running off the end of an rtgroup while reaping.

The Linux kernel CVE team has assigned CVE-2026-99412 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.14 with commit fd97fe1112088c16594dcd45e809f1643e623309 and fixed in 6.18.61 with commit 84c0abd7e70fde9f2f61f06287dbee82734e664a
	Issue introduced in 6.14 with commit fd97fe1112088c16594dcd45e809f1643e623309 and fixed in 7.3.2 with commit d46e7803780d5f1a7bbb889f54ab400c30508f09
	Issue introduced in 6.14 with commit fd97fe1112088c16594dcd45e809f1643e623309 and fixed in 7.4-rc1 with commit d7c204d4ea7ef0cf0dac908388984c2936f1f94e

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-99412

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/reap.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/84c0abd7e70fde9f2f61f06287dbee82734e664a
	https://git.kernel.org/stable/c/d46e7803780d5f1a7bbb889f54ab400c30508f09
	https://git.kernel.org/stable/c/d7c204d4ea7ef0cf0dac908388984c2936f1f94e