{"id":"CVE-2026-80804","summary":"xfs: restore nofs context unconditionally in xfs_trans_roll","details":"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.","modified":"2026-09-06T03:46:48.057362391Z","published":"2026-09-04T15:13:18.282Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80804.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0241ea5fb0fe86d2a673163b2f5815111aadc7f7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4d00a39c676274f4071b467e630565ac1e3ae0f2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b09198cf90ccf296970b774beea1c1ddb260f94c"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80804.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80804"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a1ca658d649a4d8972e2e21ac2625b633217e327"},{"fixed":"b09198cf90ccf296970b774beea1c1ddb260f94c"},{"fixed":"4d00a39c676274f4071b467e630565ac1e3ae0f2"},{"fixed":"0241ea5fb0fe86d2a673163b2f5815111aadc7f7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80804.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.1.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"7.2.0"},{"fixed":"7.2.1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80804.json"}}],"schema_version":"1.9.0"}