CVE-2026-99393: xfs: don't overrun incore inode when cleaning attr forks
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: don't overrun incore inode when cleaning attr forks
LOLLM noticed that xrep_dinode_check_afork doesn't check for a di_forkoff value that is so large that the attr fork would begin after the end of the inode space. This causes afork_{ptr,size} to be nonsense. What we really ought to do here is zap the attr fork.
The Linux kernel CVE team has assigned CVE-2026-99393 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit e744cef206055954517648070d2b3aaa3d2515ba and fixed in 6.12.117 with commit 4a6217e7bdf3b1cdd28799d19c175cb3bad375ec Issue introduced in 6.8 with commit e744cef206055954517648070d2b3aaa3d2515ba and fixed in 6.18.61 with commit 6b93f0aeb8815a3ad296492e97173f9fc137340e Issue introduced in 6.8 with commit e744cef206055954517648070d2b3aaa3d2515ba and fixed in 7.3.2 with commit 471e4ae43cc5f931430f7701df45ce82c8afc05d Issue introduced in 6.8 with commit e744cef206055954517648070d2b3aaa3d2515ba and fixed in 7.4-rc1 with commit c28b4b48deac17749ed1ebe4289a4ba73541ddc6
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-99393
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/inode_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/4a6217e7bdf3b1cdd28799d19c175cb3bad375ec https://git.kernel.org/stable/c/6b93f0aeb8815a3ad296492e97173f9fc137340e https://git.kernel.org/stable/c/471e4ae43cc5f931430f7701df45ce82c8afc05d https://git.kernel.org/stable/c/c28b4b48deac17749ed1ebe4289a4ba73541ddc6