Vulnerability Note VU#981222
Linux kernel mremap(2) system call does not properly check return value from do_munmap() function
Overview
A vulnerability in the Linux mremap(2) system call could allow an authenticated, local attacker to execute arbitrary code with root privileges.
Description
The Linux kernel uses a linked list of vitrual memory area (VMA) descriptors to reference valid regions of the page table for a given process. VMA descriptors include information about the memory area such as start address, length, and page protection flags. A VMA effectively contains a range of page table entries (PTEs) that make up part of the page table. The mremap(2) system call has the ability to resize or move a VMA or part of a VMA within a process' memory space. mremap(2) contains a function called do_munmap() that is used to unmap regions of memory during resize or move operations. There is a limit on the number of VMA descriptors that can exist at one time, and do_munmap() does not create a new VMA descriptor if doing so would exceed this limit. |
Impact
An authenticated, local attacker could execute arbitrary code with root privileges. |
Solution
Patch or Upgrade |
Systems Affected (Learn More)
| Vendor | Status | Date Notified | Date Updated |
|---|---|---|---|
| Astaro | Affected | - | 25 Mar 2004 |
| Conectiva | Affected | 10 Mar 2004 | 11 Mar 2004 |
| Debian | Affected | 10 Mar 2004 | 11 Mar 2004 |
| Fedora Legacy Project | Affected | - | 25 Mar 2004 |
| Fedora Project | Affected | - | 25 Mar 2004 |
| Gentoo Linux | Affected | - | 11 Mar 2004 |
| Linux Kernel Archives | Affected | - | 10 Mar 2004 |
| Linux Netwosix | Affected | - | 25 Mar 2004 |
| MandrakeSoft | Affected | 10 Mar 2004 | 25 Mar 2004 |
| Openwall GNU/*/Linux | Affected | 10 Mar 2004 | 25 Mar 2004 |
| Red Hat Inc. | Affected | 10 Mar 2004 | 11 Mar 2004 |
| SGI | Affected | 10 Mar 2004 | 25 Mar 2004 |
| Slackware | Affected | - | 25 Mar 2004 |
| SmoothWall | Affected | - | 11 Mar 2004 |
| Sun Microsystems Inc. | Affected | 10 Mar 2004 | 25 Mar 2004 |
CVSS Metrics (Learn More)
| Group | Score | Vector |
|---|---|---|
| Base | N/A | N/A |
| Temporal | N/A | N/A |
| Environmental | N/A | N/A |
References
- http://www.kernel.org/
- http://isec.pl/vulnerabilities/isec-0014-mremap-unmap.txt
- http://www.securityfocus.com/archive/1/354284
- http://www.securityfocus.com/archive/1/355781
- http://www.securityfocus.com/bid/9686
- http://xforce.iss.net/xforce/xfdb/15244
- http://secunia.com/advisories/10897/
Credit
This vulnerability was researched and reported by Paul Starzetz of iSEC.
This document was written by Art Manion.
Other Information
- CVE IDs: CAN-2004-0077
- Date Public: 18 Feb 2004
- Date First Published: 10 Mar 2004
- Date Last Updated: 25 Mar 2004
- Severity Metric: 26.52
- Document Revision: 26
Feedback
If you have feedback, comments, or additional information about this vulnerability, please send us email.