{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "2406a307ac7ddfd7effeeaff6947149ec6a95b4e"
            },
            {
              "fixed": "f3a432558686e2a5338e228acb2a464fff5995d8"
            },
            {
              "fixed": "4fbdca296d8b54d680784282bf007945454820fc"
            },
            {
              "fixed": "9fef91f9e63b66743d8ada7436c44adf3f85859d"
            },
            {
              "fixed": "7219ab069818c456a46e2303948f286e9f199947"
            },
            {
              "fixed": "3bf132de175803dcea0d6598b47d467cb6a2a1b5"
            },
            {
              "fixed": "c3fd39ceaaeb43b45a6ffddea62b9f09eeb3aeb7"
            },
            {
              "fixed": "501ed625cdd25d5a264e1a553439963f9a810b63"
            },
            {
              "fixed": "627cdcbc2a2eceb0452078a0c14370f9f1f17a91"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.6.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99826.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbacking-file: always end a queued write\n\nWrites to a loop device with direct I/O on an overlay file make the\nnext freeze of the upper filesystem hang for ever.\n\nEvery kiocb_start_write() needs a kiocb_end_write(). For a write that\nis queued, vfs_iocb_iter_write() leaves the end to the completion, and\nbacking_aio_rw_complete() only calls kiocb_end_write() when IOCB_WRITE\nis set in the flags copied from the submitter. In-kernel submitters\nsuch as loop do not set that flag, so each queued write keeps the\nfreeze protection of the backing filesystem.\n\nDirect writes to a loop device with direct I/O backed by an overlay\nfile left fsfreeze of the ext4 upper filesystem, and a later touch\nthere, blocked in D state. It takes write access to the node of the\nloop device, which root has by default, to attach the file and to write.\n\nThe fix used here is to mark a write in struct backing_aio and to call\nkiocb_end_write() on completion of every marked write.\n\nReproduced under qemu without KVM, on v7.3-rc6-21-g602042bf29f6 with\nearlier fixes of this series applied, with and without this change,\nonce each. The kernel was not changed for the run. With this change\nfsfreeze finished in about a second. Not run: the nvmet and LIO file\nbackends, which do not set IOCB_WRITE either, FUSE passthrough, and an\nxfs upper filesystem.\n\n[amir: use aio-\u003eis_write to explicitly mark a write aio]",
  "id": "CVE-2026-99826",
  "modified": "2026-12-01T20:45:29.742345275Z",
  "published": "2026-11-30T13:17:23.685Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3bf132de175803dcea0d6598b47d467cb6a2a1b5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4fbdca296d8b54d680784282bf007945454820fc"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/501ed625cdd25d5a264e1a553439963f9a810b63"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/627cdcbc2a2eceb0452078a0c14370f9f1f17a91"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7219ab069818c456a46e2303948f286e9f199947"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9fef91f9e63b66743d8ada7436c44adf3f85859d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c3fd39ceaaeb43b45a6ffddea62b9f09eeb3aeb7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f3a432558686e2a5338e228acb2a464fff5995d8"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99826.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99826"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "backing-file: always end a queued write"
}