{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "6d9df8a5889c569ab9e3bcb38b12e5b81b6b9bde"
            },
            {
              "fixed": "d9d621ad49a969587d32c98aee1d83e679b9d361"
            },
            {
              "fixed": "cf1902ab0203f8767a3582143049d1bea5422096"
            },
            {
              "fixed": "8c4adb787f77318df3b478f928f271e26d557208"
            },
            {
              "fixed": "854e5ff8b3ce2a776586cabebaeae645c992345b"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.18.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.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99707.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/khugepaged: flush deferred unmaps before dropping a failed folio\n\ncollapse_file() can fail its reference-count or dirty-folio check after\nunmapping with TTU_BATCH_FLUSH.  Both paths put back the isolated folio,\nthen unlock it and drop the lookup reference before reaching the common\ntry_to_unmap_flush().\n\nThe page-cache reference does not keep the folio stable once the lock is\nreleased.  Another collapse can replace and free it.  With its PTEs\nalready gone, that collapse cannot flush the first task's per-task TLB\nbatch, and retract_page_tables() skips short or unaligned VMAs.  A CPU can\ntherefore retain a user translation to the freed folio.  This has been\nreproduced with unprivileged MADV_COLLAPSE on a memfd.\n\nFlush at out_unlock while the lookup reference and folio lock are still\nheld.  The common flush continues to cover the accumulated pagelist on\nboth success and rollback, preserving batching on successful collapses.",
  "id": "CVE-2026-99707",
  "modified": "2026-11-20T06:45:38.256051314Z",
  "published": "2026-11-20T05:50:47.785Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/854e5ff8b3ce2a776586cabebaeae645c992345b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8c4adb787f77318df3b478f928f271e26d557208"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cf1902ab0203f8767a3582143049d1bea5422096"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d9d621ad49a969587d32c98aee1d83e679b9d361"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99707.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99707"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm/khugepaged: flush deferred unmaps before dropping a failed folio"
}