mm/vma: correctly unaccount on mmap_prepare() failure
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.54, 7.2.8
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From c84bf6dd2b836b49bb2662668ff1692350d28236 · fixed in fb5400bff669c8bad3d4ec09287d9b461e89e5f1; From c84bf6dd2b836b49bb2662668ff1692350d28236 · fixed in 8fdc521d438fbf0d22c13d51d55d5dd82d7202b2; From c84bf6dd2b836b49bb2662668ff1692350d28236 · fixed in 6cc27d82196385fe06853319f74312a7d8019726
- Linux Linux
6.16
- KernelLinux
From 6.16.0 · fixed in 6.18.54; From 6.19.0 · fixed in 7.2.8