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

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

                        ESB-2007.0270 -- [Solaris]
               Security Vulnerability in libX11 for Solaris
                               30 July 2007

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

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

Product:              libX11
Publisher:            Sun Microsystems
Operating System:     Solaris
Impact:               Increased Privileges
Access:               Existing Account
CVE Names:            CVE-2007-1667

Ref:                  ESB-2007.0220

Original Bulletin:  
  http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-26-102888-1

Revision History:     July 30 2007: Further Patches Released
                      July 13 2007: Patches Released
                      April 26 2007: Initial Release

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

Sun(sm) Alert Notification
     * Sun Alert ID: 102888
     * Synopsis: Security Vulnerability in libX11 for Solaris
     * Category: Security
     * Product: Solaris 9 Operating System, Solaris 10 Operating System,
       Solaris 8 Operating System
     * BugIDs: 6542279
     * Avoidance: Patch, Workaround
     * State: Resolved
     * Date Released: 24-Apr-2007, 25-Jul-2007
     * Date Closed: 25-Jul-2007
     * Date Modified: 11-Jul-2007, 25-Jul-2007

1. Impact

   A buffer overflow vulnerability in libX11 may allow a local
   unprivileged user to be able to execute arbitrary code or commands
   with elevated privileges. The code or commands executed would run with
   the privileges of the application dynamically linked to the libX11
   library. A number of programs shipped in Solaris and by third parties
   dynamically link with the libX11 library and run with elevated
   privileges. Applications that call XInitImage() with user-controllable
   parameters may be vulnerable, such as xwud(1) and ImageMagick, when
   loading X Window Dump (xwd) files with incorrect parameters.

   This issue is described in the following documents:

   CVE-2007-1667 at
   http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1667

   http://lists.freedesktop.org/archives/xorg-announce/2007-April/0002
   86.html

2. Contributing Factors

   This issue can occur in the following releases:

   SPARC Platform
     * Solaris 8 without patch 119067-08
     * Solaris 9 without patch 112785-62
     * Solaris 10 without patch 119059-26

   x86 Platform
     * Solaris 8 without patch 119068-08
     * Solaris 9 without patch 112786-51
     * Solaris 10 without patch 119060-25

   Notes:

   1) To determine if an application is linked against the libX11
   library, the ldd(1) utility can be used as in the following example:
    $ ldd /path/to/application | grep libX11 || echo "application not affected"

   If output similar to the following is seen:
    libX11.so.4 =>   /usr/openwin/lib/libX11.so.4

   then the application links to libX11 and may be affected by this
   issue.

   2) To determine if an application uses the XInitImage(3X11) function
   the nm(1) command can be used if the application binary has not been
   stripped using strip(1). The file(1) command will report if a binary
   has been stripped. For example:
    $ file /usr/openwin/bin/xwud
    /usr/openwin/bin/xwud:  ELF 32-bit LSB executable 80386 Version 1 [FPU],
    dynamically linked, not stripped, no debugging information available

    $ nm /usr/openwin/bin/xwud | grep XInitImage
        | 134550036|         0|FUNC |GLOB |0    |UNDEF  |XInitImage

   Alternatively, the truss(1) utility can be used to determine if an
   application calls the XInitImage() function. For example:
    $ truss -f -t\!all -ulibX11:XInitImage: xwud -in file.xwd
    28243/1@1:      -> libX11:XInitImage(0x8047888)
    28243/1@1:      <- libX11:XInitImage() = 1

3. Symptoms

   There are no predictable symptoms that would indicate the described
   issue has been exploited to execute arbitrary commands with elevated
   privileges on a system. 

4. Relief/Workaround

   To avoid this issue, do not load X11 Window dump files from untrusted
   sources.

5. Resolution

   This issue is addressed in the following releases:

   SPARC Platform
     * Solaris 8 with patch 119067-08 or later
     * Solaris 9 with patch 112785-62 or later
     * Solaris 10 with patch 119059-26 or later

   x86 Platform
     * Solaris 8 with patch 119068-08 or later
     * Solaris 9 with patch 112786-51 or later
     * Solaris 10 with patch 119060-25 or later

Change History

   11-Jul-2007:
     * Updated Contributing Factors and Resolution sections

   25-Jul-2007:
     * Updated Contributing Factors and Resolution sections
     * State: Resolved

   This Sun Alert notification is being provided to you on an "AS IS"
   basis. This Sun Alert notification may contain information provided by
   third parties. The issues described in this Sun Alert notification may
   or may not impact your system(s). Sun makes no representations,
   warranties, or guarantees as to the information contained herein. ANY
   AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
   WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
   NON-INFRINGEMENT, ARE HEREBY DISCLAIMED. BY ACCESSING THIS DOCUMENT
   YOU ACKNOWLEDGE THAT SUN SHALL IN NO EVENT BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES THAT ARISE
   OUT OF YOUR USE OR FAILURE TO USE THE INFORMATION CONTAINED HEREIN.
   This Sun Alert notification contains Sun proprietary and confidential
   information. It is being provided to you pursuant to the provisions of
   your agreement to purchase services from Sun, or, if you do not have
   such an agreement, the Sun.com Terms of Use. This Sun Alert
   notification may only be used for the purposes contemplated by these
   agreements.

   Copyright 2000-2006 Sun Microsystems, Inc., 4150 Network Circle, Santa
   Clara, CA 95054 U.S.A. All rights reserved




















































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

iQCVAwUBRq2Bsih9+71yA2DNAQJN/AP/ZLIrTKV59hfcIaI8abN99AuAg+PthP3U
5itdTX/2xUxHQ/7lLPcBG4wLACPEE3mx5ptseM2aYa9BIuhEIYcULlJL+N+pn1oM
MghPG2GjdPwtbJggI9WpjnziSMJ/NC7V0QSDk3x+fblBhB02YR9QrBbu0lpLtzWW
xYMVWCTHyjw=
=1Sm/
-----END PGP SIGNATURE-----