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 1D18B26E6E1 for ; Wed, 22 Apr 2026 13:54:49 +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=1776866090; cv=none; b=UepcUwM7y6LnngHjwhy9lnH3dtdkfvNyG9Dhktuew/D16rUNzWgd5xWz8TO+sOvqFghtaHvKvlmRtjND4BUNtc14E4g+V6n5UgRrNWHq/xTlzpEwPpBhr20ZtNnrHlLvWVoWloy4p5T4TJuC+L9qDMiA04lWRuch3+FekfGKjGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866090; c=relaxed/simple; bh=OS92Acp1ddFp0RoYDIKEbXJOD5kxF6slS0qZS4DQlNk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mO9kJPT8gKfa0ikWqEhMFt0euRtEWPPJDg6bd5BektgVhH0lEjeMTeSrhWxeC6m3Xhrcf+keKqrJBzWh21hzso09ZdVQIRUooxcxesajg8eEjdElBEu4p1UwAMpljIvocUdBq0JAv0/nXTZnqEKEhg6wjrwMt93qBiXQDxcJxJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xCogXKD8; 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="xCogXKD8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F0D1C19425; Wed, 22 Apr 2026 13:54:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866089; bh=OS92Acp1ddFp0RoYDIKEbXJOD5kxF6slS0qZS4DQlNk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=xCogXKD8wPp7VJh5FLYvGFkMzdLlID2p3E48p6ZSJCttjexGUwoDaLGj+BwGleW3w FVOoHJCDN7XfO9CX4l8jAaJNgGaIAgke/NaCtgC3gyJlE18+UQ2ZhL61dHc4Fy/94a O9gmdLhPPf9osdl/lUjpBm0IiiHSbDZ9WDaGSubo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31453: xfs: avoid dereferencing log items after push callbacks Date: Wed, 22 Apr 2026 15:53:59 +0200 Message-ID: <2026042248-CVE-2026-31453-6c3f@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=3261; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Kb3U1/c99QHh4TYTUvXpQjEl8+7JAToYmJS06tG4jEo=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLr1hTsvi794285ylWCnD70nxyoZTLv5a1NnwY8Ljv xsu3flr3xHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQAT+XCFYcGSt7/5H611vVyn GjN74UEJDpVvHzIYFmwzOVocmHr1fH+K2pE2nyN8vaWevAA= 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: avoid dereferencing log items after push callbacks After xfsaild_push_item() calls iop_push(), the log item may have been freed if the AIL lock was dropped during the push. Background inode reclaim or the dquot shrinker can free the log item while the AIL lock is not held, and the tracepoints in the switch statement dereference the log item after iop_push() returns. Fix this by capturing the log item type, flags, and LSN before calling xfsaild_push_item(), and introducing a new xfs_ail_push_class trace event class that takes these pre-captured values and the ailp pointer instead of the log item pointer. The Linux kernel CVE team has assigned CVE-2026-31453 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.1.168 with commit c8a2ab339b88d10fc34a3318c92f07d8a467019d Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.6.131 with commit 7121b22b0bac89394cc4c6a54b5aebc15347bdf5 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.12.80 with commit c4d603e8e58a3bf35480135ccca2b4f7238abda5 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.18.21 with commit 95fb5d643cc70959baa54cd17f52f80ffc3295e7 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 6.19.11 with commit 451c6329d9afa45862c36fe6677eb7750db60617 Issue introduced in 5.9 with commit 90c60e16401248a4900f3f9387f563d0178dcf34 and fixed in 7.0 with commit 79ef34ec0554ec04bdbafafbc9836423734e1bd6 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-31453 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_trace.h fs/xfs/xfs_trans_ail.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/c8a2ab339b88d10fc34a3318c92f07d8a467019d https://git.kernel.org/stable/c/7121b22b0bac89394cc4c6a54b5aebc15347bdf5 https://git.kernel.org/stable/c/c4d603e8e58a3bf35480135ccca2b4f7238abda5 https://git.kernel.org/stable/c/95fb5d643cc70959baa54cd17f52f80ffc3295e7 https://git.kernel.org/stable/c/451c6329d9afa45862c36fe6677eb7750db60617 https://git.kernel.org/stable/c/79ef34ec0554ec04bdbafafbc9836423734e1bd6