NetHack -s command buffer overflow

nethack-s-command-bo (11283) The risk level is classified as HighHigh Risk

Description:

NetHack is vulnerable to a buffer overflow. The NetHack package is installed setuid games. By passing an overly long argument to NetHack using the -s command line option, a local attacker could overflow a buffer and execute arbitrary code on the system with "setuid games" privileges.

Platforms Affected:

  • Debian, Debian Linux 2.2
  • Debian, Debian Linux 3.0
  • FreeBSD, FreeBSD Ports Collection
  • Gentoo, Linux
  • Nethack Development Team, NetHack 3.4.0 and prior
  • RedHat, Linux 8.0

Remedy:

For FreeBSD Ports Collection:
Apply the topten.c.patch, available from the FreeBSD.org Web site. See References.

For Gentoo Linux:
Upgrade to the latest version of neckhack (3.4.0-r6 or later), as listed in Gentoo Linux Security Announcement 200302-08. See References.

For Debian GNU/Linux:
Upgrade to the latest nethack package, as listed below. Refer to DSA-316-1 for more information. See References.

Debian GNU/Linux 2.2 (potato): 3.3.0-7potato1 or later
Debian DNU/Linux 3.0 (woody): 3.4.0-3.0woody3 or later

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

Consequences:

Gain Privileges

References:

Reported:

Feb 09, 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 (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