Gentoo Logo

ncompress: Buffer Underflow


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200610-03 / ncompress
Release Date October 06, 2006
Latest Revision October 06, 2006: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-arch/ncompress < >= All supported architectures

Related bugreports: #141728


A buffer underflow vulnerability has been reported in ncompress allowing for the execution of arbitrary code.

2.  Impact Information


ncompress is a suite of utilities to create and extract Lempel-Ziff-Welch (LZW) compressed archives.


Tavis Ormandy of the Google Security Team discovered a static buffer underflow in ncompress.


An attacker could create a specially crafted LZW archive, that when decompressed by a user or automated system would result in the execution of arbitrary code with the permissions of the user invoking the utility.

3.  Resolution Information


There is no known workaround at this time.


All ncompress users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/ncompress-"

4.  References


Page updated October 06, 2006

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.