{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "6375e95f381e3dc85065b6f74263a61522736203"
            },
            {
              "fixed": "7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16"
            },
            {
              "fixed": "ad5e5800ce560759c8d3c10aac15b48a06cd21c1"
            },
            {
              "fixed": "db38b902307e687219ec765ef51a6ef459746c87"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.14.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-99666.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/khugepaged: fix PMD table lock leak in try_collapse_pte_mapped_thp()\n\nFor a private mapping with userfaultfd, try_collapse_pte_mapped_thp()\ntakes the PMD table lock before it maps the page table for the second time.\nIf that (pte_offset_map_rw_nolock) fails, because the page table vanished\nin the meantime due to concurrent page table reclaim, it leaves through\nthe abort label, where the PMD table lock is unlocked if it differs from\nPTE table lock.\n\nIn case the PMD table lock and the PTE table lock match, which is the\ncase without CONFIG_SPLIT_PTE_PTLOCKS after pte_offset_map_rw_nolock()\nfailed, we miss to unlock the PMD table.\n\nTo fix it, forget the PTE table lock when we unmap+unlock the PTE table.\n\nFix generated by an LLM and sent by Josef Bacik in private.\n\n[ david: move the ptl = NULL handling; rewrite description, drop wrong comments ]",
  "id": "CVE-2026-99666",
  "modified": "2026-11-20T06:45:31.880427451Z",
  "published": "2026-11-20T05:50:16.494Z",
  "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/7c1170ce1b74a8cd83da2174a3eb9e0755bb1b16"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ad5e5800ce560759c8d3c10aac15b48a06cd21c1"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/db38b902307e687219ec765ef51a6ef459746c87"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99666.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99666"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm/khugepaged: fix PMD table lock leak in try_collapse_pte_mapped_thp()"
}