xfs: restore nofs context unconditionally in xfs_trans_roll
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.
CVE-2026-80804
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-80804
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "a1ca658d649a4d8972e2e21ac2625b633217e327",
"lessThan": "b09198cf90ccf296970b774beea1c1ddb260f94c",
"versionType": "git"
},
{
"status": "affected",
"version": "a1ca658d649a4d8972e2e21ac2625b633217e327",
"lessThan": "4d00a39c676274f4071b467e630565ac1e3ae0f2",
"versionType": "git"
},
{
"status": "affected",
"version": "a1ca658d649a4d8972e2e21ac2625b633217e327",
"lessThan": "0241ea5fb0fe86d2a673163b2f5815111aadc7f7",
"versionType": "git"
}
],
"programFiles": [
"fs/xfs/xfs_trans.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "7.0"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "7.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "7.1.11",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2.1",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/xfs/xfs_trans.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-80804
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #34820 · Revision 1
- Added to Heist Feed
- Publisher date