{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99930","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.447Z","datePublished":"2026-11-30T13:18:22.878Z","dateUpdated":"2026-11-30T13:18:22.878Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:18:22.878Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/vma: don't leak the commit charge on mmap failure\n\nPatch series \"mm: various (urgent?) fixes\", v1.\n\nHere are various MM fixes.  The majority was reported by Josef at\nAnthrophic, the remainder was found while reviewing/overhauling them.\n\nTwo issues/fixes reported are not included, as we are discussing\n(better) alternatives on the list already.\n\nI left most of the original commit messages as schloppy as they are: I\ndon't particularly care as long as the code is in good shape and as long\nas they are not actively wrong.  But I (and Mike) could not be stopped\nfrom overhauling at least some of them.\n\nWhile I don't think there is anything too critical in here, I think this\nis a good opportunity to see how fast we can get pre-screened/pre-reviewed\nfixes upstream that might be security-related.\n\nThe majority are hugetlb + uffd issues, that are not actually that\nrelevant for most installations.  But all things that should just get\nfixed.  Some uffd fixes need proper follow ups to fix some more of the\nroot causes of leftover UFFD PTE bits (or proof that there are none\nremaining).\n\n\nThis patch (of 10):\n\nWhen an accountable mapping replaces existing mappings (MAP_FIXED),\n__mmap_setup() only charges the difference between the size of the new\nmapping and the VM_ACCOUNT pages it replaces. It then zeroes\nvms->nr_accounted so that unmapping the old VMAs does not return their\ncharge, which now backs the new mapping.\n\nIf the operation fails after that point, the error path returns\nmap->charged, i.e. only the difference. By then vms_clean_up_area() has\nzapped the page tables and closed the old VMAs, so\nvms_abort_munmap_vmas() cannot reattach them. It leaves a gap and\nfinishes the unmap with vms_complete_munmap_vmas(), which uncharges\nvms->nr_accounted == 0 pages. The old VMAs are gone, the new one was\nnever created, and the charge of the old ones is never returned, not\neven when the process exits.\n\nNo privilege is needed to hit this, only a file whose mmap hook fails,\nfor example a socket (sock_no_mmap() returns -ENODEV):\n\n\tp = mmap(NULL, len, PROT_READ | PROT_WRITE,\n\t\t MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);\n\tmmap(p, len, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED,\n\t     socket_fd, 0);\n\nEvery iteration adds len to Committed_AS for good. With\nvm.overcommit_memory=2 this lets any user make all further accountable\nallocations in the system fail with -ENOMEM.\n\nOnce the new mapping has taken over the charge of the mappings it\nreplaces, it owns the charge for all of its pages. Record that in\nmap->charged, so that the error path returns all of it.\n\nA failure in __mmap_setup() itself is not affected: it happens before\nthe charge is taken over and the old VMAs are reattached with their\ncharge intact.\n\nOriginal fix generated by an LLM and sent in private by Josef.\n\n[david@kernel.org: call variable \"uncharged\" and make it const, adjust/simplify comments]"}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/vma.c"],"versions":[{"version":"4f87153e82c4906e917d273ab7accd0d540aab35","lessThan":"b0544dac0e82593cff823cb2d7cb58839c7b5fab","status":"affected","versionType":"git"},{"version":"4f87153e82c4906e917d273ab7accd0d540aab35","lessThan":"ff92993699041b9ecb846c6994f16267e9f32487","status":"affected","versionType":"git"},{"version":"4f87153e82c4906e917d273ab7accd0d540aab35","lessThan":"ff9df387ea19c1707cd1a60c9245f35e5405229d","status":"affected","versionType":"git"},{"version":"4f87153e82c4906e917d273ab7accd0d540aab35","lessThan":"aa09311c40f6d3aa6037065e17d257ffa48b9402","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/vma.c"],"versions":[{"version":"6.12","status":"affected"},{"version":"0","lessThan":"6.12","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.118"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/b0544dac0e82593cff823cb2d7cb58839c7b5fab"},{"url":"https://git.kernel.org/stable/c/ff92993699041b9ecb846c6994f16267e9f32487"},{"url":"https://git.kernel.org/stable/c/ff9df387ea19c1707cd1a60c9245f35e5405229d"},{"url":"https://git.kernel.org/stable/c/aa09311c40f6d3aa6037065e17d257ffa48b9402"}],"title":"mm/vma: don't leak the commit charge on mmap failure","x_generator":{"engine":"bippy-1.2.0"}}}}