CVE-2026-80533: xfs: don't walk off the end of a null sc->sa.agi_bp in AGI repair
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: don't walk off the end of a null sc->sa.agi_bp in AGI repair
LOLLM noticed a longstanding bug where xrep_iunlink_walk_ondisk_bucket tries to walk ragi->sc->sa.agi_bp to rebuild the unlinked inode lists. Unfortunately, it's possible for agi_bp to be null if the buffer verifier fails, so we have to use ragi->agi_bp (which skips verifier checks) instead.
The Linux kernel CVE team has assigned CVE-2026-80533 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 6.12.105 with commit 43b4ecbc948a2e441804c9d7b772deb6b2e44e3d Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 6.18.46 with commit c36d7f68f1c2e7e528ad11044a0bd6a3016a6a03 Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 7.1.10 with commit a6cfd0e4bb1e5f4dd2a67fa99eab36bda47cf081 Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 7.2 with commit 1e96a00e0d3a00be6e4f368b2f18e2d345f813ce
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-80533
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
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/43b4ecbc948a2e441804c9d7b772deb6b2e44e3d https://git.kernel.org/stable/c/c36d7f68f1c2e7e528ad11044a0bd6a3016a6a03 https://git.kernel.org/stable/c/a6cfd0e4bb1e5f4dd2a67fa99eab36bda47cf081 https://git.kernel.org/stable/c/1e96a00e0d3a00be6e4f368b2f18e2d345f813ce