{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "c28b1fc70390df32e29991eedd52bd86e7aba080"
            },
            {
              "fixed": "11536b9b6bed3cc4d684a70d468493775e7d1d48"
            },
            {
              "fixed": "0794c5809fa6322e8b43b70601700fd6c48e69ea"
            },
            {
              "fixed": "5697a3b58722b15fcb06fb30368ce9f46458a95a"
            },
            {
              "fixed": "1dfe4b276c23189394afb42d114ee8a54cc3aff2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "bcb0f647c1fae9496e6ce499618a8da003c56088"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.10.4"
            },
            {
              "fixed": "5.11"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.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-99662.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast\n\nWith nr_pages == 0, GUP-fast still enters its page table walk and can\nwrite past the caller's page array. The old end \u003c= start check caught\nempty ranges, but was replaced with an overflow check.\n\nUsers such as OrangeFS can pass a zero page count derived from a\nuserspace-supplied length. So let's return zero for nr_pages == 0 before\nstarting the walk, just like GUP-slow.\n\nFix generated by an LLM and sent by Chris Mason in private.\n\n[ david: simplify description ]",
  "id": "CVE-2026-99662",
  "modified": "2026-11-20T06:45:29.742626006Z",
  "published": "2026-11-20T05:50:13.325Z",
  "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/0794c5809fa6322e8b43b70601700fd6c48e69ea"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/11536b9b6bed3cc4d684a70d468493775e7d1d48"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/1dfe4b276c23189394afb42d114ee8a54cc3aff2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5697a3b58722b15fcb06fb30368ce9f46458a95a"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99662.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99662"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm/gup: fix out-of-bounds write for nr_pages == 0 in GUP-fast"
}