Skip to contentSkip to conversation

CVE-2026-99413: xfs: fix buffer overruns in xfs_ioc_attr_list

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: fix buffer overruns in xfs_ioc_attr_list

When we converted the al_offset array in struct xfs_attrlist into a VLA, the size of the object shrank by 4 bytes. Unfortunately, the buffer size validation in the attrlist ioctl wasn't updated to notice this, so the al_offset[0] assignment blindly writes off the end of the buffer. LOLLM noticed the omitted check and complained.

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

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

	Issue introduced in 6.5 with commit 371baf5c9750a258fee21d0cb8c8d683bb057429 and fixed in 6.12.117 with commit 426ba9b807dfda7a0f41754ce8689b2fda4ad36d
	Issue introduced in 6.5 with commit 371baf5c9750a258fee21d0cb8c8d683bb057429 and fixed in 6.18.61 with commit 173eb03891f4cf7f390521e66cdc5f203dbed591
	Issue introduced in 6.5 with commit 371baf5c9750a258fee21d0cb8c8d683bb057429 and fixed in 7.3.2 with commit 4fe8b75e3917113da8ae9d69a08ba9257e97b7c1
	Issue introduced in 6.5 with commit 371baf5c9750a258fee21d0cb8c8d683bb057429 and fixed in 7.4-rc1 with commit 0b9081a774ee7b9dff1e9ac3765b73c1d6bba5b2

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

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/xfs_handle.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/426ba9b807dfda7a0f41754ce8689b2fda4ad36d
	https://git.kernel.org/stable/c/173eb03891f4cf7f390521e66cdc5f203dbed591
	https://git.kernel.org/stable/c/4fe8b75e3917113da8ae9d69a08ba9257e97b7c1
	https://git.kernel.org/stable/c/0b9081a774ee7b9dff1e9ac3765b73c1d6bba5b2