Skip to contentSkip to conversation

CVE-2026-97543: xfs: destroy seen inode bitmap when we fail to add a dirpath

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: destroy seen inode bitmap when we fail to add a dirpath

LOLLM observes a memory leak in xchk_dirtree_create_path if we create the directory path object but appending the name to the path fails. When this happens, we don't tear down the (empty) seen inode bitmap. This is a pretty trivial error, but let's not leave logic bombs.

Do the same for a similar bug in xrep_dirtree_create_adoption_path.

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

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

	Issue introduced in 6.10 with commit 928b721a11789a9363d6d7c32a1f3166a79f3b5f and fixed in 6.12.111 with commit 3b10ca4302ee2dda4233f70b2033883ee376fa6a
	Issue introduced in 6.10 with commit 928b721a11789a9363d6d7c32a1f3166a79f3b5f and fixed in 6.18.53 with commit 0b756de8167f2f06ffceadc71cb17c1fc7be4be8
	Issue introduced in 6.10 with commit 928b721a11789a9363d6d7c32a1f3166a79f3b5f and fixed in 7.2.7 with commit 582f54dce62043f7a0503ab8c76d718d0293da59
	Issue introduced in 6.10 with commit 928b721a11789a9363d6d7c32a1f3166a79f3b5f and fixed in 7.3-rc3 with commit 1a441c6842da75c5b862cc1c9f7969d6a93b54b9

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

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/dirtree.c
fs/xfs/scrub/dirtree_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/3b10ca4302ee2dda4233f70b2033883ee376fa6a
	https://git.kernel.org/stable/c/0b756de8167f2f06ffceadc71cb17c1fc7be4be8
	https://git.kernel.org/stable/c/582f54dce62043f7a0503ab8c76d718d0293da59
	https://git.kernel.org/stable/c/1a441c6842da75c5b862cc1c9f7969d6a93b54b9