CVE-2026-98224

mm/vma: correctly unaccount on mmap_prepare() failure

State
Published
Severity
Not scored
Published
Oct 6, 2026
Updated
Oct 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c84bf6dd2b836b49bb2662668ff1692350d28236 to before fb5400bff669c8bad3d4ec09287d9b461e89e5f1Affected
  • c84bf6dd2b836b49bb2662668ff1692350d28236 to before 8fdc521d438fbf0d22c13d51d55d5dd82d7202b2Affected
  • c84bf6dd2b836b49bb2662668ff1692350d28236 to before 6cc27d82196385fe06853319f74312a7d8019726Affected
LinuxLinux
  • 6.16Affected
  • before 6.16Not affected
  • 6.18.54 through 6.18.*Not affected
  • 7.2.8 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.