From:	 bugzilla@redhat.com
To:	 redhat-watch-list@redhat.com
Subject: [RHSA-2001:147-09] remote exploit possible in lpd
Date:	 Thu, 8 Nov 2001 19:14 -0500
Cc:	 bugtraq@securityfocus.com, linux-security@redhat.com

---------------------------------------------------------------------
                   Red Hat, Inc. Red Hat Security Advisory

Synopsis:          remote exploit possible in lpd
Advisory ID:       RHSA-2001:147-09
Issue date:        2001-11-01
Updated on:        2001-11-08
Product:           Red Hat Linux
Keywords:          lpr lpd buffer overflow
Cross references:  
Obsoletes:         
---------------------------------------------------------------------

1. Topic:

The lpd printing daemon provided by the lpr package posses a remotely
exploitable hole.

2. Relevant releases/architectures:

Red Hat Linux 6.2 - alpha, i386, sparc

3. Problem description:

The lpd printing daemon possess a flaw in the displayq code which makes a
remote buffer overflow attack possible.

[UPDATE November 7th, 2001]
The initial package released as a fix for this problem itself had a
segfault issue, and would crash when listing remote printers. The broken
package, lpr-0.50.1-1, has been replaced with a working fix.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade.  Only those
RPMs which are currently installed will be updated.  Those RPMs which are
not installed but included in the list will not be updated.  Note that you
can also use wildcards (*.rpm) if your current directory *only* contains
the
desired RPMs.

Please note that this update is also available via Red Hat Network.  Many
people find this an easier way to apply updates.  To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

5. Bug IDs fixed (http://bugzilla.redhat.com/bugzilla for more info):



6. RPMs required:

Red Hat Linux 6.2:

SRPMS:
ftp://updates.redhat.com/6.2/en/os/SRPMS/lpr-0.50.5-1.src.rpm

alpha:
ftp://updates.redhat.com/6.2/en/os/alpha/lpr-0.50.5-1.alpha.rpm

i386:
ftp://updates.redhat.com/6.2/en/os/i386/lpr-0.50.5-1.i386.rpm

sparc:
ftp://updates.redhat.com/6.2/en/os/sparc/lpr-0.50.5-1.sparc.rpm



7. Verification:

MD5 sum                          Package Name
--------------------------------------------------------------------------
084ffb7aad218ce6bba390de33218ad8 6.2/en/os/SRPMS/lpr-0.50.5-1.src.rpm
19111f0738ddeac4f9ed29c59b3c3656 6.2/en/os/alpha/lpr-0.50.5-1.alpha.rpm
c1f8f77d761223d42ee90367a716aa8e 6.2/en/os/i386/lpr-0.50.5-1.i386.rpm
be898ec1250c4a3f5d06da6e12c62176 6.2/en/os/sparc/lpr-0.50.5-1.sparc.rpm
 

These packages are GPG signed by Red Hat, Inc. for security.  Our key
is available at:
    http://www.redhat.com/about/contact/pgpkey.html

You can verify each package with the following command:
    rpm --checksig  <filename>

If you only wish to verify that each package has not been corrupted or
tampered with, examine only the md5sum with the following command:
    rpm --checksig --nogpg <filename>

8. References:




Copyright(c) 2000, 2001 Red Hat, Inc.