Date: 26 July 2001
References: ESB-2001.306 ESB-2001.312
Click here for printable version
Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----
===========================================================================
AUSCERT External Security Bulletin Redistribution
ESB-2001.317 -- NetBSD Security Advisory 2001-012
telnetd(8) options overflow
26 July 2001
===========================================================================
AusCERT Security Bulletin Summary
---------------------------------
Product: telnetd(8)
Vendor: NetBSD
Operating System: NetBSD-current
NetBSD 1.3
NetBSD 1.3.X
NetBSD 1.4
NetBSD 1.4.X
NetBSD 1.5
NetBSD 1.5.1
BSD
Impact: Denial of Service
Root Compromise
Access Required: Remote
Ref: ESB-2001.312
ESB-2001.306
- --------------------------BEGIN INCLUDED TEXT--------------------
- -----BEGIN PGP SIGNED MESSAGE-----
NetBSD Security Advisory 2001-012
=================================
Topic: telnetd(8) options overflow
Version: All NetBSD releases prior to 2001-07-19.
Severity: remote root from any host which can connect to telnetd(8)
Fixed: NetBSD-current: 2001-07-19.
NetBSD-1.5 branch: Supplied patch (see below).
NetBSD-1.4 branch: Supplied patch (see below).
A patch is provided for all releases that will fix
the problem. Pullups to other branches are
anticipated, see 'More Information' below for how to
track this progress.
Abstract
========
A buffer overflow existed in the telnetd(8) program. Any client
connecting could cause the telnetd instance to SEGV, and possibly
to execute arbitrary code as root.
Technical Details
=================
Technical details of the vulnerabilities are publicised in
CERT Advisory CA-2001-21:
http://www.cert.org/advisories/CA-2001-21.html
A strong indication of attempted exploitation of this bug may be found
by examining log entries sent to the syslogd(8) system logger facility
DAEMON (which is stored in /var/log/messages by default) of the form:
telnetd [[0-9]*]: ttloop: peer died: No such file or directory
Solutions and Workarounds
=========================
telnetd(8) has been shipped disabled since June 2000, including the
NetBSD 1.5 and 1.5.1 releases, and -current after that date.
If you are running an earlier release, or have re-enabled telnetd(8)
in 1.5.x, disable it now by commenting out the line beginning with
telnetd(8) in /etc/inetd.conf, and kill -HUP your inetd process.
As a reminder, unless you are running on a private network, telnet
exposes your passwords to the Internet. Even on a private network,
passwords may be exposed to inappropriate individuals. Use a strong,
secure protocol, such as Secure Shell instead.
The following instructions describe how to upgrade your telnetd(8)
by updating your source tree and rebuilding and installing a new
version of telnetd(8).
* NetBSD-current:
Systems running NetBSD-current dated from before 2001-07-19
should be upgraded to NetBSD-current dated 2001-07-20 or later.
The following directory needs to be updated from the
netbsd-current CVS branch (aka HEAD):
src/libexec/telnetd
To update from CVS, re-build, and re-install telnetd(8):
# cd src/libexec/telnetd
# cvs update -d -P
# make cleandir dependall install
Alternatively, apply the following patch (with potential offset
differences) and rebuild & re-install telnetd(8):
ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2001-012-telnetd.patch
To patch, re-build and re-install telnetd(8):
# cd src/libexec/telnetd
# patch < SA2001-012-telnetd.patch
# make cleandir dependall install
* NetBSD 1.3, 1.3.x, 1.4, 1.4.x, 1.5, 1.5.1
Systems running NetBSD releases up to and including 1.5.1 should
apply the following patch (with potential offset differences):
ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2001-012-telnetd.patch
To patch, re-build and re-install telnetd(8):
# cd src/libexec/telnetd
# patch < SA2001-012-telnetd.patch
# make cleandir dependall install
The anonymous CVS branchs netbsd-1-4 and netbsd-1-5 should be
updated with a fix in the near future.
Thanks To
=========
TESO for the advisory.
Jason Thorpe <thorpej@netbsd.org> for analysis.
Krister Walfridsson <kristerw@netbsd.org> for testing.
Jun-ichiro Hagino <itojun@netbsd.org> for a fix in NetBSD-current
from the Heimdal telnetd sources, by way of OpenBSD.
David Maxwell <david@netbsd.org> for the fix for previous releases.
Revision History
================
2001-07-25 Initial revision.
2001-07-25 Info on how to detect exploit attempts.
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-SA2001-012.txt.asc
Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.ORG/ and http://www.NetBSD.ORG/Security/.
Copyright 2001, The NetBSD Foundation, Inc. All Rights Reserved.
$NetBSD: NetBSD-SA2001-012.txt,v 1.12 2001/07/25 13:09:47 lukem Exp $
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org
iQCVAwUBO17FAz5Ru2/4N2IFAQFDSwP/U8mVWa8bxZDj9/1jpyfJ4DkYTjTUBqty
TVfqAlEfCJuFe7ftdNds9915yOEYWiqP6xYg3gZKn8c+4UqSQttXpZPW3QIuxg/k
hAiZ3IToWdAKq20YdqbA/BAV3wqHAd0cB8Hu/p1kfuq2rsF5kY0PvTb8z9njGsMJ
Rh7fC+Xyh/c=
=q48s
- -----END PGP SIGNATURE-----
- --------------------------END INCLUDED TEXT--------------------
You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.
This security bulletin is provided as a service to AusCERT's members. As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to use any or all of this information is
the responsibility of each user or organisation, and should be done so in
accordance with site policies and procedures.
NOTE: This is only the original release of the security bulletin. It may
not be updated when updates to the original are made. If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the original authors to ensure that the information is still current.
Contact information for the authors of the original document is included
in the Security Bulletin above. If you have any questions or need further
information, please contact them directly.
Previous advisories and external security bulletins can be retrieved from:
http://www.auscert.org.au/Information/advisories.html
If you believe that your system has been compromised, contact AusCERT or
your representative in FIRST (Forum of Incident Response and Security
Teams).
Internet Email: auscert@auscert.org.au
Facsimile: (07) 3365 7031
Telephone: (07) 3365 4417 (International: +61 7 3365 4417)
AusCERT personnel answer during Queensland business hours
which are GMT+10:00 (AEST).
On call after hours for emergencies.
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: ftp://ftp.auscert.org.au/pub/auscert/AUSCERT_PGP.key
iQCVAwUBO1/9aCh9+71yA2DNAQHl8wP+MeqVHXYFcIfQ/gZB4Cfo8QUDUdSOukVj
4DKJq1u4Js9xKttlFfWpzhv6WJ0/TiLkwSJ14/DOaFnlUW2Wp4hdB3ozTjv8ZgW/
pim3ubsdMfSSWXORAn+SdVan5EeIo/xjHEISNfqtz2jE9V0xOHT9UhoqMXzZZYT+
is37YnN7paY=
=uknZ
-----END PGP SIGNATURE-----
|