Linux kernel do_mremap allows elevated privileges

linux-mremap-gain-privileges (15244) The risk level is classified as HighHigh Risk

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:

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

Return to the main page