IBM AIX: Buffer Overflow Vulnerability in libi18n Library

From: IBM MSS Advisory Service (advisoryat_private)
Date: Thu Jul 19 2001 - 11:34:22 PDT

  • Next message: Vision Net Administration: "Re: Two birds with one worm."

    IBM Global Services
    Managed Security Services
    Outside Advisory Redistribution
    
    18 JUL 2001  23:47 GMT                              MSS-OAR-E01-2001:271.1
    ===========================================================================
    The MSS Outside Advisory Redistribution is designed to provide customers of
    IBM Managed Security Services with access to the security advisories
    sent out by other computer security incident response teams, vendors, and
    other groups concerned about security.
    
    IBM makes no representations and assumes no responsibility for the contents
    or accuracy of the advisories themselves.
    
    IBM MSS is forwarding the following information from IBM.
    Contact information for IBM is included in the forwarded text
    below. Please contact them if you have any questions or need further
    information.
    ===========================================================================
    ----------- Forwarded Information Starts Here.
    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1
    
    IBM SECURITY ADVISORY
    
    Thu Jun 28 10:06:00 CDT 2001
    ===========================================================================
                               VULNERABILITY SUMMARY
    
    VULNERABILITY:    Buffer Overflow Vulnerability in libi18n Library
    
    PLATFORMS:        IBM AIX 4.3.x and 5.1
    
    SOLUTION:         Apply the emergency-fixes described below, or
                      employ the workaround, also described below.
    
    THREAT:           Malicious local user could obtain root privileges.
    
    CERT Advisory:    NONE.
    
    CVE candidate:    CAN-2001-0533
    
    ===========================================================================
                               DETAILED INFORMATION
    
    I.  Description
    
        AIX ships with the library "libi18n" located in the "/usr/ccs/lib"
        directory. This library contains a function that is vulnerable
        to a buffer overflow through the LANG environment variable.
    
        An ordinary user has the ability to set the "LANG" environment
        variable to any value they choose. When this variable is set to a
        suitably formatted string and a program is run which uses the
    vulnerable
        library, the program will terminate abnormally. If this program is also
        setuid root, aixterm for example, a malicious user has an opportunity
        to spawn a root shell and gain control of the machine.
    
    II. Impact
    
       A malicious local user can use a well-crafted exploit code
       to gain root privileges on the attacked system, compromising the
       integrity of the system and its attached local network.
    
    III.  Solutions
    
      A.  WORKAROUND
    
          If you do not wish to install the efix for this vulnerability
          but instead wait for the APAR that fixes it to be made
          available, you can also negate this vulnerability by making the
          "aixterm" program to be non-SUID. You must be "root" to do this.
          Ordinary users will still be able to use the program, although there
          may be unexpected side effects.
    
      B.  Official Fix
    
          IBM is working on the following fixes which will be available
          soon:
    
               AIX 4.3.x   -  IY20867
               AIX 5.1.0   -  IY21309
    
          NOTE: Fix will not be provided for versions prior to 4.3 as
          these are no longer supported by IBM. Affected customers are
          urged to upgrade to 4.3.3 at the latest maintenance level,
          or to 5.1.
    
      C.  How to minimize the vulnerability
    
        Temporary fixes for AIX 4.3.x and 5.1 systems are available.
    
        The temporary fixes can be downloaded via ftp from:
    
        ftp://aix.software.ibm.com/aix/efixes/security/libi18n_efix.tar.Z
    
        The efix tarball consists of a patched libi18n tarred binary which is
        compatible with both 4.3.x and 5.1.0 releases.  A copy of this Advisory
        is included in the efix tarball.
    
        These temporary fixes have not been fully regression tested; thus,
        IBM does not warrant the fully correct functioning of the efix.
        Customers install the efix and operate the modified version of AIX
        at their own risk.
    
        To proceed with efix installation:
    
        First, verify the MD5 cryptographic hash sums of each efix files
        you obtain from unpacking the efix tarball with those given below.
    These
        should match exactly; if they do not, double check the hash results
        and the download site address. If OK, contact IBM AIX Security at
        security-alertat_private and describe the discrepancy.
    
        Filename        sum             md5
        =================================================================
        libi18n.tar    34706   130      1227c815533ae2f70a0eac71c5016263
    
        Efix Installation Instructions:
        -------------------------------
    
        IMPORTANT NOTICE: Before installing the efix, you must upgrade
        to the latest maintenance level of AIX for your version of AIX.
    
        1. Become root, if not already done.
    
        2. Change to the /usr/ccs/lib directory. Make a backup copy of the
           existing libi18n.a binary, giving it a distinctive, meaningful
           name, such as "libi18n.a.original" or "libi18n.a.backup". This
           is IMPORTANT to do, so you can recover the original libi18n.a
           binary if something goes wrong during the installation of the efix!
    
        3. In the root ("/") directory, download, uncompress, and untar
           the efix.
    
           a. uncompress libi18n_efix.tar.Z
           b. tar -xvf libi18n_efix.tar
    
        4. You will have a tarfiles named "libi18n.tar".
           You may discard the other, unneeded tarfile.
    
           Untar the tarfile by executing "tar -xvf libi18n.tar".
           The efix version of libi18n will be untarred and placed
           in the proper directory.
    
        5. Check to be certain that the new libi18n.a library
           is assigned proper permissions, "-r--r--r--", and the ownership
           is assigned properly, "bin" and "bin".
    
    
    IV. Obtaining Fixes
    
    IBM AIX APARs may be ordered using Electronic Fix Distribution (via the
    FixDist program), or from the IBM Support Center.  For more information
    on FixDist, and to obtain fixes via the Internet, please reference
    
            http://techsupport.services.ibm.com/rs6k/fixes.html
    
    or send email to "aixservat_private" with the word "FixDist" in the
    "Subject:" line.
    
    To facilitate ease of ordering all security related APARs for each AIX
    release, security fixes are periodically bundled into a cumulative APAR.
    For more information on these cumulative APARs including last update and
    list of individual fixes, send email to "aixservat_private" with
    the word "subscribe Security_APARs" in the "Subject:" line.
    
    
    V.  Acknowledgments
    
        Many thanks go to Troy Bollinger of IBM MSSD for discovering this
        vulnerability and for demonstrating its exploitation.
    
    VI.  Contact Information
    
    Comments regarding the content of this announcement can be directed to:
    
       security-alertat_private
    
    To request the PGP public key that can be used to encrypt new AIX
    security vulnerabilities, send email to security-alertat_private
    with a subject of "get key".
    
    If you would like to subscribe to the AIX security newsletter, send a
    note to aixservat_private with a subject of "subscribe Security".
    To cancel your subscription, use a subject of "unsubscribe Security".
    To see a list of other available subscriptions, use a subject of
    "help".
    
    IBM and AIX are a registered trademark of International Business
    Machines Corporation.  All other trademarks are property of their
    respective holders.
    -----BEGIN PGP SIGNATURE-----
    Version: PGP Personal Privacy 6.5.3
    
    iQA/AwUBO1YR+sXrSKQHhgFwEQIKdgCg/01+0+14kNJVkrZra84shE+ZnZoAoILt
    MYvXXfUk+CpOkUU3sk/gTEqu
    =+DG6
    -----END PGP SIGNATURE-----
    ----------- Forwarded Information Ends Here.
    ===========================================================================
    IBM's Managed Security Services (MSS) is a subscription-based Internet
    security response service that includes computer security incident response
    and management, regular electronic verification of your Internet
    gateway(s), and security vulnerability alerts similar to this one that are
    tailored to your specific computing environment.  By acting as an extension
    of your own internal security staff, IBM MSS's team of Internet security
    experts helps you quickly detect and respond to attacks and exposures
    across your Internet connection(s).
    
    As a part of IBM's Business Continuity and Recovery Service IBM's Managed
    Security Services is a component of IBM Global Services Privacy and
    Security Services suite of offerings.  To find out more about IBM Managed
    Security Services, send an electronic mail message to
    ers-salesat_private, or call 1-800-426-7378.
    
    IBM MSS maintains a site on the World Wide Web at http://www.ers.ibm.com/.
    Visit the site for information about the service, copies of security
    alerts, team contact information, and other items.
    
    IBM MSS uses Pretty Good Privacy* (PGP*) as the digital signature mechanism
    for security vulnerability alerts and other distributed information.  The
    IBM MSS PGP* public key is available from
       http://www.ers.ibm.com/team-info/pgpkey.html
    "Pretty Good Privacy" and "PGP" are trademarks of Philip Zimmermann.
    
    IBM MSS is a Member Team of the Forum of Incident Response and Security
    Teams (FIRST), a global organization established to foster cooperation and
    response coordination among computer security teams worldwide.
    
    The information in this document is provided as a service to customers of
    IBM Managed Security Services.  Neither International Business Machines
    Corporation, nor any of its employees, makes any warranty, express or
    implied, or assumes any legal liability or responsibility for the accuracy,
    completeness, or usefulness of any information, apparatus, product, or
    process contained herein, or represents that its use would not infringe any
    privately owned rights.  Reference herein to any specific commercial
    products, process, or service by trade name, trademark, manufacturer, or
    otherwise, does not necessarily constitute or imply its endorsement,
    recommendation or favoring by IBM or its subsidiaries.  The views and
    opinions of authors expressed herein do not necessarily state or reflect
    those of IBM or its subsidiaries, and may not be used for advertising or
    product endorsement purposes.
    ===========================================================================
    



    This archive was generated by hypermail 2b30 : Thu Jul 19 2001 - 12:09:01 PDT