Skip to contentSkip to conversation

CVE-2026-99791: xfs: improve dirent bounds checking in scrub and repair

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

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: improve dirent bounds checking in scrub and repair

LOLLM complains that we don't do enough bounds checking of the directory entries in directory blocks when we're looking for errors or trying to salvage entries. Let's improve that with more detailed checks.

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

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

	Issue introduced in 4.16 with commit ce92d29ddf9908d397895c46b7c78e9db8df414d and fixed in 6.12.118 with commit 119778a329881e043920e198d97b7fdd4debad19
	Issue introduced in 4.16 with commit ce92d29ddf9908d397895c46b7c78e9db8df414d and fixed in 6.18.64 with commit d7b9258b930b42a1681171027d0331d2d7e60c7c
	Issue introduced in 4.16 with commit ce92d29ddf9908d397895c46b7c78e9db8df414d and fixed in 7.3.5 with commit f365dc588b2a327e693f3203dd1897bd749f6c32
	Issue introduced in 4.16 with commit ce92d29ddf9908d397895c46b7c78e9db8df414d and fixed in 7.4-rc1 with commit 5d470234d04dae6fe2ca2cf4b9ef277b78c7e05a

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

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/dir.c
fs/xfs/scrub/dir_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/119778a329881e043920e198d97b7fdd4debad19
	https://git.kernel.org/stable/c/d7b9258b930b42a1681171027d0331d2d7e60c7c
	https://git.kernel.org/stable/c/f365dc588b2a327e693f3203dd1897bd749f6c32
	https://git.kernel.org/stable/c/5d470234d04dae6fe2ca2cf4b9ef277b78c7e05a