exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

netbsd.2002-002.gzip

netbsd.2002-002.gzip
Posted Mar 14, 2002
Site netbsd.org

NetBSD Security Advisory 2002-002 - A buffer overflow found in Gzip can under certain conditions be used to execute shellcode with elevated privileges, for example through certain FTP servers. NetBSD fixed this vulnerability for CURRENT, 1.5 - 1.5.2 and 1.4 - 1.4.3.

tags | overflow, shellcode
systems | netbsd
SHA-256 | 0711d864488b65c071d0b4fba53663aada9d306b2d2e0f03d43b2c5e7db33503

netbsd.2002-002.gzip

Change Mirror Download
-----BEGIN PGP SIGNED MESSAGE-----


NetBSD Security Advisory 2002-002
=================================

Topic: gzip buffer overrun with long filename

Version: NetBSD-current: prior to January 16, 2002
NetBSD-1.5.*: affected up to and including 1.5.2
NetBSD-1.4.*: affected up to and including 1.4.3

Severity: local buffer overrun
(possible remote root privilege compromise if a system
runs certain alternative ftp daemons)

Fixed: NetBSD-current: January 16, 2002
NetBSD-1.5 branch: January 16, 2002
NetBSD-1.4 branch: January 16, 2002


Abstract
========

/usr/bin/gzip, a file compression program, does not properly check
supplied filenames against its buffer size. It could lead to
execution of arbitrary code under the privilege with which gzip is
running.

There are ftp daemon programs that invoke gzip on demand (like wu-ftpd).
If your systems run these daemons, depending on the configuration it could
lead to a remote root compromise.


Technical Details
=================

http://www.securityfocus.com/bid/3712


Solutions and Workarounds
=========================


The following instructions describe how to upgrade your /usr/bin/gzip
binaries by updating your source tree and rebuilding and
installing a new version of /usr/bin/gzip.

* NetBSD-current:

Systems running NetBSD-current dated from before 2002-01-16
should be upgraded to NetBSD-current dated 2001-01-17 or later.

The following directories need to be updated from the
netbsd-current CVS branch (aka HEAD):
gnu/usr.bin/gzip

To update from CVS, re-build, and re-install gzip:
# cd src
# cvs update -d -P gnu/usr.bin/gzip
# cd gnu/usr.bin/gzip

# make cleandir dependall
# make install


* NetBSD 1.5, 1.5.1, 1.5.2:

Systems running NetBSD 1.5, 1.5.1 or 1.5.2 sources dated from
before 2002-01-16 should be upgraded from NetBSD 1.5.*
sources dated 2002-01-17 or later.

NetBSD 1.5.3 will not be vulnerable.

The following directories need to be updated from the
netbsd-1-5 CVS branch:
gnu/usr.bin/gzip

To update from CVS, re-build, and re-install gzip:

# cd src
# cvs update -d -P gnu/usr.bin/gzip
# cd gnu/usr.bin/gzip

# make cleandir dependall
# make install

Alternatively, apply the following patch (with potential offset
differences):

ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2002-002-gzip.patch

To patch, re-build and re-install gzip(1):

# cd src/gnu/usr.bin/gzip
# patch < /path/to/SA2002-002-gzip.patch

# make cleandir dependall
# make install


* NetBSD 1.4, 1.4.1, 1.4.2, 1.4.3:

Systems running NetBSD 1.4, 1.4.1, 1.4.2 or 1.4.3 sources dated from
before 2002-01-16 should be upgraded from NetBSD 1.4.*
sources dated 2002-01-17 or later.

The following directories need to be updated from the
netbsd-1-4 CVS branch:
gnu/usr.bin/gzip

To update from CVS, re-build, and re-install gzip:

# cd src
# cvs update -d -P gnu/usr.bin/gzip
# cd gnu/usr.bin/gzip

# make cleandir dependall
# make install

Alternatively, apply the following patch (with potential offset
differences):

ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2002-002-gzip.patch

To patch, re-build and re-install gzip(1):

# cd src/gnu/usr.bin/gzip
# patch < /path/to/SA2002-002-gzip.patch

# make cleandir dependall
# make install


Thanks To
=========

Jun-ichiro itojun Hagino for patches, and preparing advisory text.


Revision History
================

2002-03-12 Initial release


More Information
================

An up-to-date PGP signed copy of this release will be maintained at
ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2002-002.txt.asc

Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.ORG/ and http://www.NetBSD.ORG/Security/.


Copyright 2002, The NetBSD Foundation, Inc. All Rights Reserved.

$NetBSD: NetBSD-SA2002-002.txt,v 1.6 2002/03/12 05:45:35 groo Exp $

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iQCVAwUBPI4yDj5Ru2/4N2IFAQFJEQP/V2bfCwyBjhwcLifk7rxyBdU4ft2mX3K7
g7mdoD/Ljwe8xXAGb1HuxzdtKTIZGVbMBYqjDA6OwTjNn9V5Fzz8WZ/tGMwT+CTH
u5m09oEp2UOd7aSfGd+aIGZyjovFZEU7q+6iDln0wRk6vhQTC9y193wLAEK8ONDG
pkSXVUCmAPA=
=7p76
-----END PGP SIGNATURE-----


Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close