All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-80804: xfs: restore nofs context unconditionally in xfs_trans_roll
@ 2026-09-04 15:11 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-09-04 15:11 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-04 15:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-04 15:11 CVE-2026-80804: xfs: restore nofs context unconditionally in xfs_trans_roll Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.