CVE-2026-99390: xfs: fix correction of unwritten extents in quota file data fork
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
xfs: fix correction of unwritten extents in quota file data fork
LOLLM noticed a couple of problems with the code that fixes unwritten mappings in the quota file's data fork: first, we should zero the ondisk contents as part of converting them to "unwritten" just in case we crash shortly after the conversion. Second, and more importantly, it noticed that we fail to resynchronize the iext tree cursor after modifying the iext tree. If the tree shape changes, we could be in a world of hurt. Third, we should force a quotacheck if we reset an ondisk dquot. Fix all issues.
The Linux kernel CVE team has assigned CVE-2026-99390 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.8 with commit a5b91555403e3a09ae00bed85fc78b60801dda24 and fixed in 6.12.117 with commit d81cc4b379f0ad4cad022896a174313fdba5a780 Issue introduced in 6.8 with commit a5b91555403e3a09ae00bed85fc78b60801dda24 and fixed in 6.18.61 with commit 9702d68ad6264299994b188d2c835dd062a45217 Issue introduced in 6.8 with commit a5b91555403e3a09ae00bed85fc78b60801dda24 and fixed in 7.3.2 with commit 696ef990e101edb4489782301f5a39cfc496bb9d Issue introduced in 6.8 with commit a5b91555403e3a09ae00bed85fc78b60801dda24 and fixed in 7.4-rc1 with commit 6f2792720673f569fa3e1f68181b9d6fd26802b5
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-99390
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/quota_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/d81cc4b379f0ad4cad022896a174313fdba5a780 https://git.kernel.org/stable/c/9702d68ad6264299994b188d2c835dd062a45217 https://git.kernel.org/stable/c/696ef990e101edb4489782301f5a39cfc496bb9d https://git.kernel.org/stable/c/6f2792720673f569fa3e1f68181b9d6fd26802b5