copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
 
Search this site

 
On this site

 > HOME
 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Training
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login





 

ESB-2009.0514 -- [Solaris][OpenSolaris] -- libpng: Execute Arbitrary Code

Date: 01 June 2009
References: AA-2007.0086  ESB-2008.0384  AA-2008.0205  ESB-2009.0199  ESB-2009.0541  

Click here for printable version
Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

                  ESB-2009.0514 -- [Solaris][OpenSolaris]
                      libpng: Execute Arbitrary Code
                                1 June 2009

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

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

Product:              libpng
Publisher:            Sun Microsystems
Operating System:     Solaris
                      OpenSolaris
Impact:               Execute Arbitrary Code/Commands
                      Increased Privileges
                      Denial of Service
Access:               Remote/Unauthenticated
CVE Names:            CVE-2009-0040 CVE-2008-3964 CVE-2008-1382
                      CVE-2007-5269 CVE-2007-5268 CVE-2007-5267
                      CVE-2007-5266

Ref:                  AA-2008.0205
                      AA-2007.0086
                      ESB-2009.0199
                      ESB-2008.0384

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

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

Solution Type:  Sun Alert
Solution  259989 : Security Vulnerability in Solaris libpng(3) May
                   Allow Denial of Service (DoS) or Privilege Escalation          
Bug ID: 6745161, 6755267, 6813939

Product

Solaris 8 Operating System
Solaris 9 Operating System
Solaris 10 Operating System
OpenSolaris Operating system

Date of Workaround Release: 28-May-2009

SA Document Body

Security Vulnerability in Solaris libpng(3) May Allow Denial of Service 
(DoS) or Privilege Escalation

1. Impact

Multiple security vulnerabilities in libpng(3), which is shipped with
Solaris, may allow a local or remote unprivileged user to cause a
denial of service (DoS) of applications linked to libpng(3), or
potentially to execute arbitrary code with the privileges of the user
running the application, when a user has loaded a specially crafted
Portable Network Graphics (PNG) format image file (.png) supplied by
an untrusted user.
These issues are also referenced in the following documents:
 CVE-2007-5267 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5267
 CVE-2008-3964 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-3964
 CVE-2007-5266 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5266
 CVE-2007-5268 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5268
 CVE-2007-5269 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-5269
 CVE-2008-1382 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1382
 CVE-2009-0040 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0040
 CERT VU#649212 http://www.kb.cert.org/vuls/id/649212

2. Contributing Factors

This issue can occur in the following releases:
   SPARC Platform
     * GNOME 2.0 (for Solaris 8)
     * Solaris 9
     * Solaris 10 without patch 137080-03
     * OpenSolaris builds snv_01 through snv_112

   x86 Platform
     * GNOME 2.0 (for Solaris 8)
     * Solaris 9
     * Solaris 10 without patch 137081-03
     * OpenSolaris builds snv_01 through snv_112

Note 1: OpenSolaris distributions may include additional bug fixes
        above and beyond the build from which it was derived.
        The base build can be derived as follows:
         $ uname -v
          snv_101

Note 2: To determine if an application has a dynamic dependency on the
        libpng(3) library, the ldd(1) utility can be used, for example:
    $ ldd /bin/evince | grep libpng
        libpng12.so.0 =>         /usr/lib/libpng12.so.0

However, some applications may use libpng(3) but not report libpng as
a dynamic dependency with ldd(1) if the library is loaded by
dlopen(3C). Therefore, to display all shared objects used by an
application, pldd(1) should be used against the running process:
    $ pldd <pid of application> | grep libpng
    /usr/lib/libpng12.so.0.18.0

3. Symptoms

If the described issues are exploited to cause a Denial of Service
(DoS), the application which links to the libpng(3) library will exit
and may generate an error message about a Segmentation Fault, possibly
writing a core(4) file.
There are no predictable symptoms which would indicate that these
issues have been exploited to execute arbitrary code.

4. Workaround

There is no workaround which would prevent these issues from being
exploited, therefore it is advisable not to load images from untrusted
sources with any affected applications until the Resolution for these
issues is in place.

5. Resolution

This issue is addressed in the following releases:
   SPARC Platform
     * Solaris 10 with patch 137080-03 or later
     * OpenSolaris based upon builds snv_113 or later

   x86 Platform
     * Solaris 10 with patch 137081-03 or later
     * OpenSolaris based upon builds snv_113 or later

Note that for Solaris 10 the issues referred to as CVE-2007-5267,
CVE-2008-3964, CVE-2007-5266, CVE-2007-5268, CVE-2007-5269, and
CVE-2008-1382 are resolved in patches 137080-02 and 137081-02
and later revisions.

A final resolution is pending completion for Solaris 8 and 9.

For more information on Security Sun Alerts, see Technical Instruction 
ID 213557:
http://sunsolve.sun.com/search/document.do?assetkey=1-61-213557-1

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

iD8DBQFKIxWLNVH5XJJInbgRAsXKAJ4jtirDHkM92swKwDDieWinQdl71QCeKfUo
96QE93xjB9+YRRg0mnDnxd4=
=CzP5
-----END PGP SIGNATURE-----