AUSCERT External Security Bulletin Redistribution
             ESB-98.052 -- SGI Security Advisory 19980402-01-PX
                       lp(1) Security Vulnerabilities
                                3 April 1998


Silicon Graphics Inc. has released the following advisory concerning a
vulnerability in the lp program.  This vulnerability may allow local or
remote users with an established account to gain root access.  This
vulnerability has been publically discussed and reported in AUSCERT advisory

The following security bulletin is provided as a service to AUSCERT's
members.  As AUSCERT did not write this document, AUSCERT has had no
control over its content.  As such, 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 will
not be updated when the original bulletin is.  If downloading at a later
date, it is recommended that the bulletin is retrieved from the original
authors to ensure that the information is still current.

Contact information for SGI is included in the Security Bulletin below.
If you have any questions or need further information, please contact them

Previous advisories and external security bulletins can be retrieved from:


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
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.
Facsimile:      (07) 3365 7031

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


                Silicon Graphics Inc. Security Advisory

        Title:   lp(1) Security Vulnerabilities
        Title:   AUSCERT AA-96.12
        Number:  19980402-01-PX
        Date:    April 2, 1998

Silicon Graphics provides this information freely to the SGI user community
for its consideration, interpretation, implementation and use.   Silicon
Graphics recommends that this information be acted upon as soon as possible.

Silicon Graphics provides the information in this Security Advisory on
an "AS-IS" basis only, and disclaims all warranties with respect thereto,
express, implied or otherwise, including, without limitation, any warranty
of merchantability or fitness for a particular purpose.  In no event shall
Silicon Graphics be liable for any loss of profits, loss of business, loss
of data or for any indirect, special, exemplary, incidental or consequential
damages of any kind arising from your use of, failure to use or improper
use of any of the instructions or information in this Security Advisory.

- - -----------------------
- - --- Issue Specifics ---
- - -----------------------

The lp(1) program is used to submit files for printing.

A potential buffer overflow condition has been identified with the lp(1)
program and associated printing subsystem.  With an appropriately crafted
set of arguments, arbitrary user commands could be executed with elevated

Silicon Graphics Inc. has investigated the issue and recommends the
following steps for neutralizing the exposure.  It is HIGHLY RECOMMENDED
that these measures be implemented on ALL SGI systems.  This issue will
be corrected in future releases of IRIX.

- - --------------
- - --- Impact ---
- - --------------

The lp(1) program and printing subsystem are installed by default on all
IRIX systems.

A local account is required in order to exploit this vulnerability both
locally and remotely.

This vulnerability can be utilized to execute commands with root

This vulnerability has been publically discussed and related issues have
been reported in AUSCERT advisory AA-96.12.

- - --------------------------
- - --- Temporary Solution ---
- - --------------------------

Although patches are available for this issue, it is realized that
there may be situations where installing the patches immediately may
not be possible.

The steps below can be used to remove the vulnerability by removing
the printing subsystem.

                           *** WARNING ***

        Removing the print subsystem will remove all printing
        capability from the system.   Installing the patches below is
        recommended over removal of the print subsystem.

        If the print subsystem is removed, at a later time when the
        patches below are to be installed, the print subsystem will
        first have to be reinstalled from original IRIX distribution
        CDs before the patches.

     1) Become the root user on the system.

                % /bin/su -

     2) Remove the vulnerable subsystem.

                # /usr/sbin/versions -v remove print

     3) Return to previous level.

                # exit

- - ----------------
- - --- Solution ---
- - ----------------

   OS Version     Vulnerable?     Patch #      Other Actions
   ----------     -----------     -------      -------------

   IRIX 3.x          no
   IRIX 4.x          no
   IRIX 5.0.x        yes          not avail    Note 1
   IRIX 5.1.x        yes          not avail    Note 1
   IRIX 5.2          yes          not avail    Note 1
   IRIX 5.3          yes          2166
   IRIX 6.0.x        yes          not avail    Note 1
   IRIX 6.1          yes          not avail    Note 1
   IRIX 6.2          yes          2167
   IRIX 6.3          yes          2168
   IRIX 6.4          yes          2169


     1) upgrade operating system or see "Temporary Solution" section.

Patches are available via anonymous FTP and your service/support provider.

The SGI anonymous FTP site is sgigate.sgi.com ( or its
mirror, ftp.sgi.com.   Security information and patches can be found
in the ~ftp/security and ~ftp/patches directories, respectfully.

                 ##### Patch File Checksums ####

The actual patch will be a tar file containing the following files:

Filename:                 README.patch.2166
Algorithm #1 (sum -r):    33606 8 README.patch.2166
Algorithm #2 (sum):       23714 8 README.patch.2166
MD5 checksum:             95B0AB6CE4C96D7BA22F520360B9A4F7

Filename:                 patchSG0002166
Algorithm #1 (sum -r):    39199 1 patchSG0002166
Algorithm #2 (sum):       29039 1 patchSG0002166
MD5 checksum:             E44479E23F273051BFA04491524B2C8F

Filename:                 patchSG0002166.idb
Algorithm #1 (sum -r):    41214 1 patchSG0002166.idb
Algorithm #2 (sum):       37103 1 patchSG0002166.idb
MD5 checksum:             B855B3AFEBC0606F88697EC1EA961824

Filename:                 patchSG0002166.print_sw
Algorithm #1 (sum -r):    64133 81 patchSG0002166.print_sw
Algorithm #2 (sum):       39793 81 patchSG0002166.print_sw
MD5 checksum:             F3ADEE60570BF69DE537D16CCE7D35D0

Filename:                 README.patch.2167
Algorithm #1 (sum -r):    54129 8 README.patch.2167
Algorithm #2 (sum):       24902 8 README.patch.2167
MD5 checksum:             CAD788CE10F8C26EF5ECB1CBBBB9990F

Filename:                 patchSG0002167
Algorithm #1 (sum -r):    32110 1 patchSG0002167
Algorithm #2 (sum):       31366 1 patchSG0002167
MD5 checksum:             CC3EE93FE5D4A52E394D6F2FE82F787E

Filename:                 patchSG0002167.idb
Algorithm #1 (sum -r):    11685 1 patchSG0002167.idb
Algorithm #2 (sum):       36835 1 patchSG0002167.idb
MD5 checksum:             E568F4180BE18E2183E65FAAD7CE342B

Filename:                 patchSG0002167.print_sw
Algorithm #1 (sum -r):    14051 101 patchSG0002167.print_sw
Algorithm #2 (sum):       31600 101 patchSG0002167.print_sw
MD5 checksum:             7EDB4F42375940427B97EC2E8F949C70

Filename:                 README.patch.2168
Algorithm #1 (sum -r):    22298 8 README.patch.2168
Algorithm #2 (sum):       25041 8 README.patch.2168
MD5 checksum:             9C63BB8A301C8052BECB0B02A741A94F

Filename:                 patchSG0002168
Algorithm #1 (sum -r):    11594 1 patchSG0002168
Algorithm #2 (sum):       31103 1 patchSG0002168
MD5 checksum:             934E0CC9BC24F87A74668A00EDE3DC71

Filename:                 patchSG0002168.idb
Algorithm #1 (sum -r):    12942 1 patchSG0002168.idb
Algorithm #2 (sum):       36247 1 patchSG0002168.idb
MD5 checksum:             97BB1C7385D71AC836C7A884ABE60D15

Filename:                 patchSG0002168.print_sw
Algorithm #1 (sum -r):    19989 100 patchSG0002168.print_sw
Algorithm #2 (sum):       39255 100 patchSG0002168.print_sw
MD5 checksum:             228F3EB30E9A62166EA7A489F4D5FFEF

Filename:                 README.patch.2169
Algorithm #1 (sum -r):    18635 8 README.patch.2169
Algorithm #2 (sum):       22236 8 README.patch.2169
MD5 checksum:             D624EEF3039F8F9A0F429982A3FBB356

Filename:                 patchSG0002169
Algorithm #1 (sum -r):    52493 1 patchSG0002169
Algorithm #2 (sum):       34907 1 patchSG0002169
MD5 checksum:             31F5566CEA24C3679E659E449B5A23E6

Filename:                 patchSG0002169.idb
Algorithm #1 (sum -r):    54959 1 patchSG0002169.idb
Algorithm #2 (sum):       35889 1 patchSG0002169.idb
MD5 checksum:             D0B5BDA2F16F2B47C74ED1F40C4179B2

Filename:                 patchSG0002169.print_sw
Algorithm #1 (sum -r):    08735 82 patchSG0002169.print_sw
Algorithm #2 (sum):       20700 82 patchSG0002169.print_sw
MD5 checksum:             8B6C0769E99B57381395570946C0C348

- - ------------------------
- - --- Acknowledgments ---
- - ------------------------

Silicon Graphics wishes to thank the Internet community and
AUSCERT for their involvement in this matter.

- - -----------------------------------------------------------
- - --- Silicon Graphics Inc. Security Information/Contacts ---
- - -----------------------------------------------------------

If there are questions about this document, email can be sent to


Silicon Graphics provides security information and patches for
use by the entire SGI community.  This information is freely
available to any person needing the information and is available
via anonymous FTP and the Web.

The primary SGI anonymous FTP site for security information and patches
is sgigate.sgi.com (  Security information and patches
are located under the directories ~ftp/security and ~ftp/patches,
respectively. The Silicon Graphics Security Headquarters Web page is
accessible at the URL http://www.sgi.com/Support/Secur/security.html.

For issues with the patches on the FTP sites, email can be sent to

For assistance obtaining or working with security patches, please
contact your SGI support provider.


Silicon Graphics provides a free security mailing list service
called wiretap and encourages interested parties to self-subscribe
to receive (via email) all SGI Security Advisories when they are
released. Subscribing to the mailing list can be done via the Web
(http://www.sgi.com/Support/Secur/wiretap.html) or by sending email
to SGI as outlined below.

% mail wiretap-request@sgi.com
subscribe wiretap <YourEmailAddress>

In the example above, <YourEmailAddress> is the email address that you
wish the mailing list information sent to.  The word end must be on a
separate line to indicate the end of the body of the message. The
control-d (^d) is used to indicate to the mail program that you are
finished composing the mail message.


Silicon Graphics provides a comprehensive customer World Wide Web site.
This site is located at http://www.sgi.com/Support/Secur/security.html.


For reporting *NEW* SGI security issues, email can be sent to
security-alert@sgi.com or contact your SGI support provider.  A
support contract is not required for submitting a security report.

  This information is provided freely to all interested parties and may
  be redistributed provided that it is not altered in any way, Silicon
  Graphics is appropriately credited and the document retains and
  includes its valid PGP signature.

Version: 2.6.2


- --------------------------END INCLUDED TEXT--------------------

Version: 2.6.3i
Charset: noconv
Comment: ftp://ftp.auscert.org.au/pub/auscert/AUSCERT_PGP.key