-----BEGIN PGP SIGNED MESSAGE-----

===========================================================================
             AUSCERT External Security Bulletin Redistribution

             ESB-2001.498 -- NetBSD Security Advisory 2001-018
                Remote Buffer Overflow Vulnerability in LPD
                             26 November 2001

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:                lpd
Vendor:                 NetBSD
Operating System:       NetBSD-current prior to August 28, 2001
                        NetBSD-1.5.2
                        NetBSD-1.5.1
                        NetBSD-1.5
                        NetBSD-1.4.*
Impact:                 Root Compromise
Access Required:        Remote

Ref:                    ESB-2001.467

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----


                 NetBSD Security Advisory 2001-018
                 =================================

Topic:		Remote Buffer Overflow Vulnerability in BSD Line Printer Daemon

Version:	NetBSD-current: prior to August 28, 2001
		NetBSD-1.5.2:	affected
		NetBSD-1.5.1:	affected
		NetBSD-1.5:	affected
		NetBSD-1.4.*:	affected

Severity:	Remote root compromise from any host which can connect to lpd(8)

Fixed:		NetBSD-current:		August 28, 2001
		NetBSD-1.5 branch:	September 30, 2001
		NetBSD-1.4 branch: 	not yet

Abstract
========

There is an remotely exploitable buffer overrun in the printer daemon,
/usr/sbin/lpd.


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

http://msgs.securepoint.com/cgi-bin/get/bugtraq0108/259.html


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

NetBSD 1.3 and later install with lpd disabled by default.  A system is
vulnerable to this security hole only if it is running /usr/sbin/lpd,
and access to lpd is allowed by entries in /etc/hosts.lpd.  Updating
the binary for safety is recommended.

Quick workaround:
If you are running /usr/sbin/lpd, and you do not need it, stop it.
If you have /etc/hosts.lpd which is open to everyone, you will want to
tighten the setup so that no malicious parties can access your remote printer.

Solutions:

* NetBSD -current, 1.5, 1.5.1, 1.5.2:

	Systems running NetBSD-current dated from before 2001-08-28
	should be upgraded to NetBSD-current dated 2001-08-28 or later.

	Systems running NetBSD 1.5, 1.5.1 or 1.5.2 dated from before
	2001-09-30 should be upgraded to NetBSD-1.5 branch sources dated
	2001-09-30 or later.

	The following directory needs to be updated from the
	netbsd-current CVS branch (aka HEAD) for NetBSD-current,
	or netbsd-1-5 CVS branch for NetBSD 1.5, 1.5.1 or 1.5.2:
		src/usr.sbin/lpr

	To update from CVS, re-build, and re-install lpd(8):
		# cd src/usr.sbin/lpr
		# cvs update -d -P
		# make cleandir dependall install


	Alternatively, apply the following patch (with potential offset
	differences) and rebuild & re-install lpd(8):
		ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2001-018-lpd.patch

	To patch, re-build and re-install lpd(8):
		# cd src/usr.sbin/lpr/common_sources
		# patch < /path/to/SA2001-012-lpd.patch
		# make cleandir dependall install


* NetBSD 1.4, 1.4.x:

	Systems running NetBSD-1.4.x releases should apply the following
	patch (with potential offset differences):
		ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2001-018-lpd.patch

	To patch, re-build and re-install lpd(8):
		# cd src/usr.sbin/lpr/common_sources
		# patch < /path/to/SA2001-012-lpd.patch
		# make cleandir dependall install


	The anonymous CVS branch netbsd-1-4 should be updated with a
	fix in the near future.


Thanks To
=========

Jun-ichiro Hagino for the original patches to -current, from a fix in
OpenBSD

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

	2001-11-22      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-SA2001-018.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-018.txt,v 1.6 2001/11/22 15:21:45 david Exp $

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

iQCVAwUBO/0YaT5Ru2/4N2IFAQFP2wP/cSSUxRgwi/JOWj7Yx6u35ygYpuZV3oXs
utQs/astpcjqVPQGqw0BRAuG5dJCqmLqf0F//cpwmFn/V5f5ByhwJE+x/KrtJ19N
S36uB6AAQYQ7Bh9GGVApncKwk2XeA3XcI2PAWX1VkRStzU/k6QYunfqqRdnMr5xr
srHaB5bZ9FQ=
=Wn9T
- -----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

iQCVAwUBPAJNiCh9+71yA2DNAQGZewP+MIK4b/jZmmXseFirDJqrNXQ8lI1zUowN
2GZa8hSWr5mFq8REGiwsGqBorDf63fp8OgwLxwzjUtZIQ/8VDORfl3dZU48owFJt
/uTBknN4KtEJoKbJG4jgkfrl/g7eJZ4m2+UzxLHg8BK/IK8NRaH1XK+i/wrqUfYF
Ir6cyVXApak=
=0ngT
-----END PGP SIGNATURE-----