# CVE-2026-80804: xfs: restore nofs context unconditionally in xfs_trans_roll

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-02)
- Published: 2026-09-04T15:13:18.282Z
- Modified: 2026-10-19T09:17:15.013Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a1ca658d649a4d8972e2e21ac2625b633217e327 before b09198cf90ccf296970b774beea1c1ddb260f94c; from a1ca658d649a4d8972e2e21ac2625b633217e327 before 4d00a39c676274f4071b467e630565ac1e3ae0f2; from a1ca658d649a4d8972e2e21ac2625b633217e327 before 0241ea5fb0fe86d2a673163b2f5815111aadc7f7; 7.0 (not affected: before 7.0; from 7.1.11 up to 7.1.*; from 7.2.1 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/b09198cf90ccf296970b774beea1c1ddb260f94c>
- <https://git.kernel.org/stable/c/4d00a39c676274f4071b467e630565ac1e3ae0f2>
- <https://git.kernel.org/stable/c/0241ea5fb0fe86d2a673163b2f5815111aadc7f7>

## Sources

- CVE List: [CVE-2026-80804](https://www.cve.org/CVERecord?id=CVE-2026-80804), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-80804](https://nvd.nist.gov/vuln/detail/CVE-2026-80804), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-80804 · Whole record: https://cve.day/CVE-2026-80804.json · Rebuilt by cve.day 2026-11-25T22:59:36.331Z
