Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C59F3C7E1B for ; Wed, 22 Apr 2026 13:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866116; cv=none; b=QyHqjymvrl6cdygLt/GVfhvKrEMt2LVzxRgKG3qdz5WorOcmKI+4TSJxibDYA/ShRC6xJWBtxkREV5gHtNylLZn+IbCS+08ExKbKiLmIp91LOPiIbOjtl7TN/DDDU9UEKgIcByP8nzAJkIy5Wayg6rDZJwdTWvL0mEVpxcJEOS0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866116; c=relaxed/simple; bh=lcmsF/brwzTqtePZUP41XKnoGz6VPut7ulDd/P6H4/k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ADsDLhlt+Bspf+Rx5iyyYer92kluxBBLvsFtPr+S2kAplZn/lCnInsV7CngJyTWM6vDejI8uzLjdin2pqVaidXrFSFeoG3AkpNuYfeYj0K5TDppEg7jNcPK5/Q1hBQJeZZgFXpSsszGzTNr3eK+FD/XU0NrlAp5Bx1bVYsPYWC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WTaOGi2n; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WTaOGi2n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D9D0C19425; Wed, 22 Apr 2026 13:55:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866115; bh=lcmsF/brwzTqtePZUP41XKnoGz6VPut7ulDd/P6H4/k=; h=From:To:Cc:Subject:Date:Reply-To:From; b=WTaOGi2nuJJklahkMg6P+w9GVznAHKEpqI/NGo1qZ+9QESuQy2xvXgtm24U6/F/xn DMy6UmITbzI7W6CK8fnJjv/C+F7zVLA024OLkvSTalUIZjKXJmTnzbcu2jwMaYdetp 2GGXYM9AckKk0Gq9T/Tso2o1HHkT422krReb7WlM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31455: xfs: stop reclaim before pushing AIL during unmount Date: Wed, 22 Apr 2026 15:54:01 +0200 Message-ID: <2026042249-CVE-2026-31455-1c26@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3785; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=c+HF2b/BYs3dQ5jPZPufKjdSDw2PxBf05N0/yfGjkIo=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLr01Crsu9+ejjvx5qQs7by94uOFVtkF3UVLhi1kfp 1hpJMSyd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBETrUyzLP/F6mVdcqC6/nf dUnpT+QnnHH8MoVhfpXc7j1KL+YVvH7OnNwgsnHTivVcLwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: xfs: stop reclaim before pushing AIL during unmount The unmount sequence in xfs_unmount_flush_inodes() pushed the AIL while background reclaim and inodegc are still running. This is broken independently of any use-after-free issues - background reclaim and inodegc should not be running while the AIL is being pushed during unmount, as inodegc can dirty and insert inodes into the AIL during the flush, and background reclaim can race to abort and free dirty inodes. Reorder xfs_unmount_flush_inodes() to stop inodegc and cancel background reclaim before pushing the AIL. Stop inodegc before cancelling m_reclaim_work because the inodegc worker can re-queue m_reclaim_work via xfs_inodegc_set_reclaimable. The Linux kernel CVE team has assigned CVE-2026-31455 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 5.10.253 with commit e6cc490048f78b009259a5f032acead9f789c34c Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 5.15.203 with commit 239d734c00644072862fa833805c4471573b1445 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.1.168 with commit bda27fc0b4eb3a425d9a18475c4cb94fbe862c60 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.6.131 with commit d38135af04a3ad8a585c899d176efc8e97853115 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.12.80 with commit a89434a6188d8430ea31120da96e3e4cefb58686 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.18.21 with commit 8147e304d7d32fd5c3e943babc296ce2873dc279 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.19.11 with commit 558e3275d8a3b101be18a7fe7d1634053e9d9b07 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 7.0 with commit 4f24a767e3d64a5f58c595b5c29b6063a201f1e3 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-31455 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/xfs_mount.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/e6cc490048f78b009259a5f032acead9f789c34c https://git.kernel.org/stable/c/239d734c00644072862fa833805c4471573b1445 https://git.kernel.org/stable/c/bda27fc0b4eb3a425d9a18475c4cb94fbe862c60 https://git.kernel.org/stable/c/d38135af04a3ad8a585c899d176efc8e97853115 https://git.kernel.org/stable/c/a89434a6188d8430ea31120da96e3e4cefb58686 https://git.kernel.org/stable/c/8147e304d7d32fd5c3e943babc296ce2873dc279 https://git.kernel.org/stable/c/558e3275d8a3b101be18a7fe7d1634053e9d9b07 https://git.kernel.org/stable/c/4f24a767e3d64a5f58c595b5c29b6063a201f1e3