NASM preproc.c buffer overflow
| nasm-preprocc-bo (18540) |
Description:
NASM is vulnerable to a buffer overflow, caused by improper bounds checking in the error function in the preproc.c file. By creating a specially-crafted .asm file, a local attacker could overflow a buffer and execute arbitrary code on the system with privileges of the user. In order for the attacker to exploit this vulnerability, the attacker must trick the victim into assembling a malicious .asm file on the victim's local system.
Platforms Affected:
- Canonical, Ubuntu 4.10
- Debian, Debian Linux 3.0
- Gentoo, Linux
- NASM, NASM 0.98.38
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Linux Advanced Workstation 2.1 Itanium
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 10 F...
- Turbolinux, Turbolinux 10 Server
- Turbolinux, Turbolinux 8 Server
- Turbolinux, Turbolinux Home
Remedy:
For Ubuntu Linux:
Upgrade to the latest nasm package (0.98.38-1ubuntu0.1 or later), as listed in USN-45-1 December 22, 2004 for more information. See References.
For Gentoo Linux:
Upgrade to the latest version of nasm (0.98.38-r1 or later), as listed in GLSA 200412-20 . See References.
For Debian GNU/Linux 3.0 (alias woody):
Upgrade to the latest version of nasm (0.98.28cvs-1woody2 or later), as listed in Debian Security Advisory Debian Security Advisory
DSA-623-1 . See References.
For Red Hat Linux:
Refer to RHSA-2005:381-06 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Gain Access
References:
- BugTraq Mailing List, Thu Dec 16 2004 - 03:47:12 CST, DJB's students release 44 *nix software vulnerability advisories at http://archives.neohapsis.com/archives/bugtraq/2004-12/0195.html.
- CIAC Information Bulletin P-089, Buffer Overflow in 'nasm' at http://www.ciac.org/ciac/bulletins/p-089.shtml.
- University of Illinois Chicago Web site, NASM 0.98.38 error() overflows buff[] at http://tigger.uic.edu/~jlongs2/holes/nasm.txt.
- BID-11991: NASM Error Preprocessor Directive Buffer Overflow Vulnerability
- CVE-2004-1287: Buffer overflow in the error function in preproc.c for NASM 0.98.38 1.2 allows attackers to execute arbitrary code via a crafted asm file, a different vulnerability than CVE-2005-1194.
- DSA-623: nasm -- buffer overflow
- GLSA-200412-20: NASM: Buffer overflow vulnerability
- MDKSA-2005:004: Updated nasm packages fix buffer overflow vulnerability
- RHSA-2005-381: nasm security update
Reported:
Dec 15, 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 (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
