{"id":"CVE-2026-99920","aliases":[],"cve":{"records":[{"id":"CVE-2026-99920","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.445Z","published":"2026-11-30T13:18:17.350Z","modified":"2026-11-30T13:18:17.350Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:18:17.350Z"}],"references":[{"url":"https://git.kernel.org/stable/c/29a776866a79df875295ac30bb3551ed1a67d1cd","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/b14b9f590543d50f4ece4024a3240449f2970e51","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/91ac9d062a278ff5def4e3cd44209e00d7d14488","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/7c2e3a553fd473a4dd78483bf12d8168151d3e0a","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/a65767efb08a8ea6cc721258526c9aea752896ca","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/fe6e1017449126be6ae477483945c31ea1b0a03e","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/b0f3684537dde69781dcb1887443fe4256052bbb","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/3ae91e3079b1504ef162b2884454d5f1421f4eb9","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.12","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"mm/mlock: use a long for the page count in mlock_fixup()","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/mlock: use a long for the page count in mlock_fixup()\n\nmlock_fixup() adjusts mm->locked_vm, an unsigned long, by the number of\npages whose VM_LOCKED state it changes, but computes that number in an\nint:\n\n\tint nr_pages;\n\t...\n\tnr_pages = (end - start) >> PAGE_SHIFT;\n\t...\n\tmm->locked_vm += nr_pages;\n\nWhen a single VMA range of 2^31 pages (8 TiB with 4 KiB pages) or more\nis locked or unlocked, the count is truncated to 32 bits and then\nsign-extended, so locked_vm is changed by the wrong amount, while\nmunmap(), mremap() and the other paths that maintain locked_vm use the\nfull unsigned long page count.\n\nSuch a range is reachable on 64-bit architectures with a 47-bit or\nlarger user address space (x86_64, arm64 with 48-bit VA, riscv64 Sv48)\nby a task with CAP_IPC_LOCK or a raised RLIMIT_MEMLOCK, which do_mlock()\nchecks against the full untruncated length.  It costs nothing with\nMAP_NORESERVE and MLOCK_ONFAULT/MCL_ONFAULT, since then no page is\npopulated.  On x86_64, after\n\n\tp = mmap(NULL, 8UL << 40, PROT_READ | PROT_WRITE,\n\t\t MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0);\n\tmlock2(p, 8UL << 40, MLOCK_ONFAULT);\n\nVmLck in /proc/self/status reads 18446744065119617024 kB instead of\n8589934592 kB; munmap() of the region then subtracts the true size and\nleaves VmLck at 18446744056529682432 kB instead of 0.  With 16 TiB,\nlocked_vm is not changed at all, VmLck stays 0 kB, and after the task\ndrops CAP_IPC_LOCK or lowers RLIMIT_MEMLOCK, mlock(), mmap(MAP_LOCKED)\nand the other mlock_future_ok() and account_locked_vm() users enforce\nRLIMIT_MEMLOCK against that count, so they let the task lock memory\nbeyond its limit (or, in the 8 TiB case, refuse every further lock).\nThe error persists for the life of the mm; unlocking the range in pieces\nskews it further.  The wrong count is per-mm accounting only: it does\nnot change which pages are locked.\n\nThe int has been there since before git history (the variable was named\n\"pages\" until it was renamed in 2.6.28); every other updater of\nlocked_vm uses an unsigned long or long count.  Make nr_pages a long,\nwhich holds the page count of any user range and its negation, so the\nexisting sign handling is unchanged.\n\nFound by formal verification of mm/mlock.c against the kernel binary.","score":null,"severity":"unknown","published":"2026-11-30T13:18:17.350Z","modified":"2026-11-30T13:18:17.350Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"29a776866a79df875295ac30bb3551ed1a67d1cd","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"b14b9f590543d50f4ece4024a3240449f2970e51","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"91ac9d062a278ff5def4e3cd44209e00d7d14488","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"7c2e3a553fd473a4dd78483bf12d8168151d3e0a","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"a65767efb08a8ea6cc721258526c9aea752896ca","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"fe6e1017449126be6ae477483945c31ea1b0a03e","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"b0f3684537dde69781dcb1887443fe4256052bbb","versionType":"git"},{"version":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","status":"affected","lessThan":"3ae91e3079b1504ef162b2884454d5f1421f4eb9","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99920"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"2.6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.12","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99920"}],"remediation":[],"references":["https://git.kernel.org/stable/c/29a776866a79df875295ac30bb3551ed1a67d1cd","https://git.kernel.org/stable/c/b14b9f590543d50f4ece4024a3240449f2970e51","https://git.kernel.org/stable/c/91ac9d062a278ff5def4e3cd44209e00d7d14488","https://git.kernel.org/stable/c/7c2e3a553fd473a4dd78483bf12d8168151d3e0a","https://git.kernel.org/stable/c/a65767efb08a8ea6cc721258526c9aea752896ca","https://git.kernel.org/stable/c/fe6e1017449126be6ae477483945c31ea1b0a03e","https://git.kernel.org/stable/c/b0f3684537dde69781dcb1887443fe4256052bbb","https://git.kernel.org/stable/c/3ae91e3079b1504ef162b2884454d5f1421f4eb9"],"sources":[{"name":"CVE","id":"CVE-2026-99920","modified":"2026-11-30T13:18:17.350Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99920"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T14:00:04.696Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}