{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9eab0421fa94a3dde0d1f7e36ab3294fc306c99d"
            },
            {
              "fixed": "cbf6c66a2ef46433092b41b87176755de32bf65b"
            },
            {
              "fixed": "0cf8d3fdd869fe079e55f8e621e45397a819d93c"
            },
            {
              "fixed": "67e6d5468a7d693a00176713d44267e5360d63c3"
            },
            {
              "fixed": "7a81bc23dade8082187be6d9cc36e4be4b7207e2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "2db1c46c3913b8bc92fed235a344de2671fe9d8d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "77359c4973056ba33a5627d5c04aea494eb76bc9"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "73704c6b35c7682fd22f97992a68b0e8451c7a52"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "91432aebce514cab49f63324c98b4eccb80532c5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "dafdeb7b91f1597983693a418c496b6702ea34b5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "2247df454c7bb4b13939794fe6fae8510868d241"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.19.305"
            },
            {
              "fixed": "4.20"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.4.267"
            },
            {
              "fixed": "5.5"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.10.208"
            },
            {
              "fixed": "5.11"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.15.147"
            },
            {
              "fixed": "5.16"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.72"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.6.11"
            },
            {
              "fixed": "6.7"
            }
          ],
          "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.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99654.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm: fix unmap_mapping_range() beyond 4 GiB on 32-bit\n\nCommit 9eab0421fa94 (\"mm: fix unmap_mapping_range high bits shift bug\")\nmade holebegin and holelen unsigned before they are shifted, by casting\nthem to pgoff_t. That is an unsigned long: on a 32-bit kernel the cast\ncuts off the upper half of the two loff_t values, so a hole which begins\nat 4 GiB or beyond is taken for one in the first 4 GiB of the file.\n\ntruncate_pagecache() passes the new size of the file and asks for private\nCOWed pages to be unmapped as well. If a file of 6 GiB is truncated to\n5 GiB, everything from 1 GiB on is unmapped, and what a process has\nwritten to a private mapping of the range between 1 GiB and 5 GiB is\nlost: it reads the contents of the file again.\n\nWhere the range has an end, the wrong range is unmapped instead of the\nright one. The page cache copes with that, as it unmaps every folio that\nit removes. The callers which only have unmap_mapping_range() to get\nrid of user mappings do not, for example drm_vma_node_unmap(), whose fake\noffsets reach beyond 4 GiB on 32-bit, and revoke_iomem() with physical\naddresses of more than 32 bits.\n\nCast to u64 instead. Nothing changes for 64-bit kernels.\n\nFix generated by an LLM and sent by Josef Bacik in private.",
  "id": "CVE-2026-99654",
  "modified": "2026-11-20T06:45:45.588807208Z",
  "published": "2026-11-20T05:50:06.890Z",
  "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/0cf8d3fdd869fe079e55f8e621e45397a819d93c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/67e6d5468a7d693a00176713d44267e5360d63c3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7a81bc23dade8082187be6d9cc36e4be4b7207e2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cbf6c66a2ef46433092b41b87176755de32bf65b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99654.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99654"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "mm: fix unmap_mapping_range() beyond 4 GiB on 32-bit"
}