{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "dba93b8cceb0048071389352fc29dcb0a7fe666f"
            },
            {
              "fixed": "f96a68bab26183433ea542dfb29ec41125f9fe39"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "32c440d67e6cd96a715007d0e62eb970b0c49abc"
            },
            {
              "fixed": "e570f2c29fc07a1040c3736bf1a1dfa8065d5099"
            },
            {
              "fixed": "0120a603afadba8ab4954bb1ce60f8195f80efc8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.18.51"
            },
            {
              "fixed": "6.18.64"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "7.1.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-99700.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/hugetlb_vmemmap: map the shared tail page writable\n\npage_ref_add_unless_zero() reads the refcount and then updates it with a\ncmpxchg.  A lockless get, such as a page cache lookup or a PFN scanner,\ncan read a non-zero refcount from a page that is then freed and reused as\na hugetlb tail page.  If HVO remaps its struct page to the shared tail\npage in between, the cmpxchg writes to read-only vmemmap:\n\n    CPU0 (lockless get)               CPU1\n    c = atomic_read(\u0026page-\u003e_refcount)\n                                      page freed\n                                      page allocated as a hugetlb tail\n                                      HVO remaps the struct page RO\n    try_cmpxchg(\u0026page-\u003e_refcount, \u0026c, c + 1)\n      -\u003e write fault on read-only vmemmap\n\nThe refcount is zero by then and the compare fails, but a compare-and-swap\ninstruction needs write access whether or not it succeeds.  The kernel\noopses when hugetlb pages are allocated at runtime with HVO enabled while\na lockless get races with it.\n\nCommit bd225530a4c7 (\"mm/hugetlb_vmemmap: fix race with speculative PFN\nwalkers\") closed the window with RCU on both sides.  The RCU was removed\ntogether with fake heads, on the wrong belief that it was only needed for\nthem.\n\nMap the shared tail page writable instead of restoring the RCU.  Every\nstruct page on it is a tail with a zero refcount, so a late cmpxchg\nfails and leaves the page unchanged.  RCU would put rcu_read_lock()\nback around every get and synchronize_rcu() back into hugetlb\nallocation and freeing.\n\nThe cost is the protection against stray writes to tail struct pages.  The\nshared page is shared by all hugetlb folios of the same order in the zone,\nso such a write now corrupts all of them instead of oopsing.\n\nBootmem folios optimized when the memmap is set up keep their tails\nread-only.  Nothing does a lockless get on them before hugetlb takes them\nover.",
  "id": "CVE-2026-99700",
  "modified": "2026-11-20T06:45:56.415607360Z",
  "published": "2026-11-20T05:50:42.601Z",
  "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/0120a603afadba8ab4954bb1ce60f8195f80efc8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e570f2c29fc07a1040c3736bf1a1dfa8065d5099"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f96a68bab26183433ea542dfb29ec41125f9fe39"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99700.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99700"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm/hugetlb_vmemmap: map the shared tail page writable"
}