{"id":"CVE-2026-80804","state":"PUBLISHED","title":"xfs: restore nofs context unconditionally in xfs_trans_roll","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: restore nofs context unconditionally in xfs_trans_roll\n\nWhen __xfs_trans_commit() fails in xfs_trans_roll(), the NOFS context\nis cleared but only restored in the success path.  This leaves the\nerror path without nofs protection, causing a circular lock dependency\nbetween xfs_nondir_ilock_class and fs_reclaim:\n\n       CPU0                    CPU1\n       ----                    ----\n  lock(&xfs_nondir_ilock_class);\n                               lock(fs_reclaim);\n                               lock(&xfs_nondir_ilock_class);\n  lock(fs_reclaim);\n\nFix this by moving xfs_trans_set_context() before the error check so\nthat nofs context is always restored on the new transaction.","publishedAt":"2026-09-04T15:13:18.282Z","updatedAt":"2026-10-19T08:43:57.464Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a1ca658d649a4d8972e2e21ac2625b633217e327","status":"affected","lessThan":"b09198cf90ccf296970b774beea1c1ddb260f94c","versionType":"git"},{"version":"a1ca658d649a4d8972e2e21ac2625b633217e327","status":"affected","lessThan":"4d00a39c676274f4071b467e630565ac1e3ae0f2","versionType":"git"},{"version":"a1ca658d649a4d8972e2e21ac2625b633217e327","status":"affected","lessThan":"0241ea5fb0fe86d2a673163b2f5815111aadc7f7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/xfs_trans.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","versionType":"semver"},{"version":"7.1.11","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2.1","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/xfs_trans.c"]}],"references":["https://git.kernel.org/stable/c/b09198cf90ccf296970b774beea1c1ddb260f94c","https://git.kernel.org/stable/c/4d00a39c676274f4071b467e630565ac1e3ae0f2","https://git.kernel.org/stable/c/0241ea5fb0fe86d2a673163b2f5815111aadc7f7"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80804.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80804","state":"PUBLISHED","datePublished":"2026-09-04T15:13:18.282Z","dateUpdated":"2026-10-19T08:43:57.464Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.794Z"},"containers":{"cna":{"title":"xfs: restore nofs context unconditionally in xfs_trans_roll","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: restore nofs context unconditionally in xfs_trans_roll\n\nWhen __xfs_trans_commit() fails in xfs_trans_roll(), the NOFS context\nis cleared but only restored in the success path.  This leaves the\nerror path without nofs protection, causing a circular lock dependency\nbetween xfs_nondir_ilock_class and fs_reclaim:\n\n       CPU0                    CPU1\n       ----                    ----\n  lock(&xfs_nondir_ilock_class);\n                               lock(fs_reclaim);\n                               lock(&xfs_nondir_ilock_class);\n  lock(fs_reclaim);\n\nFix this by moving xfs_trans_set_context() before the error check so\nthat nofs context is always restored on the new transaction."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a1ca658d649a4d8972e2e21ac2625b633217e327","status":"affected","lessThan":"b09198cf90ccf296970b774beea1c1ddb260f94c","versionType":"git"},{"version":"a1ca658d649a4d8972e2e21ac2625b633217e327","status":"affected","lessThan":"4d00a39c676274f4071b467e630565ac1e3ae0f2","versionType":"git"},{"version":"a1ca658d649a4d8972e2e21ac2625b633217e327","status":"affected","lessThan":"0241ea5fb0fe86d2a673163b2f5815111aadc7f7","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/xfs_trans.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.0","versionType":"semver"},{"version":"7.1.11","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2.1","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/xfs/xfs_trans.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b09198cf90ccf296970b774beea1c1ddb260f94c"},{"url":"https://git.kernel.org/stable/c/4d00a39c676274f4071b467e630565ac1e3ae0f2"},{"url":"https://git.kernel.org/stable/c/0241ea5fb0fe86d2a673163b2f5815111aadc7f7"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:43:57.464Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.1.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.2.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}