# CVE-2026-98224: mm/vma: correctly unaccount on mmap_prepare() failure

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-06T08:44:59.349Z
- Modified: 2026-10-19T10:18:23.160Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mm/vma: correctly unaccount on mmap_prepare() failure

__mmap_setup() accounts memory for relevant mappings via:

security_vm_enough_memory_mm()
  -> __vm_enough_memory()
    -> vm_acct_memory()

If __mmap_setup() fails, this indicates that this accounting did not take
place, and thus it's appropriate for __mmap_region() to jump to
abort_munmap.

However if call_mmap_prepare() fails, it also jumps there and any accounted
memory is not correctly unaccounted.

Fix this by handling each error separately.

(As written by CVE List.)

## Affected

- Linux Linux: from c84bf6dd2b836b49bb2662668ff1692350d28236 before fb5400bff669c8bad3d4ec09287d9b461e89e5f1; from c84bf6dd2b836b49bb2662668ff1692350d28236 before 8fdc521d438fbf0d22c13d51d55d5dd82d7202b2; from c84bf6dd2b836b49bb2662668ff1692350d28236 before 6cc27d82196385fe06853319f74312a7d8019726; 6.16 (not affected: before 6.16; from 6.18.54 up to 6.18.*; from 7.2.8 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/fb5400bff669c8bad3d4ec09287d9b461e89e5f1>
- <https://git.kernel.org/stable/c/8fdc521d438fbf0d22c13d51d55d5dd82d7202b2>
- <https://git.kernel.org/stable/c/6cc27d82196385fe06853319f74312a7d8019726>

## Sources

- CVE List: [CVE-2026-98224](https://www.cve.org/CVERecord?id=CVE-2026-98224), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98224](https://nvd.nist.gov/vuln/detail/CVE-2026-98224), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98224 · Whole record: https://cve.day/CVE-2026-98224.json · Rebuilt by cve.day 2026-11-25T22:59:42.294Z
