CVE-2026-99406: xfs: fix lost errno returned from xfarray_foliosort
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix lost errno returned from xfarray_foliosort
LOLLM noticed that we stop the sort early but don't actually pass along the error code, which could enable repair code to continue running with an unsorted array. Fix that.
The Linux kernel CVE team has assigned CVE-2026-99406 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.9 with commit ee13fc67205b989c93c89a4800a4b1c84e448dde and fixed in 6.12.117 with commit 32a4e4be6af9d68283e333844997b2269312bf49 Issue introduced in 6.9 with commit ee13fc67205b989c93c89a4800a4b1c84e448dde and fixed in 6.18.61 with commit 5cdd8d436feba462a2f7a41bf04bc3bfe84c17fc Issue introduced in 6.9 with commit ee13fc67205b989c93c89a4800a4b1c84e448dde and fixed in 7.3.2 with commit 7322bbd8660abc3bbad7431d88245c38c6d7c2e7 Issue introduced in 6.9 with commit ee13fc67205b989c93c89a4800a4b1c84e448dde and fixed in 7.4-rc1 with commit 8c4f172c246717b1420f138a159ed15c315a58bd
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-99406
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/xfarray.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/32a4e4be6af9d68283e333844997b2269312bf49 https://git.kernel.org/stable/c/5cdd8d436feba462a2f7a41bf04bc3bfe84c17fc https://git.kernel.org/stable/c/7322bbd8660abc3bbad7431d88245c38c6d7c2e7 https://git.kernel.org/stable/c/8c4f172c246717b1420f138a159ed15c315a58bd