# CVE-2026-80804: xfs: restore nofs context unconditionally in xfs\_trans\_roll

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-04T15:13:18.282Z
- **Modified:** 2026-10-19T09:17:15.013Z

## Who should check

- Anyone running Linux \>= a1ca658d649a4d8972e2e21ac2625b633217e327, \< b09198cf90ccf296970b774beea1c1ddb260f94c; \>= a1ca658d649a4d8972e2e21ac2625b633217e327, \< 4d00a39c676274f4071b467e630565ac1e3ae0f2; \>= a1ca658d649a4d8972e2e21ac2625b633217e327, \< 0241ea5fb0fe86d2a673163b2f5815111aadc7f7
- Anyone running Linux 7.0

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

## Affected and fixed versions

- Linux: \>= a1ca658d649a4d8972e2e21ac2625b633217e327, \< b09198cf90ccf296970b774beea1c1ddb260f94c; \>= a1ca658d649a4d8972e2e21ac2625b633217e327, \< 4d00a39c676274f4071b467e630565ac1e3ae0f2; \>= a1ca658d649a4d8972e2e21ac2625b633217e327, \< 0241ea5fb0fe86d2a673163b2f5815111aadc7f7 (cvelist)
- Linux: 7.0 (cvelist)

## Mitigation

- Upgrade Linux to 0241ea5fb0fe86d2a673163b2f5815111aadc7f7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-80804. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-80804.md
Affected: Linux >= a1ca658d649a4d8972e2e21ac2625b633217e327, < b09198cf90ccf296970b774beea1c1ddb260f94c; >= a1ca658d649a4d8972e2e21ac2625b633217e327, < 4d00a39c676274f4071b467e630565ac1e3ae0f2; >= a1ca658d649a4d8972e2e21ac2625b633217e327, < 0241ea5fb0fe86d2a673163b2f5815111aadc7f7; Linux 7.0
Fixed in: Linux 4d00a39c676274f4071b467e630565ac1e3ae0f2, Linux 0241ea5fb0fe86d2a673163b2f5815111aadc7f7

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-80804 being exploited?

There is no confirmed exploitation: CVE-2026-80804 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-80804?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-80804?

Linux \>= a1ca658d649a4d8972e2e21ac2625b633217e327, \< b09198cf90ccf296970b774beea1c1ddb260f94c; \>= a1ca658d649a4d8972e2e21ac2625b633217e327, \< 4d00a39c676274f4071b467e630565ac1e3ae0f2; \>= a1ca658d649a4d8972e2e21ac2625b633217e327, \< 0241ea5fb0fe86d2a673163b2f5815111aadc7f7; Linux 7.0.

### Is there a fix for CVE-2026-80804?

Yes. Fixed in Linux 4d00a39c676274f4071b467e630565ac1e3ae0f2, Linux 0241ea5fb0fe86d2a673163b2f5815111aadc7f7. Upgrade Linux to 0241ea5fb0fe86d2a673163b2f5815111aadc7f7 or later.

### How do I check if I'm affected by CVE-2026-80804?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-80804>

HTML: <https://flawdb.com/CVE-2026-80804> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-80804>
