Linux kernel do_mremap allows elevated privileges
| linux-mremap-gain-privileges (15244) |
Description:
Linux kernel could allow a local attacker to gain elevated privileges on the system, caused by a vulnerability in the memory management code. The do_mremap function allows for the remapping, resizing, and moving of a virtual memory area (VMA). The do_mremap function fails to properly check the value returned by the do_munmap function. A local attacker could exploit this vulnerability to execute arbitrary code on the vulnerable system with elevated privileges.
Platforms Affected:
- Conectiva, Linux 8.0
- Conectiva, Linux 9.0
- Debian, Debian Linux 3.0
- Gentoo, Linux
- Immunix, Immunix OS 7+-beta
- Linux, Kernel 2.2.0
- Linux, Kernel 2.2.1
- Linux, Kernel 2.2.10
- Linux, Kernel 2.2.11
- Linux, Kernel 2.2.12
- Linux, Kernel 2.2.13
- Linux, Kernel 2.2.14
- Linux, Kernel 2.2.15 pre20
- Linux, Kernel 2.2.15 pre16
- Linux, Kernel 2.2.15
- Linux, Kernel 2.2.16 pre6
- Linux, Kernel 2.2.16
- Linux, Kernel 2.2.17
- Linux, Kernel 2.2.18
- Linux, Kernel 2.2.19
- Linux, Kernel 2.2.2
- Linux, Kernel 2.2.20
- Linux, Kernel 2.2.21
- Linux, Kernel 2.2.22
- Linux, Kernel 2.2.23
- Linux, Kernel 2.2.24
- Linux, Kernel 2.2.3
- Linux, Kernel 2.2.7
- Linux, Kernel 2.2.8
- Linux, Kernel 2.2.9
- Linux, Kernel 2.4.0 test1
- 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
- Linux, Kernel 2.4.0 test9
- Linux, Kernel 2.4.0 test10
- Linux, Kernel 2.4.0 test11
- Linux, Kernel 2.4.1
- Linux, Kernel 2.4.10
- Linux, Kernel 2.4.11
- Linux, Kernel 2.4.12
- Linux, Kernel 2.4.13
- Linux, Kernel 2.4.14
- Linux, Kernel 2.4.15
- Linux, Kernel 2.4.16
- Linux, Kernel 2.4.17
- Linux, Kernel 2.4.18
- Linux, Kernel 2.4.18 x86
- Linux, Kernel 2.4.18 pre8
- Linux, Kernel 2.4.18 pre7
- Linux, Kernel 2.4.18 pre6
- Linux, Kernel 2.4.18 pre5
- Linux, Kernel 2.4.18 pre4
- Linux, Kernel 2.4.18 pre3
- Linux, Kernel 2.4.18 pre2
- Linux, Kernel 2.4.18 pre1
- Linux, Kernel 2.4.19 pre3
- Linux, Kernel 2.4.19 pre4
- Linux, Kernel 2.4.19 pre2
- Linux, Kernel 2.4.19 pre1
- Linux, Kernel 2.4.19
- Linux, Kernel 2.4.19 pre6
- Linux, Kernel 2.4.19 pre5
- Linux, Kernel 2.4.2
- Linux, Kernel 2.4.20
- Linux, Kernel 2.4.21 pre4
- Linux, Kernel 2.4.21 pre1
- Linux, Kernel 2.4.21
- Linux, Kernel 2.4.21 pre7
- Linux, Kernel 2.4.22
- Linux, Kernel 2.4.23 pre9
- Linux, Kernel 2.4.23
- Linux, Kernel 2.4.24
- Linux, Kernel 2.4.3
- Linux, Kernel 2.4.4
- Linux, Kernel 2.4.5
- Linux, Kernel 2.4.6
- Linux, Kernel 2.4.7
- Linux, Kernel 2.4.8
- Linux, Kernel 2.4.9
- Linux, Kernel 2.6.0
- Linux, Kernel 2.6.0 test9-cvs
- Linux, Kernel 2.6.0 test9
- Linux, Kernel 2.6.0 test8
- Linux, Kernel 2.6.0 test7
- Linux, Kernel 2.6.0 test6
- Linux, Kernel 2.6.0 test5
- Linux, Kernel 2.6.0 test4
- Linux, Kernel 2.6.0 test3
- Linux, Kernel 2.6.0 test2
- Linux, Kernel 2.6.0 test11
- Linux, Kernel 2.6.0 test10
- Linux, Kernel 2.6.0 test1
- Linux, Kernel 2.6.1 rc2
- Linux, Kernel 2.6.1 rc1
- Linux, Kernel 2.6.2
- Linux, Kernel 2.6.4
- Linux, Kernel 2.6.5
- Linux, Kernel 2.6.6
- MandrakeSoft, Mandrake Linux 9.0
- MandrakeSoft, Mandrake Linux 9.1 PPC
- MandrakeSoft, Mandrake Linux 9.1
- MandrakeSoft, Mandrake Linux 9.2
- MandrakeSoft, Mandrake Linux 9.2 AMD64
- MandrakeSoft, Mandrake Linux Corporate Server 2.1
- MandrakeSoft, Mandrake Linux Corporate Server 2.1 X86_64
- MandrakeSoft, Mandrake Multi Network Firewall 8.2
- RedHat, bigmem kernel 2.4.20-8 i686
- RedHat, Enterprise Linux 2.1 AW
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 AS
- RedHat, kernel 2.4.20-8 Athlon SMP
- RedHat, kernel 2.4.20-8 i686 SMP
- RedHat, kernel boot 2.4.20-8 i386
- RedHat, kernel doc 2.4.20-8 i386
- RedHat, Linux 9.0
- RedHat, Linux Advanced Workstation 2.1 Itanium
- Slackware, Slackware Linux 9.1
- Slackware, Slackware Linux current
- SuSE, SuSE eMail Server 3.1
- SuSE, SuSE eMail Server III
- SuSE, SuSE Linux 8.0
- SuSE, SuSE Linux 8.1
- SuSE, SuSE Linux 8.2
- SuSE, SuSE Linux 9.0
- SuSE, SuSE Linux Connectivity Server
- SuSE, SuSE Linux Database Server
- SuSE, SuSE Linux Enterprise Server 7.0
- SuSE, SuSE Linux Enterprise Server 8.0
- SuSE, SuSE Linux Firewall
- SuSE, SuSE Linux Office Server
- Trustix, Secure Linux 1.5
- Turbolinux, Turbolinux 7 Server
- Turbolinux, Turbolinux 7 Workstation
- Turbolinux, Turbolinux 8 Server
- Turbolinux, Turbolinux 8 Workstation
Remedy:
For Linux Kernel 2.4.x:
Upgrade to the latest version of Linux kernel (2.4.25 or later), available from the Linux Kernel Web site. See References.
For Linux Kernel 2.6.x:
Upgrade to the latest version of Linux kernel (2.6.3 or later), available from the Linux Kernel Web site. See References.
For Red Hat Linux 9:
Upgrade to the latest kernel package (2.4.20-30.9 or later), as listed in RHSA-2004:065-04 for more information. See References.
For Red Hat Linux:
Upgrade to the latest kernel package, as listed below. Refer to RHSA-2004:069-06 for more information. See References.
Red Hat Enterprise Linux AS (v. 2.1), ES (v. 2.1), and WS (v. 2.1): 2.4.9-e.38 or later
For Red Hat Linux:
Upgrade to the latest kernel package, as listed below. Refer to RHSA-2004:106-10 for more information. See References.
Red Hat Enterprise Linux AS (v. 2.1) and Advanced Workstation 2.1 for the Itanium Processor: 2.4.18-e.43 or later
For Debian GNU/Linux 3.0 (woody):
Upgrade to the latest kernel package, as listed below. Refer to DSA-438-1 for more information. See References.
kernel-source: 2.4.18 or later
kernel-image (Alpha): 2.4.18-1
kernel-image (Intel i386): 2.4.18-1-i386 or later
kernel-image (Intel i386bf): 2.4.18-i386bf
kernel-patch (PPC): 2.4.18 or later
For Debian GNU/Linux 3.0 (woody) containing the linux-kernel-2.4.17-s390 package:
Upgrade to the latest kernel package (0.0.20020816-0.woody.2 or later), as listed in DSA-442-1. See References.
For Debian GNU/Linux 3.0 (woody) containing the mips+mipsel-2.4.17 package:
Upgrade to the latest kernel package (2.4.17-0.020226.2.woody5 or later), as listed in DSA-441-1. See References.
For Debian GNU/Linux 3.0 (woody) containing the powerpc-apus-2.4.17 package:
Upgrade to the latest kernel package (2.4.17-4 or later), as listed in DSA-440-1. See References.
For Debian GNU/Linux 3.0 (woody) containing the arm-2.2.19 package:
Upgrade to the latest kernel package (2.2.19.1-4woody1 or later), as listed in DSA-456-1. See References.
For Debian GNU/Linux 3.0 (woody) containing the kernel-2.4.17 package:
Upgrade to the latest kernel package (2.4.17-ia64_011226.16 or later), as listed in DSA-444-1. See References.
For Debian GNU/Linux 3.0 (woody) containing the mips-2.4.17 package:
Upgrade to the latest kernel package (2.4.19-4.woody1 or later), as listed in DSA-450-1. See References.
For Debian GNU/Linux 3.0 (alias woody) containing the kernel-2.2.20 package:
Upgrade to the latest kernel package (2.2.20-5woody3 or later), as listed in DSA-453-1. See References.
For Debian GNU/Linux 3.0 (woody) containing the kernel-2.2.22 package:
Upgrade to the latest kernel package (2.2.22-1woody1 or later), as listed in DSA-454-1. See References.
For Debian GNU/Linux 3.0 (woody) containing the kernel-2.2.10 package:
Upgrade to the latest kernel package (2.2.10-13woody1 or later), as listed in DSA-466-1. See References.
For Debian GNU/Linux 3.0 (woody) containing the hppa package:
Upgrade to the latest kernel package, as listed below. Refer to DSA-475-1 for more information. See References.
Debian GNU/Linux 3.0: 2.4.18-hppa or later
For SuSE Linux:
Upgrade to the latest kernel package, as listed below. Refer to SuSE Security Announcement SuSE-SA:2004:005 for more information. See References.
SuSE Linux 9.0 (Intel): 2.4.21-192 or later
SuSE Linux 8.2: 2.4.20-105 or later
SuSE Linux 8.1: 2.4.21-189 or later
SuSE Linux 9.0 (x86_64 Platform): 2.4.21-201 or later
For Slackware Linux:
Upgrade to the latest kernel package, as listed below. Refer to slackware-security Mailing List, Wed, 18 Feb 2004 04:37:55 -0800 (PST) for more information. See References.
Slackware Linux 9.1 and -current: 2.4.24-i486-2 or later
For Conectiva Linux:
Upgrade to the latest kernel package, as listed below. Refer to Conectiva Linux Security Announcement CLSA-2004:820 for more information. See References.
Conectiva Linux 8: 2.4.19-1U80_21cl or later
Conectiva Linux 9: 2.4.21-31301U90_15cl or later
For Turbolinux:
Upgrade to the latest kernel package (2.4.18-17 or later), as listed in Turbolinux Security Advisory TLSA-2004-7. See References.
For Trustix Secure Linux 1.5:
Upgrade to the latest kernel package (2.2.25-10tr or later), as listed in Trustix Secure Linux Security Advisory #2004-0008. See References.
For Mandrake Linux:
Upgrade to the latest kernel package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:015 : kernel for more information. See References.
Mandrake Linux 9.0, Multi Network Firewall 8.2, and Corporate Server 2.1: 2.4.19.38mdk-1-1mdk or later
Mandrake Linux 9.1: 2.4.21.0.28mdk-1-1mdk or later
Mandrake Linux 9.2: 2.4.22.28mdk-1-1mdk or later
For Mandrake Linux:
Upgrade to the latest kernel package, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:015-1 : kernel for more information. See References.
Mandrake Linux Corporate Server 2.1: 2.4.19.38mdk-1-1mdk or later
For Immunix 7+:
Upgrade to the latest version of kernel (2.2.19-16_imnx_29 or later), as listed in Immunix Secured OS Security Advisory IMNX-2004-7+-001-01. See References.
For Gentoo Linux:
Upgrade to the appropriate package of kernel, as listed in GLSA 200403-02. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Privileges
References:
- CIAC Information Bulletin O-082, Red Hat Updated Kernel Packages Resolve Security Vulnerabilities at http://www.ciac.org/ciac/bulletins/o-082.shtml.
- CIAC Information Bulletin O-094, Linux mremap(2) System Call Vulnerability at http://www.ciac.org/ciac/bulletins/o-094.shtml.
- CIAC Information Bulletin O-094, Linux mremap(2) System Call Vulnerability at http://www.ciac.org/ciac/bulletins/o-094.shtml.
- CIAC Information Bulletin O-126, Red Hat Updated Kernel Packages Fix Several Vulnerabilities at http://www.ciac.org/ciac/bulletins/o-126.shtml.
- Conectiva Linux Security Announcement CLSA-2004:820, kernel at http://distro.conectiva.com/atualizacoes/index.php?id=a&anuncio=000820.
- Full-Disclosure Mailing List, Wed Feb 18 2004 - 06:01:50 CST, Second critical mremap() bug found in all Linux kernels at http://archives.neohapsis.com/archives/fulldisclosure/2004-02/0935.html.
- Immunix Secured OS Security Advisory IMNX-2004-7+-001-01, kernel at http://www.linuxsecurity.com/content/view/105796/105/. (From LinuxSecurity archive)
- Linux Kernel ChangeLog Web page, Summary of changes from v2.4.25-rc3 to v2.4.25-rc4 at http://www.kernel.org/pub/linux/kernel/v2.4/ChangeLog-2.4.25.
- Linux Kernel Web site, The Linux Kernel Archives at http://www.kernel.org.
- slackware-security Mailing List, Wed, 18 Feb 2004 04:37:55 -0800 (PST), Kernel security update (SSA:2004-049-01) at http://www.slackware.org/security/viewer.php?l=slackware-security&y=2004&m=slackware-security.541911.
- Trustix Secure Linux Security Advisory #2004-0008, kernel at http://www.linuxsecurity.com/content/view/105778/109/. (From LinuxSecurity archive)
- BID-9686: Linux Kernel do_mremap Function VMA Limit Local Privilege Escalation Vulnerability
- CVE-2004-0077: The do_mremap function for the mremap system call in Linux 2.2 to 2.2.25, 2.4 to 2.4.24, and 2.6 to 2.6.2, does not properly check the return value from the do_munmap function when the maximum number of VMA descriptors is exceeded, which allows local users to gain root privileges, a different vulnerability than CAN-2003-0985.
- DSA-438: linux-kernel-2.4.18-alpha+i386+powerpc -- missing function return value check
- DSA-439: linux-kernel-2.4.16-arm -- several vulnerabilities
- DSA-440: linux-kernel-2.4.17-powerpc-apus -- several vulnerabilities
- DSA-441: linux-kernel-2.4.17-mips+mipsel -- missing function return value check
- DSA-442: linux-kernel-2.4.17-s390 -- several vulnerabilities
- DSA-444: linux-kernel-2.4.17-ia64 -- missing function return value check
- DSA-450: linux-kernel-2.4.19-mips -- several vulnerabilities
- DSA-453: linux-kernel-2.2.20-i386+m68k+powerpc -- failing function and TLB flush
- DSA-454: linux-kernel-2.2.22-alpha -- failing function and TLB flush
- DSA-456: linux-kernel-2.2.19-arm -- failing function and TLB flush
- DSA-466: linux-kernel-2.2.10-powerpc-apus -- failing function and TLB flush
- DSA-470: linux-kernel-2.4.17-hppa -- several vulnerabilities
- DSA-475: linux-kernel-2.4.18-hppa -- several vulnerabilities
- DSA-514: kernel-image-sparc-2.2 -- failing function and TLB flush
- GLSA-200403-02: Linux kernel do_mremap local privilege escalation vulnerability
- MDKSA-2004:015: Updated kernel packages fix multiple vulnerabilities
- MDKSA-2004:015-1: Updated x86_64 kernel packages fix multiple vulnerabilities
- RHSA-2004-065: Updated kernel packages resolve security vulnerabilities
- RHSA-2004-066: kernel security update
- RHSA-2004-069: kernel security update
- RHSA-2004-106: kernel security update
- SUSE-SA:2004:005: Linux Kernel: local privilege escalation
Reported:
Feb 18, 2004
The information within this database may change without notice. 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. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
