{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "a1ca658d649a4d8972e2e21ac2625b633217e327"
            },
            {
              "fixed": "b09198cf90ccf296970b774beea1c1ddb260f94c"
            },
            {
              "fixed": "4d00a39c676274f4071b467e630565ac1e3ae0f2"
            },
            {
              "fixed": "0241ea5fb0fe86d2a673163b2f5815111aadc7f7"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.0.0"
            },
            {
              "fixed": "7.1.11"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "7.2.0"
            },
            {
              "fixed": "7.2.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80804.json"
  },
  "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(\u0026xfs_nondir_ilock_class);\n                               lock(fs_reclaim);\n                               lock(\u0026xfs_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.",
  "id": "CVE-2026-80804",
  "modified": "2026-09-06T03:30:45.613934304Z",
  "published": "2026-09-04T15:13:18.282Z",
  "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"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "xfs: restore nofs context unconditionally in xfs_trans_roll"
}