Linux Kernel do_mremap Function VMA Limit Local Privilege Escalation Vulnerability

BID:9686

Info

Linux Kernel do_mremap Function VMA Limit Local Privilege Escalation Vulnerability

Bugtraq ID: 9686
Class: Failure to Handle Exceptional Conditions
CVE: CVE-2004-0077
Remote: No
Local: Yes
Published: Feb 18 2004 12:00AM
Updated: Aug 05 2010 07:45PM
Credit: The disclosure of this issue has been credited to Paul Starzetz <[email protected]>.
Vulnerable: VMWare ESX Server 2.0.1
VMWare ESX Server 2.0
VMWare ESX Server 1.5.2
Trustix Secure Linux 2.0
Trustix Secure Linux 1.5
SmoothWall Express 2.0
SmoothWall Corporate Server 0.3 (Fixes7)
SmoothWall Corporate Guardian 0.3 (Fixes2)
SGI ProPack 2.4
Redhat kernel-source-2.4.20-8.i386.rpm
+ Redhat Linux 9.0 i386
Redhat kernel-smp-2.4.20-8.i686.rpm
+ Redhat Linux 9.0 i386
Redhat kernel-smp-2.4.20-8.athlon.rpm
Redhat kernel-doc-2.4.20-8.i386.rpm
Redhat kernel-BOOT-2.4.20-8.i386.rpm
+ Redhat Linux 9.0 i386
Redhat kernel-bigmem-2.4.20-8.i686.rpm
+ Redhat Linux 9.0 i386
Redhat kernel-2.4.20-8.i686.rpm
+ Redhat Linux 9.0 i386
Redhat kernel-2.4.20-8.i386.rpm
Redhat kernel-2.4.20-8.athlon.rpm
+ Redhat Linux 9.0 i386
Netwosix Netwosix Linux 1.0
Linux kernel 2.6.2
Linux kernel 2.6.1 -rc2
Linux kernel 2.6.1 -rc1
Linux kernel 2.6 -test9-CVS
Linux kernel 2.6 -test9
Linux kernel 2.6 -test8
Linux kernel 2.6 -test7
Linux kernel 2.6 -test6
Linux kernel 2.6 -test5
Linux kernel 2.6 -test4
Linux kernel 2.6 -test3
Linux kernel 2.6 -test2
Linux kernel 2.6 -test11
Linux kernel 2.6 -test10
Linux kernel 2.6 -test1
Linux kernel 2.6
Linux kernel 2.4.24
Linux kernel 2.4.23 -pre9
Linux kernel 2.4.23
+ Trustix Secure Linux 2.0
Linux kernel 2.4.22
+ Devil-Linux Devil-Linux 1.0.5
+ Devil-Linux Devil-Linux 1.0.4
+ Mandriva Linux Mandrake 9.2 amd64
+ Mandriva Linux Mandrake 9.2
+ Redhat Fedora Core1
+ Slackware Linux 9.1
Linux kernel 2.4.21 pre7
Linux kernel 2.4.21 pre4
+ Mandriva Linux Mandrake 9.1 ppc
+ Mandriva Linux Mandrake 9.1
Linux kernel 2.4.21 pre1
Linux kernel 2.4.21
+ Mandriva Linux Mandrake 9.1 ppc
+ Mandriva Linux Mandrake 9.1
+ Redhat Desktop 3.0
+ Redhat Enterprise Linux AS 3
+ Redhat Enterprise Linux ES 3
+ Redhat Enterprise Linux WS 3
+ S.u.S.E. Linux Personal 9.0 x86_64
+ S.u.S.E. Linux Personal 9.0
+ SuSE SUSE Linux Enterprise Server 8
Linux kernel 2.4.20
Linux kernel 2.4.19 -pre6
Linux kernel 2.4.19 -pre5
Linux kernel 2.4.19 -pre4
Linux kernel 2.4.19 -pre3
Linux kernel 2.4.19 -pre2
Linux kernel 2.4.19 -pre1
Linux kernel 2.4.19
+ Conectiva Linux Enterprise Edition 1.0
+ MandrakeSoft Corporate Server 2.1 x86_64
+ MandrakeSoft Corporate Server 2.1
+ MandrakeSoft Multi Network Firewall 2.0
+ Mandriva Linux Mandrake 9.0
+ Slackware Linux -current
+ SuSE Linux 8.1
+ SuSE SUSE Linux Enterprise Server 8
+ SuSE SUSE Linux Enterprise Server 7
Linux kernel 2.4.18 pre-8
Linux kernel 2.4.18 pre-7
Linux kernel 2.4.18 pre-6
Linux kernel 2.4.18 pre-5
Linux kernel 2.4.18 pre-4
Linux kernel 2.4.18 pre-3
Linux kernel 2.4.18 pre-2
Linux kernel 2.4.18 pre-1
Linux kernel 2.4.18 x86
Linux kernel 2.4.18
+ Astaro Security Linux 2.0 23
+ Astaro Security Linux 2.0 16
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
+ Mandriva Linux Mandrake 8.2
+ Mandriva Linux Mandrake 8.1
+ Mandriva Linux Mandrake 8.0
+ Redhat Advanced Workstation for the Itanium Processor 2.1 IA64
+ Redhat Advanced Workstation for the Itanium Processor 2.1
+ Redhat Enterprise Linux AS 2.1 IA64
+ Redhat Linux 8.0
+ Redhat Linux 7.3
+ S.u.S.E. Linux Connectivity Server
+ S.u.S.E. Linux Database Server 0
+ S.u.S.E. Linux Firewall on CD
+ S.u.S.E. Linux Office Server
+ S.u.S.E. Linux Personal 8.2
+ S.u.S.E. SuSE eMail Server 3.1
+ S.u.S.E. SuSE eMail Server III
+ SuSE Linux 8.1
+ SuSE Linux 8.0
+ SuSE Linux 7.3
+ SuSE Linux 7.2
+ SuSE Linux 7.1
+ SuSE Linux Openexchange Server
+ SuSE SUSE Linux Enterprise Server 8
+ SuSE SUSE Linux Enterprise Server 7
+ Turbolinux Turbolinux Server 8.0
+ Turbolinux Turbolinux Server 7.0
+ Turbolinux Turbolinux Workstation 8.0
+ Turbolinux Turbolinux Workstation 7.0
Linux kernel 2.4.17
Linux kernel 2.4.16
+ Sun Cobalt RaQ 550
Linux kernel 2.4.15
Linux kernel 2.4.14
Linux kernel 2.4.13
+ Caldera OpenLinux Server 3.1.1
+ Caldera OpenLinux Workstation 3.1.1
Linux kernel 2.4.12
Linux kernel 2.4.11
Linux kernel 2.4.10
Linux kernel 2.4.9
+ Redhat Enterprise Linux AS 2.1 IA64
+ Redhat Enterprise Linux AS 2.1
+ Redhat Enterprise Linux ES 2.1 IA64
+ Redhat Enterprise Linux ES 2.1
+ Redhat Enterprise Linux WS 2.1 IA64
+ Redhat Enterprise Linux WS 2.1
+ Redhat Linux 7.2 ia64
+ Redhat Linux 7.2 i386
+ Redhat Linux 7.2 alpha
+ Redhat Linux 7.1 ia64
+ Redhat Linux 7.1 i386
+ Redhat Linux 7.1 alpha
+ Sun Linux 5.0.5
+ Sun Linux 5.0.3
+ Sun Linux 5.0
Linux kernel 2.4.8
+ Mandriva Linux Mandrake 8.2
+ Mandriva Linux Mandrake 8.1
+ Mandriva Linux Mandrake 8.0
Linux kernel 2.4.7
+ Redhat Linux 7.2
+ SuSE Linux 7.2
+ SuSE Linux 7.1
Linux kernel 2.4.6
Linux kernel 2.4.5
+ Slackware Linux 8.0
Linux kernel 2.4.4
+ SuSE Linux 7.2
Linux kernel 2.4.3
+ Mandriva Linux Mandrake 8.0 ppc
+ Mandriva Linux Mandrake 8.0
Linux kernel 2.4.2
Linux kernel 2.4.1
Linux kernel 2.4 .0-test9
Linux kernel 2.4 .0-test8
Linux kernel 2.4 .0-test7
Linux kernel 2.4 .0-test6
Linux kernel 2.4 .0-test5
Linux kernel 2.4 .0-test4
Linux kernel 2.4 .0-test3
Linux kernel 2.4 .0-test2
Linux kernel 2.4 .0-test12
Linux kernel 2.4 .0-test11
Linux kernel 2.4 .0-test10
Linux kernel 2.4 .0-test1
Linux kernel 2.4
Linux kernel 2.2.25
Linux kernel 2.2.24
Linux kernel 2.2.23
Linux kernel 2.2.22
Linux kernel 2.2.21
Linux kernel 2.2.20
+ Mandriva Linux Mandrake 8.2 ppc
+ Mandriva Linux Mandrake 8.2
Linux kernel 2.2.19
+ EnGarde Secure Linux 1.0.1
+ Immunix Immunix OS 7+
+ MandrakeSoft Single Network Firewall 7.2
+ Mandriva Linux Mandrake 8.1
+ Mandriva Linux Mandrake 8.0 ppc
+ Mandriva Linux Mandrake 8.0
+ SuSE Linux 7.0
+ SuSE Linux 6.4
+ SuSE Linux 6.3
+ Trustix Secure Linux 1.5
Linux kernel 2.2.17
+ Mandriva Linux Mandrake 7.2
+ SuSE Linux 7.0
+ Trustix Secure Linux 1.2
Linux kernel 2.2.16 pre6
Linux kernel 2.2.16
Linux kernel 2.2.15 pre20
Linux kernel 2.2.15 pre16
Linux kernel 2.2.15
Linux kernel 2.2.14
+ Redhat Linux 6.2
+ SCO eDesktop 2.4
+ SCO eServer 2.3.1
+ Sun Cobalt RaQ 4
Linux kernel 2.2.13
+ SuSE Linux 6.4
+ SuSE Linux 6.3
Linux kernel 2.2.12
Linux kernel 2.2.11
Linux kernel 2.2.10
Linux kernel 2.2.9
Linux kernel 2.2.8
Linux kernel 2.2.7
Linux kernel 2.2.6
Linux kernel 2.2.5
Linux kernel 2.2.4
Linux kernel 2.2.3
Linux kernel 2.2.2
Linux kernel 2.2.1
Linux kernel 2.2
Leif M. Wright simplestmail.cgi 2.2.18
Not Vulnerable: Linux kernel 2.6.3
Linux kernel 2.6.2
Linux kernel 2.4.25
Linux kernel 2.4.24 -ow1
Linux kernel 2.4.24
Linux kernel 2.4.23 -ow2
Linux kernel 2.2.25

Discussion

Linux Kernel do_mremap Function VMA Limit Local Privilege Escalation Vulnerability

It has been reported that the Linux kernel may be prone to a local privilege escalation vulnerability due to a improper checks on return values performed in the do_mremap system function. Successful exploitation of this issue may allow a local attacker with limited privileges on a host to fully compromise the system because special privileges are not required to use the mremap(2) system call. The issue may also allow a denial of service condition on available system memory.

Exploit / POC

Linux Kernel do_mremap Function VMA Limit Local Privilege Escalation Vulnerability

Working exploit code has been released and is included in the attached "Linux kernel do_mremap VMA limit local privilege escalation vulnerability" advisory.

CORE has developed a working commercial exploit for their IMPACT
product. This exploit is not otherwise publicly available or known
to be circulating in the wild.

The following proof of concept supplied by Christophe Devine may be used to test this issue:

Solution / Fix

Linux Kernel do_mremap Function VMA Limit Local Privilege Escalation Vulnerability

Solution:
SmoothWall have released an advisory (SWL-2004:002) and fixes to address this issue in SmoothWall Corporate Server 3.0(fixes7) and Corporate Guardian 3.0(fixes2). Please see referenced advisory for additional details regarding obtaining and applying appropriate fixes. Fixes are linked below.

Mandrake has released an advisory (MDKSA-2004:015) with fixes to address this issue. Please see the referenced advisory for more information.

Trustix has released an advisory TSLSA-2004-0008 with fixes to address this issue. Please see the referenced advisory for more information.

Turbolinux has released an advisory TLSA-2004-7 with fixes to address this issue. Please see the referenced advisory for more information.

RedHat has released an advisory RHSA-2004:065-01 with fixes to address this issue. Please see the referenced advisory for more information.

Trustix has released an advisory TSLSA-2004-0007 with fixes to address this issue. Please see the referenced advisory for more information.

Slackware has released an advisory SSA:2004-049-01 with fixes to address this issue. Please see the referenced advisory for more information.

Debian has released multiple advisories DSA-439-1, DSA-440-1, DSA-438-1 with fixes to address this issue. Please see the referenced advisories for more information.

Debian has released an advisory DSA-441-1 with fixes to address this issue. Please see the referenced advisory for more information.

RedHat has released an advisory FEDORA-2004-079 with fixes to address this issue. Please see the referenced advisory for more information.

SuSE has released advisory SA:2004:005 dealing with this issue. Please see the referenced advisory for more information.

Debian has released DSA 442-1 to provide fixes for s390 platforms. Please see the attached advisory for further information.

RedHat has released an updated advisory FEDORA-2004-080 with fixes to address this issue. Please see the referenced advisory for more information.

Debian has released DSA 444-1 to provide fixes for ia64 platforms. Please see the attached advisory for further information.

Conectiva has released advisory CLA-2004:820 dealing with this issue. Please see the referenced advisory for more information.

Netwosix advisory 2004-0002 has been released dealing with this issue. Please see below for fixes and the reference section for the advisory text.

Mandrake has released an updated advisory MDKSA-2004:015-1 to address this and other issues. Please see the referenced advisory for more information.

SmoothWall Project has released an advisory SWP-2004:002 to address this issue in SmoothWall Express 2.0. Please see the referenced advisory for more information.

SGI has released an advisory 20040204-01-U to address this and other issues in SGI ProPack 2.4. Please see the referenced advisory for more information.

Immunix advisory IMNX-2004-7+-001-01 was released to provide updates for this issue.

Debian has released DSA 450-1 to provide MIPS kernel fixes. Please see the attached advisory for further details.

Debian has released advisory DSA 453-1 providing kernel fixes for the i386, m68k and PowerPC architectures. Please see the attached advisory for details.

Debian has released advisory DSA 454-1 providing kernel fixes for the alpha architecture. Please see the attached advisory for details.

Fedora has released legacy advisory update FLSA:1284 fixing this issue in Red Hat linux 7.2, 7.3 and 8.0 for the i386, i586, i686 and athlon architectures. Please see the referenced advisory for details.

Debian has released DSA 456-1 with updates for 2.2.19 (arm) kernels. Please see the attached advisory for details on obtaining and applying fixes.

Gentoo has released advisory GLSA 200403-02 to address this issue. Detailed upgrade instructions may be found in the attached advisory.

Devil-Linux 1.0.5 was released to address this issue.

Debian has released DSA 466-1 with updates for 2.2.10 (ppc) kernels. Please see the attached advisory for details on obtaining and applying fixes.

Debian has released DSA 470-1 to address this and other issues in the HP Precision architecture. Please see the referenced advisory for more information.

VMWare advisory and fixes available for their ESX server package. Please see th reference section for more information.

Debian has released advisory DSA 475-1 with fixes dealing with this and other issues for the HP Precision architecture.

Debian has released advisory DSA 514-1 with fixes dealing with this issue for the SPARC architecture. Please see the referenced advisory for more information.

Fixes available:


Redhat kernel-2.4.20-8.athlon.rpm

Redhat kernel-2.4.20-8.i386.rpm

Redhat kernel-smp-2.4.20-8.i686.rpm

Redhat kernel-BOOT-2.4.20-8.i386.rpm

Redhat kernel-bigmem-2.4.20-8.i686.rpm

Redhat kernel-source-2.4.20-8.i386.rpm

Redhat kernel-2.4.20-8.i686.rpm

SmoothWall Corporate Server 0.3 (Fixes7)

SmoothWall Corporate Guardian 0.3 (Fixes2)

VMWare ESX Server 2.0

VMWare ESX Server 2.0.1

Linux kernel 2.2.19

Linux kernel 2.2.20

Linux kernel 2.4.17

Linux kernel 2.4.18

Linux kernel 2.4.19

Linux kernel 2.4.21

Linux kernel 2.4.22

Linux kernel 2.4.23

Linux kernel 2.4.5

Linux kernel 2.4.9

References

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report