libc realpath(3) function off-by-one buffer overflow

libc-realpath-offbyone-bo (12785) The risk level is classified as HighHigh Risk

Description:

The libc development library is vulnerable to a buffer overflow, caused by an off-by-one error in the realpath(3) function. A remote or local attacker could issue a specially-crafted FTP command to overflow a buffer and cause a denial of service or execute arbitrary code on the system with root privileges.


Consequences:

Gain Privileges

Remedy:

For Red Hat Linux:
Upgrade to the latest wu-ftpd package, as listed below. Refer to RHSA-2003:245-15 for more information. See References.

Red Hat 7.1 and iSeries and pSeries: 2.6.2-11.71.1 or later
Red Hat 7.2: 2.6.2-11.72.1 or later
Red Hat 7.3: 2.6.2-11.73.1 or later
Red Hat 8.0: 2.6.2-12 or later

For Red Hat Linux containing the wu-ftpd package:
Upgrade to the latest wu-ftpd package, as listed below. Refer to RHSA-2003:246-12 for more information. See References.

Red Hat Enterprise Linux AS (v. 2.1), ES (v.2.1), WS (v.2.1): 2.6.1-21 or later

For Mandrake Linux 8.2:
Upgrade to the latest version of wu-ftpd (2.6.2-1-1mdk or later), as listed in MandrakeSoft Security Advisory MDKSA-2003:080 : wu-ftpd. See References.

For Debian GNU/Linux 3.0 (stable):
Upgrade to the latest version of wu-ftpd (2.6.2-3woody1 or later), as listed in DSA-357-1. See References.

For SuSe Linux:
Upgrade to the latest wu-ftpd package, as listed below. Refer to SuSE Linux Security Announcement SuSE-SA:2003:032 for more information. See References.

SuSE Linux 7.3 (Intel): 2.6.0-403 or later
SuSE Linux 7.3 (Sparc): 2.6.0-260 or later
SuSE Linux 7.3 (PPC): 2.6.0-328 or later

For FreeBSD:
Upgrade to the latest version of FreeBSD (4.8-STABLE or the latest security branch dated later than 2003-08-03), as listed in FreeBSD Security Advisory FreeBSD-03:08.realpath. See References.

For OpenBSD 3.3 and earlier:
Apply the appropriate patch for your system, as listed in OpenBSD 015: SECURITY FIX: August 4, 2003. See References.

For NetBSD 1.5, 1.5.1, 1.5.2, 1.5.3, 1.6 and 1.6.1:
Upgrade to the latest version of the NetBSD (NetBSD-current or the latest NetBSD 1.6 branch (dated August 5, 2003 or later), as listed in NetBSD Security Advisory 2003-011. See References.

For Turbolinux:
Upgrade to the latest wu-ftpd package (2.6.2-1 or later), as listed in Turbolinux Security Advisory TLSA-2003-46. See References.

For Immunix 7+:
Upgrade to the latest version of wu-ftpd (2.6.1-6_imnx_8 or later), as listed in Immunix Secured OS Security Advisory IMNX-2003-7+-019-01. See References.

For Mac OS X:
Apply Security Update 2003-08-14, as directed in Apple Security Update 120238. See References.

For HP-UX 11.00, 11.11, and 11.22:
Follow the recommended procedure, as listed in Hewlett-Packard Company Security Bulletin HPSBUX0309-277. See References.

For Caldera OpenServer 5.0.5, 5.0.6, and 5.0.7:
Upgrade to the appropriate fixed binaries, as listed in SCO Security Advisory CSSA-2003-SCO.20. See References.

For Caldera OpenLinux Server and Workstation 3.1.1:
Upgrade to the latest version of wu-ftpd (2.6.1-14 or later), as listed in SCO Security Advisory CSSA-2003-024.0. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

References:

Platforms Affected:

  • Debian Debian Linux 3.0
  • FreeBSD FreeBSD 4.0
  • FreeBSD FreeBSD 4.1
  • FreeBSD FreeBSD 4.1.1
  • FreeBSD FreeBSD 4.2
  • FreeBSD FreeBSD 4.3
  • FreeBSD FreeBSD 4.4
  • FreeBSD FreeBSD 4.5
  • FreeBSD FreeBSD 4.6
  • FreeBSD FreeBSD 4.6.1
  • FreeBSD FreeBSD 4.6.2
  • FreeBSD FreeBSD 4.7
  • HP HP-UX 11.00
  • HP HP-UX 11.11
  • HP HP-UX 11.22
  • Immunix Immunix OS 7+-beta
  • MandrakeSoft Mandrake Linux 8.2 PPC
  • MandrakeSoft Mandrake Linux 8.2
  • NetBSD NetBSD 1.5
  • NetBSD NetBSD 1.5.1
  • NetBSD NetBSD 1.5.2
  • NetBSD NetBSD 1.5.3
  • NetBSD NetBSD 1.6
  • NetBSD NetBSD 1.6.1
  • Novell SuSE Linux Enterprise Server 7.0
  • OpenBSD OpenBSD 3.3 and prior
  • RedHat Enterprise Linux 2.1 AS
  • RedHat Enterprise Linux 2.1 ES
  • RedHat Enterprise Linux 2.1 WS
  • RedHat Linux 7
  • RedHat Linux 7.1
  • RedHat Linux 7.1 for iSeries
  • RedHat Linux 7.1 for pSeries
  • RedHat Linux 7.2
  • RedHat Linux 7.3
  • RedHat Linux 8.0
  • RedHat Linux Advanced Workstation 2.1 Itanium
  • SCO Caldera OpenLinux Server 3.1.1
  • SCO Caldera OpenLinux Workstation 3.1.1
  • SCO Caldera OpenServer 5.0.5
  • SCO Caldera OpenServer 5.0.6
  • SCO Caldera OpenServer 5.0.7
  • Sun Linux 5.0
  • Sun Solaris 9
  • SuSE Linux Enterprise Server 8
  • SUSE SuSE Linux 7.2
  • SUSE SuSE Linux 7.3
  • SuSE SuSE Linux Connectivity Server
  • SuSE SuSE Linux Office Server
  • Turbolinux Turbolinux Advanced Server 6
  • Turbolinux Turbolinux Server 6.1
  • Turbolinux Turbolinux Workstation 6.0
  • Washington University WU-FTPD 2.5
  • Washington University WU-FTPD 2.6.0
  • Washington University WU-FTPD 2.6.1
  • Washington University WU-FTPD 2.6.2

Reported:

Jul 31, 2003

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 (IBM 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.

For corrections or additions please email xforce@iss.net

Return to the main page