CVE-2026-80532: xfs: fix another iunlink infinite loop bug in online fsck
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix another iunlink infinite loop bug in online fsck
xrep_iunlink_resolve_bucket is supposed to reconstruct as much of the incore prev and next unlinked list pointers based on what it finds on disk and in memory before we move on to relinking the truly lost inodes back into the unlinked list. However, it's still vulnerable to infinite loops that come in via the next_unlinked pointers.
Fix this problem by remembering which inodes we've already seen and checking new agino pointers against that. If a bit is already set, either this is a loop or the inode has nonzero link count. We'll deal with the second case in a subsequent patch.
The Linux kernel CVE team has assigned CVE-2026-80532 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 6.12.105 with commit 24aec8c88539a382355761a9b924046885b6be40 Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 6.18.46 with commit b6baf0db357fb84f3f3cfd33383a00de71a5a1c3 Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 7.1.10 with commit 23690064f235a88a00c04f2e49f36bfb54ae560d Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 7.2 with commit 6d67c6b99f1fc07c64b97fcbc974c6f1ada7f622
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-80532
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/agheader_repair.c
fs/xfs/scrub/trace.h
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/24aec8c88539a382355761a9b924046885b6be40 https://git.kernel.org/stable/c/b6baf0db357fb84f3f3cfd33383a00de71a5a1c3 https://git.kernel.org/stable/c/23690064f235a88a00c04f2e49f36bfb54ae560d https://git.kernel.org/stable/c/6d67c6b99f1fc07c64b97fcbc974c6f1ada7f622