{"id":"CVE-2026-98224","state":"PUBLISHED","title":"mm/vma: correctly unaccount on mmap_prepare() failure","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/vma: correctly unaccount on mmap_prepare() failure\n\n__mmap_setup() accounts memory for relevant mappings via:\n\nsecurity_vm_enough_memory_mm()\n  -> __vm_enough_memory()\n    -> vm_acct_memory()\n\nIf __mmap_setup() fails, this indicates that this accounting did not take\nplace, and thus it's appropriate for __mmap_region() to jump to\nabort_munmap.\n\nHowever if call_mmap_prepare() fails, it also jumps there and any accounted\nmemory is not correctly unaccounted.\n\nFix this by handling each error separately.","publishedAt":"2026-10-06T08:44:59.349Z","updatedAt":"2026-10-19T09:15:56.109Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c84bf6dd2b836b49bb2662668ff1692350d28236","status":"affected","lessThan":"fb5400bff669c8bad3d4ec09287d9b461e89e5f1","versionType":"git"},{"version":"c84bf6dd2b836b49bb2662668ff1692350d28236","status":"affected","lessThan":"8fdc521d438fbf0d22c13d51d55d5dd82d7202b2","versionType":"git"},{"version":"c84bf6dd2b836b49bb2662668ff1692350d28236","status":"affected","lessThan":"6cc27d82196385fe06853319f74312a7d8019726","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/vma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.54","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.8","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/vma.c"]}],"references":["https://git.kernel.org/stable/c/fb5400bff669c8bad3d4ec09287d9b461e89e5f1","https://git.kernel.org/stable/c/8fdc521d438fbf0d22c13d51d55d5dd82d7202b2","https://git.kernel.org/stable/c/6cc27d82196385fe06853319f74312a7d8019726"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98224.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98224","state":"PUBLISHED","datePublished":"2026-10-06T08:44:59.349Z","dateUpdated":"2026-10-19T09:15:56.109Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.327Z"},"containers":{"cna":{"title":"mm/vma: correctly unaccount on mmap_prepare() failure","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/vma: correctly unaccount on mmap_prepare() failure\n\n__mmap_setup() accounts memory for relevant mappings via:\n\nsecurity_vm_enough_memory_mm()\n  -> __vm_enough_memory()\n    -> vm_acct_memory()\n\nIf __mmap_setup() fails, this indicates that this accounting did not take\nplace, and thus it's appropriate for __mmap_region() to jump to\nabort_munmap.\n\nHowever if call_mmap_prepare() fails, it also jumps there and any accounted\nmemory is not correctly unaccounted.\n\nFix this by handling each error separately."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c84bf6dd2b836b49bb2662668ff1692350d28236","status":"affected","lessThan":"fb5400bff669c8bad3d4ec09287d9b461e89e5f1","versionType":"git"},{"version":"c84bf6dd2b836b49bb2662668ff1692350d28236","status":"affected","lessThan":"8fdc521d438fbf0d22c13d51d55d5dd82d7202b2","versionType":"git"},{"version":"c84bf6dd2b836b49bb2662668ff1692350d28236","status":"affected","lessThan":"6cc27d82196385fe06853319f74312a7d8019726","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/vma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.54","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.8","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["mm/vma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fb5400bff669c8bad3d4ec09287d9b461e89e5f1"},{"url":"https://git.kernel.org/stable/c/8fdc521d438fbf0d22c13d51d55d5dd82d7202b2"},{"url":"https://git.kernel.org/stable/c/6cc27d82196385fe06853319f74312a7d8019726"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:15:56.109Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.54"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.2.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}