From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 A1B2A395DBF for ; Fri, 4 Sep 2026 15:17:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788535068; cv=none; b=qtcrSZu2hoq9+oZmgk5bXWWfJ6y/kXCoG7yZd9WBbMU4pM0zP7BA83D9uaGaTAFn5DdloYJLh893VtThyx+VvqxrgYPnI6imD/XC4RPEC0tbg6gAV4PCSlT8txypV6J4HZ0ljfLyA/QJDkdom3jMR8/AzwFxrwPzYy8p6syzBAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788535068; c=relaxed/simple; bh=XEyGt6ZPFc487YgL2KPGQ15g3pUF82dgHe9m7ps05xI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fGwkRtqC+1Be202KMKTdeIxJjGXE1XMY+bI5ViPOyoIuP1iIyGICt+OiOOHLJhG+3J0MgTk7sl10veZ1DH3EwtNFLJjWWEhTJkqPhY2VmSzqlZ5D+UUokqChhTxdH2nz6TKDcN2cyw6/gGiBcTZO1NiKIkNNS5j6gEwxvfbjcOM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=olOrIC2Q; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="olOrIC2Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93E3B1F00A3D; Fri, 4 Sep 2026 15:17:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1788535067; bh=stUSuJjxZYSnAg6xNtSpVACNGnDCbG7RSRiNdIGGvRg=; h=From:To:Cc:Subject:Date:Reply-To; b=olOrIC2Q1RgTnfPNEONaW9TClsk/kxOqTuo2CX154oCHV8FOrusNijZSk3lj5uAWK MPLbwNre0pFlsYhXvX6k40usTbRSGfuoVagZJVlVCApCMWm2OiGUdAPVNY4N08W4OD XM9D79d8q5cHBU/p9nND1/8i6PmgOkuFayk0nrbk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80804: xfs: restore nofs context unconditionally in xfs_trans_roll Date: Fri, 4 Sep 2026 17:11:43 +0200 Message-ID: <2026090409-CVE-2026-80804-9b92@gregkh> X-Mailer: git-send-email 2.55.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=2623; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pw21Ni0EIyqbKKbOOCASNSA8nE1+sT8YA1pyKPipH7o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmz7ve618odMbVc/9uclaHPtXRNrrr9BuZau82GXQvMS xN/fRPviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImUfWdYcFoz4/bHTXEvTG8H ZaWtiDw69e0OE4Y5fHFLbFb2WM/03HB96oPUvjKDF0X9AA== 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: restore nofs context unconditionally in xfs_trans_roll When __xfs_trans_commit() fails in xfs_trans_roll(), the NOFS context is cleared but only restored in the success path. This leaves the error path without nofs protection, causing a circular lock dependency between xfs_nondir_ilock_class and fs_reclaim: CPU0 CPU1 ---- ---- lock(&xfs_nondir_ilock_class); lock(fs_reclaim); lock(&xfs_nondir_ilock_class); lock(fs_reclaim); Fix this by moving xfs_trans_set_context() before the error check so that nofs context is always restored on the new transaction. The Linux kernel CVE team has assigned CVE-2026-80804 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit a1ca658d649a4d8972e2e21ac2625b633217e327 and fixed in 7.1.11 with commit b09198cf90ccf296970b774beea1c1ddb260f94c Issue introduced in 7.0 with commit a1ca658d649a4d8972e2e21ac2625b633217e327 and fixed in 7.2.1 with commit 4d00a39c676274f4071b467e630565ac1e3ae0f2 Issue introduced in 7.0 with commit a1ca658d649a4d8972e2e21ac2625b633217e327 and fixed in 7.3-rc1 with commit 0241ea5fb0fe86d2a673163b2f5815111aadc7f7 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-80804 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_trans.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/b09198cf90ccf296970b774beea1c1ddb260f94c https://git.kernel.org/stable/c/4d00a39c676274f4071b467e630565ac1e3ae0f2 https://git.kernel.org/stable/c/0241ea5fb0fe86d2a673163b2f5815111aadc7f7