CVE-2026-99398: xfs: always forget cached ACLs if the attr fork swap succeeds
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: always forget cached ACLs if the attr fork swap succeeds
LOLLM complains that xrep_xattr_rebuild_tree omits the xfs_forget_acl call if the attr fork swap succeeds (and hence the acls might have changed) but reaping the old attr fork fails. Fix it so that we always purge the cached acls if the swap succeeds, even if subsequent steps do not. This avoids some cache coherency problems with access controls.
The Linux kernel CVE team has assigned CVE-2026-99398 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.10 with commit e47dcf113ae348678143cc935a1183059c02c9ad and fixed in 6.12.117 with commit f56d0d49f555db88cac92b20dcc988664c72c280 Issue introduced in 6.10 with commit e47dcf113ae348678143cc935a1183059c02c9ad and fixed in 6.18.61 with commit 8cce27911eb3f8bb16f04b0a913277de6b7506b4 Issue introduced in 6.10 with commit e47dcf113ae348678143cc935a1183059c02c9ad and fixed in 7.3.2 with commit 2430132937e9ce5c6144db0de27439c31d189229 Issue introduced in 6.10 with commit e47dcf113ae348678143cc935a1183059c02c9ad and fixed in 7.4-rc1 with commit 41ee987f53785b9443388a756912b1a0fe3c9592
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-99398
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/attr_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/f56d0d49f555db88cac92b20dcc988664c72c280 https://git.kernel.org/stable/c/8cce27911eb3f8bb16f04b0a913277de6b7506b4 https://git.kernel.org/stable/c/2430132937e9ce5c6144db0de27439c31d189229 https://git.kernel.org/stable/c/41ee987f53785b9443388a756912b1a0fe3c9592