{"id":"CVE-2026-98224","summary":"mm/vma: correctly unaccount on mmap_prepare() failure","details":"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  -\u003e __vm_enough_memory()\n    -\u003e 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.","modified":"2026-10-08T02:52:54.036201701Z","published":"2026-10-06T08:44:59.349Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98224.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/6cc27d82196385fe06853319f74312a7d8019726"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8fdc521d438fbf0d22c13d51d55d5dd82d7202b2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fb5400bff669c8bad3d4ec09287d9b461e89e5f1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98224.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98224"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c84bf6dd2b836b49bb2662668ff1692350d28236"},{"fixed":"fb5400bff669c8bad3d4ec09287d9b461e89e5f1"},{"fixed":"8fdc521d438fbf0d22c13d51d55d5dd82d7202b2"},{"fixed":"6cc27d82196385fe06853319f74312a7d8019726"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98224.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.16.0"},{"fixed":"6.18.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98224.json"}}],"schema_version":"1.9.0"}