Linux kernel netfilter do_replace integer overflow

linux-netfilter-doreplace-overflow (25400) The risk level is classified as HighHigh Risk

Description:

Linux kernel is vulnerable to an integer overflow in the Netfilter do_replace() function. A local attacker with CAP_NET_ADMIN rights could exploit this vulnerability to cause a buffer overflow in the copy_from_user() function and possibly execute arbitrary commands on the system with elevated privileges.

Platforms Affected:

  • Canonical, Ubuntu 5.04
  • Canonical, Ubuntu 5.10
  • Canonical, Ubuntu 6.06 LTS
  • Debian, Debian Linux 3.1
  • Linux, Kernel 2.6.0 test9-cvs
  • Linux, Kernel 2.6.0
  • Linux, Kernel 2.6.0 test7
  • Linux, Kernel 2.6.0 test1
  • Linux, Kernel 2.6.0 test10
  • Linux, Kernel 2.6.0 test9
  • Linux, Kernel 2.6.0 test8
  • 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.1 rc2
  • Linux, Kernel 2.6.1 rc1
  • Linux, Kernel 2.6.1
  • Linux, Kernel 2.6.10
  • Linux, Kernel 2.6.10 rc2
  • Linux, Kernel 2.6.11 rc4
  • Linux, Kernel 2.6.11 rc3
  • Linux, Kernel 2.6.11
  • Linux, Kernel 2.6.11 rc2
  • Linux, Kernel 2.6.11.11
  • Linux, Kernel 2.6.11.12
  • Linux, Kernel 2.6.11.5
  • Linux, Kernel 2.6.11.6
  • Linux, Kernel 2.6.11.7
  • Linux, Kernel 2.6.11.8
  • Linux, Kernel 2.6.12 rc1
  • Linux, Kernel 2.6.12 rc5
  • Linux, Kernel 2.6.12 rc4
  • Linux, Kernel 2.6.12.1
  • Linux, Kernel 2.6.12.2
  • Linux, Kernel 2.6.12.3
  • Linux, Kernel 2.6.12.4
  • Linux, Kernel 2.6.12.5
  • Linux, Kernel 2.6.12.6
  • Linux, Kernel 2.6.13 rc6
  • Linux, Kernel 2.6.13
  • Linux, Kernel 2.6.13 rc1
  • Linux, Kernel 2.6.13 rc7
  • Linux, Kernel 2.6.13 rc4
  • Linux, Kernel 2.6.13.1
  • Linux, Kernel 2.6.13.2
  • Linux, Kernel 2.6.13.3
  • Linux, Kernel 2.6.13.4
  • Linux, Kernel 2.6.14 rc1
  • Linux, Kernel 2.6.14 rc4
  • Linux, Kernel 2.6.14 rc2
  • Linux, Kernel 2.6.14
  • Linux, Kernel 2.6.14 rc3
  • Linux, Kernel 2.6.14.1
  • Linux, Kernel 2.6.14.2
  • Linux, Kernel 2.6.14.3
  • Linux, Kernel 2.6.14.4
  • Linux, Kernel 2.6.14.5
  • Linux, Kernel 2.6.15 rc2
  • Linux, Kernel 2.6.15 rc3
  • Linux, Kernel 2.6.15
  • Linux, Kernel 2.6.15 rc1
  • Linux, Kernel 2.6.15.1
  • Linux, Kernel 2.6.15.2
  • Linux, Kernel 2.6.15.3
  • Linux, Kernel 2.6.15.4
  • Linux, Kernel 2.6.15.5
  • Linux, Kernel 2.6.16 rc1
  • Linux, Kernel 2.6.2
  • Linux, Kernel 2.6.3
  • Linux, Kernel 2.6.4
  • Linux, Kernel 2.6.5
  • Linux, Kernel 2.6.6 rc1
  • Linux, Kernel 2.6.6
  • Linux, Kernel 2.6.7 rc1
  • Linux, Kernel 2.6.7
  • Linux, Kernel 2.6.8 rc2
  • Linux, Kernel 2.6.8 rc1
  • Linux, Kernel 2.6.8
  • Linux, Kernel 2.6.8 rc3
  • Linux, Kernel 2.6.9
  • RedHat, Enterprise Linux 4 AS
  • RedHat, Enterprise Linux 4 WS
  • RedHat, Enterprise Linux 4 ES
  • RedHat, Enterprise Linux 4 Desktop
  • Turbolinux, Turbolinux 8 Server

Remedy:

Upgrade to the latest stable version of Linux kernel (2.6.16 or later), available from The Linux Kernel Archives. See References.

For Debian GNU/Linux:
Refer to DSA-1097-1 and DSA-1103-1 for patch, upgrade, or suggested workaround information. See References.

For Red Hat Linux 4:
Refer to RHSA-2006:0575-22 for patch, upgrade, or suggested workaround information. See References.

For Turbolinux:
Refer to Red Hat Linux Security Advisory TLSA-2007-2 for patch, upgrade, or suggested workaround information. See References.

Consequences:

Gain Privileges

References:

  • The Linux Kernel Archives, ChangeLog-2.6.16 at http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.16.
  • The The Linux Kernel Archives Web site, The Linux Kernel Archives at http://www.kernel.org/.
  • ASA-2006-200: Updated kernel packages available for Red Hat Enterprise Linux 4 Update 4 (RHSA-2006-0575)
  • BID-17178: Linux Kernel Netfilter Do_Replace Local Buffer Overflow Vulnerability
  • CVE-2006-0038: Integer overflow in the do_replace function in netfilter for Linux before 2.6.16-rc3, when using virtualization solutions such as OpenVZ, allows local users with CAP_NET_ADMIN rights to cause a buffer overflow in the copy_from_user function.
  • DSA-1097: kernel-source-2.4.27 -- several vulnerabilities
  • DSA-1103: kernel-source-2.6.8 -- several vulnerabilities
  • RHSA-2006-0575: Updated kernel packages available for Red Hat Enterprise Linux 4 Update 4
  • SA19330: Linux Kernel Netfilter Weakness and Four Vulnerabilities
  • SA22417: Avaya Products Linux Kernel Multiple Vulnerabilities

Reported:

Mar 22, 2006

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