Debian: New ncompress packages fix potential code execution
Posted by Benjamin D. Thomas   
Debian Tavis Ormandy from the Google Security Team discovered a missing boundary check in ncompress, the original Lempel-Ziv compress and uncompress programs, which allows a specially crafted datastream to underflow a buffer with attacker controlled data.
- --------------------------------------------------------------------------
Debian Security Advisory DSA 1149-1                    security@debian.org
http://www.debian.org/security/                             Martin Schulze
August 10th, 2006                       http://www.debian.org/security/faq
- --------------------------------------------------------------------------

Package        : ncompress
Vulnerability  : buffer underflow
Problem type   : local (remote)
Debian-specific: no
CVE ID         : CVE-2006-1168

Tavis Ormandy from the Google Security Team discovered a missing
boundary check in ncompress, the original Lempel-Ziv compress and
uncompress programs, which allows a specially crafted datastream to
underflow a buffer with attacker controlled data.

For the stable distribution (sarge) this problem has been fixed in
version 4.2.4-15sarge2.

For the unstable distribution (sid) this problem has been fixed in
version 4.2.4-15sarge2.

We recommend that you upgrade your ncompress package.


Upgrade Instructions
- --------------------

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given at the end of this advisory:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


Debian GNU/Linux 3.1 alias sarge
- --------------------------------

  Source archives:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2.dsc
      Size/MD5 checksum:      591 8fa14e666180e8a37491dcd33114dbff
    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2.diff.gz
      Size/MD5 checksum:     8124 1b7aa0d3079f334202df5d1c77e0f9bf
    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4.orig.tar.gz
      Size/MD5 checksum:    31765 7ef0d51aee53b6cd5c6aefe637491281

  Alpha architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_alpha.deb
      Size/MD5 checksum:    24370 72b955790079338f98afd62c49644897

  AMD64 architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_amd64.deb
      Size/MD5 checksum:    22924 58d6732c316a9317171c97e74e2cbe44

  ARM architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_arm.deb
      Size/MD5 checksum:    22522 3ec1cfdab5e4811ca5246a11b94b244d

  Intel IA-32 architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_i386.deb
      Size/MD5 checksum:    22158 a875189b26255c72ad2ec532c23eef05

  Intel IA-64 architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_ia64.deb
      Size/MD5 checksum:    26442 ef71240d1b7b4a699b5f817a46f7ead9

  HP Precision architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_hppa.deb
      Size/MD5 checksum:    24484 51c63bab7d53aa3392e268aec4d271ab

  Motorola 680x0 architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_m68k.deb
      Size/MD5 checksum:    21536 2cf5bbb67a3f32db857c75a2d352f47a

  Big endian MIPS architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_mips.deb
      Size/MD5 checksum:    23878 a71db49787837da587552030045c73c1

  Little endian MIPS architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_mipsel.deb
      Size/MD5 checksum:    23822 22ad68863b79b4bdf5302141be22deb6

  PowerPC architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_powerpc.deb
      Size/MD5 checksum:    22912 bafe112da108e4b66d64342b55ac4a47

  IBM S/390 architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_s390.deb
      Size/MD5 checksum:    22958 a8f180c5182ab1040746e66dfa99a6e1

  Sun Sparc architecture:

    http://security.debian.org/pool/updates/main/n/ncompress/ncompress_4.2.4-15sarge2_sparc.deb
      Size/MD5 checksum:    22532 db6aed643f82c6a0c0bdfded603d97be


  These files will probably be moved into the stable distribution on
  its next update.

- ---------------------------------------------------------------------------------
For apt-get: deb http://security.debian.org/ stable/updates main
For dpkg-ftp: ftp://security.debian.org/debian-security dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org