-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

                          ESB-2008.0221 -- [AIX]
                   AIX libc inet_network buffer overflow
                               25 March 2008

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

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

Product:              libc
Publisher:            IBM
Operating System:     AIX 6.1
                      AIX 5.3
                      AIX 5.2
Impact:               Execute Arbitrary Code/Commands
Access:               Remote/Unauthenticated
CVE Names:            CVE-2008-0122

Ref:                  ESB-2008.0102

Revision History:        March 25 2008: 5.2 TL8 fix correction, 
                                        5.3 TL6 SP6 and 5.3 TL7 SP3 now 
                                        supported
                      February 29 2008: Initial Release

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

===============================================================================
                           VULNERABILITY SUMMARY

VULNERABILITY:   AIX libc inet_network buffer overflow

PLATFORMS:       AIX 5.2, 5.3, 6.1

SOLUTION:        Apply the fix as described below.

THREAT:          A remote attacker may execute arbitrary code.

CVE Number:      CVE-2008-0122
===============================================================================
                           DETAILED INFORMATION

I. DESCRIPTION

    There is an off-by-one error in the AIX libc implementation of the
    inet_network function.  Programs which call this function will be
    vulnerable.  Please refer to the following links for more
    information:

    http://security.freebsd.org/advisories/FreeBSD-SA-08:02.libc.asc
    http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-0122

    The successful exploitation of this vulnerability allows a
    remote user to execute arbitrary code.

    The following library is vulnerable:

        /usr/ccs/lib/libc.a

II. PLATFORM VULNERABILITY ASSESSMENT

    To determine if your system is vulnerable, execute the following
    command:

    lslpp -L bos.rte.libc

    The following fileset levels are vulnerable:

    AIX Fileset        Lower Level       Upper Level
    ------------------------------------------------
    bos.rte.libc       5.2.0.0           5.2.0.109
    bos.rte.libc       5.3.0.0           5.3.0.66
    bos.rte.libc       5.3.7.0           5.3.7.3
    bos.rte.libc       6.1.0.0           6.1.0.3

    NOTE: AIX 5.3 TL6 SP6 and AIX 5.3 TL7 SP3 will not contain this
    fix when they are released.  An updated ifix will be released when
    the service packs are released.

|   The fix for 5.2 TL8 has been updated to include the fix for
|   IY94368.

|   The 5.3 TL6 and 5.3 TL7 fixes now support 5.3 TL6 SP6 and 5.3 TL7
|   SP3.

III. SOLUTIONS

    A. APARS

        IBM has assigned the following APARs to this problem:

        AIX Level           APAR number        Availability
        ---------------------------------------------------
        5.2.0               IZ15564            05/07/08
        5.3.0               IZ15567            05/28/08
        5.3.7               IZ15566            05/28/08
        6.1.0               IZ15565            04/09/08

        Subscribe to the APARs here:

        http://www.ibm.com/support/docview.wss?uid=isg1IZ15564
        http://www.ibm.com/support/docview.wss?uid=isg1IZ15567
        http://www.ibm.com/support/docview.wss?uid=isg1IZ15566
        http://www.ibm.com/support/docview.wss?uid=isg1IZ15565

        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/libc_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          IZ15564_08.080305.epkg.Z
        5.2.0 TL9          IZ15564_09.080219.epkg.Z
        5.2.0 TL10         IZ15564_10.080219.epkg.Z
        5.3.0 TL5          IZ15567_05.080219.epkg.Z
|       5.3.0 TL6          IZ15567_06.080320.epkg.Z
|       5.3.7              IZ15566_07.080320.epkg.Z
        6.1.0              IZ15565_00.080219.epkg.Z

        To extract the fixes from the tar file:

        tar xvf libc_ifix.tar
        cd libc_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
        ------------------------------------
|       06430  3150 IZ15564_08.080305.epkg.Z
        19549  3172 IZ15564_09.080219.epkg.Z
        52071  3186 IZ15564_10.080219.epkg.Z
        53605  4731 IZ15565_00.080219.epkg.Z
|       15822  4049 IZ15566_07.080320.epkg.Z
        11422  3565 IZ15567_05.080219.epkg.Z
|       65020  4007 IZ15567_06.080320.epkg.Z

        cksum              filename
        ------------------------------------------
|       3238578918 3225462 IZ15564_08.080305.epkg.Z
        1510474728 3247126 IZ15564_09.080219.epkg.Z
        168637892  3261516 IZ15564_10.080219.epkg.Z
        683046070  4843871 IZ15565_00.080219.epkg.Z
|       3336076587 4145884 IZ15566_07.080320.epkg.Z
        1361113499 3649666 IZ15567_05.080219.epkg.Z
|       3636846589 4102251 IZ15567_06.080320.epkg.Z

        csum -h MD5 (md5sum)              filename
        ----------------------------------------------------------
|       a9438d69a9f8861f0d66653a218b141a  IZ15564_08.080305.epkg.Z
        0dce26937a5c37af54f7530beb7e4c09  IZ15564_09.080219.epkg.Z
        4c315531586da4fce4ff752ee067408f  IZ15564_10.080219.epkg.Z
        22c2ad002375f05f59c25f68e36a27a3  IZ15565_00.080219.epkg.Z
|       f90a066da2277a63b22a43cdcfa7f2a2  IZ15566_07.080320.epkg.Z
        985dc8bbcb71f09b8874944f302e4498  IZ15567_05.080219.epkg.Z
|       53a5d4c4490f2135182b6a4f9c4921c6  IZ15567_06.080320.epkg.Z

        csum -h SHA1 (sha1sum)                    filename
        ------------------------------------------------------------------
|       7daaa9a640ec9f0172232a6770856fff84979dc9  IZ15564_08.080305.epkg.Z
        18ac4146cd3eadeb3c0ecbee11d720efc29a4076  IZ15564_09.080219.epkg.Z
        b852a9ae018fe380f07048b20510f794b15b1610  IZ15564_10.080219.epkg.Z
        79d367b661490c226a08acb7e0dc87f223addbc5  IZ15565_00.080219.epkg.Z
|       7e821f33a3fa002385617db4d29767160f89a25d  IZ15566_07.080320.epkg.Z
        d2e334e464c4b49fe731cc586dd786a3a79dd33a  IZ15567_05.080219.epkg.Z
|       fad9172deba5290d43d90d2226e8c6a206f25e1a  IZ15567_06.080320.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.

IV. WORKAROUNDS

    There are no workarounds.

V. OBTAINING FIXES

    AIX security 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.

VI. 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.

VII. ACKNOWLEDGMENTS

    Bjoern A. Zeeb and Nate Eldredge reported this vulnerability.


- --------------------------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.

NOTE: Third Party Rights
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 follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

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 author's website 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/render.html?cid=1980

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

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 member emergencies only.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBR+h60yh9+71yA2DNAQImBAQAguveLNoViTBZAnNVv2QMVgOIrvmKRpWS
/4qZNVT9RJjgrpRCr45KA+JY7/Oxk+Hkfgai3ItlcgNrrapY7l0OgbzdvIjiyWKP
fOjsgg19g7XuEdbf82qqJA6QJTVixPRlN49KbNgbXk+oLI/l/SlSNYAaeRVbgd8m
PIxPhpphHZg=
=mm1G
-----END PGP SIGNATURE-----