{"id":"CVE-2026-80804","aliases":["CVE-2026-80804"],"related":[],"kind":"vulnerability","state":"published","title":"xfs: restore nofs context unconditionally in xfs_trans_roll","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-04T15:13:18.282Z","modified":"2026-10-19T09:17:15.013Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"a1ca658d649a4d8972e2e21ac2625b633217e327","fixed":"b09198cf90ccf296970b774beea1c1ddb260f94c","status":"affected"},{"type":"git","introduced":"a1ca658d649a4d8972e2e21ac2625b633217e327","fixed":"4d00a39c676274f4071b467e630565ac1e3ae0f2","status":"affected"},{"type":"git","introduced":"a1ca658d649a4d8972e2e21ac2625b633217e327","fixed":"0241ea5fb0fe86d2a673163b2f5815111aadc7f7","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"7.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"7.0","status":"unaffected"},{"type":"semver","introduced":"7.1.11","lastAffected":"7.1.*","status":"unaffected"},{"type":"semver","introduced":"7.2.1","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b09198cf90ccf296970b774beea1c1ddb260f94c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4d00a39c676274f4071b467e630565ac1e3ae0f2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0241ea5fb0fe86d2a673163b2f5815111aadc7f7","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80804","url":"https://www.cve.org/CVERecord?id=CVE-2026-80804","licence":"CVE Terms of Use","modified":"2026-10-19T08:43:57.464Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80804","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80804","licence":"Public domain","modified":"2026-10-19T09:17:15.013Z"}],"updatedAt":"2026-11-25T22:59:36.331Z","epss":{"score":0.00166,"percentile":0.06078,"date":"2026-12-02T12:00:21.000Z"}}