SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |    Help    |   

SecurityTracker
Archives


Welcome to SecurityTracker!
 
Click to Sign Up
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com

Sign Up!





Category:  OS (UNIX)  >  AIX Vendors:  IBM
AIX Buffer Overflow in pioout Lets Local Users Gain Elevated Privileges
SecurityTracker Alert ID:  1019264
SecurityTracker URL:  http://securitytracker.com/id?1019264
CVE Reference:  CVE-2007-5764   (Links to External Site)
Updated:  Jan 24 2008
Original Entry Date:  Jan 24 2008
Impact:  Execution of arbitrary code via local system, Root access via local system
Fix Available:  Yes   Vendor Confirmed:  Yes  
Version(s): 5.2, 5.3, 6.1
Description:  A vulnerability was reported in AIX. A local user can obtain elevated privileges on the target system.

A local user can supply a specially crafted command line option to trigger a buffer overflow in '/usr/lib/lpd/pio/etc/pioout' and execute arbitrary code on the target system with root level privileges.

IBM has assigned APAR numbers IZ10840, IZ10841, IZ10842, and IZ10844 to this vulnerability.

The vendor was notified on November 29, 2007.

An anonymous researcher reported this vulnerability via iDefense.

Impact:  A local user can obtain root privileges on the target system.
Solution:  The vendor plans to issue the following APARs (with availability date listed):

5.2.0 IZ10840 05/14/08
5.3.0 IZ10841 02/06/08
5.3.7 IZ10842 02/06/08
6.1.0 IZ10844 02/20/08

An interim fix is available at:

ftp://aix.software.ibm.com/aix/efixes/security/pioout_ifix.tar

The IBM advisories are available at:

http://www.ibm.com/support/docview.wss?uid=isg1IZ10840
http://www.ibm.com/support/docview.wss?uid=isg1IZ10841
http://www.ibm.com/sup port/docview.wss?uid=isg1IZ10842
http://www.ibm.com/support/docview.wss?uid=isg1IZ10844

Vendor URL:  www.ibm.com/ (Links to External Site)
Cause:  Boundary error
Underlying OS:  UNIX (AIX)

Message History:   None.


 Source Message Contents

Date:  Wed, 23 Jan 2008 21:20:03 -0500
Subject:  IBM AIX

 
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
IBM SECURITY ADVISORY
 
First Issued: Tue Jan 22 14:02:18 CST 2008
===============================================================================
                           VULNERABILITY SUMMARY
 
VULNERABILITY:   AIX pioout buffer overflow
 
PLATFORMS:       AIX 5.2, 5.3, 6.1
 
SOLUTION:        Apply the fix or workaround as described below.
 
THREAT:          A local attacker may execute arbitrary code with root
                 privileges.
 
CERT VU Number:  n/a
CVE Number:      CVE-2007-5764
===============================================================================
                           DETAILED INFORMATION
 
I. OVERVIEW
 
    The pioout command is at the end of pipelines invoked by the piobe
    command (the print job manager) to print a file or a burst page on
    a printer.  The primary fileset for the pioout command is
    'printers.rte'.  The pioout command contains a buffer overflow
    vulnerability
 
II. DESCRIPTION
 
    Buffer overflow vulnerabilities exist in the 'printers.rte'
    fileset commands listed below.  A local attacker may execute
    arbitrary code with root privileges because the commands are
    setuid root.
 
    The following commands are vulnerable:
 
        /usr/lib/lpd/pio/etc/pioout
 
III. IMPACT
 
    The successful exploitation of this vulnerability allows a
    non-privileged user to execute code with root privileges.
 
IV. PLATFORM VULNERABILITY ASSESSMENT
 
    To determine if your system is vulnerable, execute the following
    command:
 
    lslpp -L printers.rte
 
    The following fileset levels are vulnerable:
 
    AIX Fileset        Lower Level       Upper Level
    ------------------------------------------------
    printers.rte       5.2.0.0           5.2.0.106
    printers.rte       5.3.0.0           5.3.0.62
    printers.rte       5.3.7.0           5.3.7.0
    printers.rte       6.1.0.0           6.1.0.0
 
V. SOLUTIONS
 
    A. APARS
 
        IBM provides the following fixes:
 
        AIX Level           APAR number        Availability
        ---------------------------------------------------
        5.2.0               IZ10840            05/14/08
        5.3.0               IZ10841            02/06/08
        5.3.7               IZ10842            02/06/08
        6.1.0               IZ10844            02/20/08
 
        Subscribe to the APARs here:
 
        http://www.ibm.com/support/docview.wss?uid=isg1IZ10840
        http://www.ibm.com/support/docview.wss?uid=isg1IZ10841
        http://www.ibm.com/support/docview.wss?uid=isg1IZ10842
        http://www.ibm.com/support/docview.wss?uid=isg1IZ10844
 
        By subscribing, you will receive periodic email alerting you
        to the status of the APAR, and a link to download the fix once
        it becomes available.
 
    B. FIXES
 
        Fixes are available.  The fixes can be downloaded via ftp
        from:
 
        ftp://aix.software.ibm.com/aix/efixes/security/pioout_ifix.tar
 
        The link above is to a tar file containing this signed
        advisory, fix packages, and PGP signatures for each package.
        The fixes below include prerequisite checking. This will
        enforce the correct mapping between the fixes and AIX
        Technology Levels.
 
        AIX Level          Interim Fix
        -------------------------------------------------------------------
        5.2.0 TL8          IZ10840_08.080109.epkg.Z
        5.2.0 TL9          IZ10840_09.080109.epkg.Z
        5.2.0 TL10         IZ10840_10.080109.epkg.Z
        5.3.0 TL5          IZ10841_05.080109.epkg.Z
        5.3.0 TL6          IZ10841_06.080109.epkg.Z
        5.3.7              IZ10842_07.080109.epkg.Z
        6.1.0              IZ10844_00.080109.epkg.Z
 
        To extract the fixes from the tar file:
 
        tar xvf pioout_ifix.tar
        cd pioout_ifix
 
        Verify you have retrieved the fixes intact:
 
        The checksums below were generated using the "sum", "cksum",
        "csum -h MD5" (md5sum), and "csum -h SHA1" (sha1sum) commands
        and are as follows:
 
        sum         filename
        ------------------------------------
        20943    29 IZ10840_08.080109.epkg.Z
        52998    29 IZ10840_09.080109.epkg.Z
        12113    29 IZ10840_10.080109.epkg.Z
        04259    29 IZ10841_05.080109.epkg.Z
        31137    31 IZ10841_06.080109.epkg.Z
        19224    31 IZ10842_07.080109.epkg.Z
        62266    33 IZ10844_00.080109.epkg.Z
 
        cksum             filename
        ------------------------------------------
        4026553893 29373 IZ10840_08.080109.epkg.Z
        746458370  29370 IZ10840_09.080109.epkg.Z
        1141412719 29360 IZ10840_10.080109.epkg.Z
        2786630976 29255 IZ10841_05.080109.epkg.Z
        4255456850 30746 IZ10841_06.080109.epkg.Z
        103088591  30748 IZ10842_07.080109.epkg.Z
        3267320718 33099 IZ10844_00.080109.epkg.Z
 
        csum -h MD5 (md5sum)              filename
        ----------------------------------------------------------
        558bc9071b94c69a80fa7c775dd47f88  IZ10840_08.080109.epkg.Z
        71a315af40a5697c91ff0bb500bf0aa9  IZ10840_09.080109.epkg.Z
        5a8c8cd6922a2479201859be07fdda42  IZ10840_10.080109.epkg.Z
        677c2d0064e7e32ca8dfc4f92b1cc977  IZ10841_05.080109.epkg.Z
        21337af76a41a0f8c097e376bbaa1406  IZ10841_06.080109.epkg.Z
        0b3de29dfb23bb6c2e089a606303a75c  IZ10842_07.080109.epkg.Z
        bf4eb2807f0b30ab877d5b4a15315a9b  IZ10844_00.080109.epkg.Z
 
        csum -h SHA1 (sha1sum)                    filename
        ------------------------------------------------------------------
        75614ca3db4e3a83ec6051e7d2ff1fe51a66768e  IZ10840_08.080109.epkg.Z
        0a965047dc28569ddee8d698191f70b3b1b152ca  IZ10840_09.080109.epkg.Z
        bfb3c9c9f2cf3831ed903ec8d11acd278e58ae3f  IZ10840_10.080109.epkg.Z
        cde96156eeb70759ae58e970e960a1277f689753  IZ10841_05.080109.epkg.Z
        b41b4fa9dd8f7e6c889bb17580c9bac76e04bc72  IZ10841_06.080109.epkg.Z
        f39a8edb911c9663e7a9e7064510485eed9d7e44  IZ10842_07.080109.epkg.Z
        c831eba7c637f3375a6fe66377666db573da1abd  IZ10844_00.080109.epkg.Z
 
        To verify the sums, use the text of this advisory as input to
        csum, md5sum, or sha1sum. For example:
 
        csum -h SHA1 -i Advisory.asc
        md5sum -c Advisory.asc
        sha1sum -c Advisory.asc
 
        These sums should match exactly. The PGP signatures in the tar
        file and on this advisory can also be used to verify the
        integrity of the fixes.  If the sums or signatures cannot be
        confirmed, contact IBM AIX Security at
        security-alert@austin.ibm.com and describe the discrepancy.
 
    C. INTERIM FIX INSTALLATION
 
        IMPORTANT: If possible, it is recommended that a mksysb backup
        of the system be created.  Verify it is both bootable and
        readable before proceeding.
 
        Interim fixes have had limited functional and regression
        testing but not the full regression testing that takes place
        for Service Packs; thus, IBM does not warrant the fully
        correct functionality of an interim fix.
 
        Interim fix management documentation can be found at:
 
        http://www14.software.ibm.com/webapp/set2/sas/f/aix.efixmgmt/home.html
 
        To preview an interim fix installation:
 
        emgr -e ipkg_name -p         # where ipkg_name is the name of the
                                     # interim fix package being previewed.
 
        To install an interim fix package:
 
        emgr -e ipkg_name -X         # where ipkg_name is the name of the
                                     # interim fix package being installed.
 
VI. WORKAROUNDS
 
    There are two workarounds available.
 
    A. OPTION 1
 
        Change the permissions of these commands to remove the setuid
        bit using the following commands:
 
        chmod 500 /usr/lib/lpd/pio/etc/pioout
 
        NOTE: chmod will disable functionality of these commands for
        all users except root.
 
    B. OPTION 2 (AIX 6.1, AIX 5.3 TL6 and TL7)
 
        Use the File Permissions Manager (fpm) command to manage
        setuid and setgid programs.
 
        fpm documentation can be found in the AIX 6 Security Redbook
        at:
 
        http://www.redbooks.ibm.com/abstracts/sg247430.html
 
        An fpm level of high will remove the setuid bit from the
        affected commands.  For example:
 
        fpm -l high -p    # to preview changes
        fpm -l high       # to execute changes
 
        NOTE: Please review the documentation before execution.  fpm
        will disable functionality of multiple commands for all users
        except root.
 
VII. OBTAINING FIXES
 
    AIX security related fixes can be downloaded from:
 
        ftp://aix.software.ibm.com/aix/efixes/security
 
    AIX fixes can be downloaded from:
 
        http://www.ibm.com/eserver/support/fixes/fixcentral/main/pseries/aix
 
    NOTE: Affected customers are urged to upgrade to the latest
    applicable Technology Level and Service Pack.
 
VIII. CONTACT INFORMATION
 
    If you would like to receive AIX Security Advisories via email,
    please visit:
 
        http://www14.software.ibm.com/webapp/set2/subscriptions/pqvcmjd
 
    Comments regarding the content of this announcement can be
    directed to:
 
        security-alert@austin.ibm.com
 
    To request the PGP public key that can be used to communicate
    securely with the AIX Security Team you can either:
 
        A. Send an email with "get key" in the subject line to:
 
            security-alert@austin.ibm.com
 
        B. Download the key from a PGP Public Key Server. The key ID is:
 
            0xA6A36CCC
 
    Please contact your local IBM AIX support center for any
    assistance.
 
    eServer is a trademark of International Business Machines
    Corporation.  IBM, AIX and pSeries are registered trademarks of
    International Business Machines Corporation.  All other trademarks
    are property of their respective holders.
 
IX. ACKNOWLEDGMENTS
 
    iDefense Labs reported this vulnerability.
 
 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (AIX)
 
iD8DBQFHl1/B8lficKajbMwRAhyVAJ9mmnw7TOsx46OMItfgYB/EXSZ2xgCdGcpK
NMDHKbTpP9zpSZ71GL8ZVFU=
=g1Rf
-----END PGP SIGNATURE-----
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us   |    Help

Copyright 2007, SecurityGlobal.net LLC