Skip to contentSkip to conversation

CVE-2026-97542: xfs: bail out on bitmap errors in xrep_agfl_fill

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

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: bail out on bitmap errors in xrep_agfl_fill

LOLLM also points out that the xagb_bitmap_set call in xrep_agfl_fill can fail, but we don't check the result of xagb_bitmap_walk, so we silently drop the error and proceed with inconsistent incore data. That shouldn't be allowed.

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

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

	Issue introduced in 6.6 with commit 014ad53732d2bac34d21a251f3622a4da516e21b and fixed in 6.12.111 with commit e49977bc568c2649cf1a37992e538df8e3779ee4
	Issue introduced in 6.6 with commit 014ad53732d2bac34d21a251f3622a4da516e21b and fixed in 6.18.53 with commit 82a0fd3fe908914425798b6be2b9b0a4f69ff84d
	Issue introduced in 6.6 with commit 014ad53732d2bac34d21a251f3622a4da516e21b and fixed in 7.2.7 with commit b5309ae6504e9b727d83bdfb2a19f44896a8f019
	Issue introduced in 6.6 with commit 014ad53732d2bac34d21a251f3622a4da516e21b and fixed in 7.3-rc3 with commit eaf580538eb1be3d162400d04c4b7dc4c627296b

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

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/agheader_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/e49977bc568c2649cf1a37992e538df8e3779ee4
	https://git.kernel.org/stable/c/82a0fd3fe908914425798b6be2b9b0a4f69ff84d
	https://git.kernel.org/stable/c/b5309ae6504e9b727d83bdfb2a19f44896a8f019
	https://git.kernel.org/stable/c/eaf580538eb1be3d162400d04c4b7dc4c627296b