Skip to contentSkip to conversation

CVE-2026-99391: xfs: don't try to scrub self-referential dirent in metapath checker

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: don't try to scrub self-referential dirent in metapath checker

LOLLM observes that the _ilock_both helper will loop forever trying to double-lock the same inode if mpath->dp == sc->ip. Callers are not supposed to call us with parent == child because that makes no sense. Trigger an assertion, mark the scan incomplete, and return IO error so that this fails noisily.

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

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

	Issue introduced in 6.13 with commit b3c03efa5972f084e40104307dbe432359279cf2 and fixed in 6.18.61 with commit 1bde9463d75244ade3f870e34e9e60f2cb686c44
	Issue introduced in 6.13 with commit b3c03efa5972f084e40104307dbe432359279cf2 and fixed in 7.3.2 with commit 4fe6d43988e98c25e592b560b63d055c01a0046d
	Issue introduced in 6.13 with commit b3c03efa5972f084e40104307dbe432359279cf2 and fixed in 7.4-rc1 with commit 1e7337a3ecebab1bb2ba02187d88b94e5146e4f0

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

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/metapath.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/1bde9463d75244ade3f870e34e9e60f2cb686c44
	https://git.kernel.org/stable/c/4fe6d43988e98c25e592b560b63d055c01a0046d
	https://git.kernel.org/stable/c/1e7337a3ecebab1bb2ba02187d88b94e5146e4f0