=====================================================================
                                  CERT-Renater

                       Note d'Information No. 2005/VULN281
_____________________________________________________________________

DATE                      : 26/04/2005

HARDWARE PLATFORM(S)      : /

OPERATING SYSTEM(S)       : Solaris 7, Solaris 8, Solaris 9.

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

    Sun(sm) Alert Notification
      * Sun Alert ID: 57768
      * Synopsis: Multiple Security Vulnerabilities in Xsun and Xprt
        Server Font Handling
      * Category: Security
      * Product: Solaris
      * BugIDs: 4995611, 4989547
      * Avoidance: Patch
      * State: Resolved
      * Date Released: 18-Apr-2005
      * Date Closed: 18-Apr-2005
      * Date Modified:

    1. Impact Xsun(1), the Solaris server for X Version 11, and Xprt(1),
    the Solaris print server for X Version 11, contain multiple buffer
    overflows in the handling of the "font.alias" file which may allow a
    local unprivileged user to execute arbitrary code with the privileges
    of the Xsun or Xprt server. The Xsun server runs with "gid root"
    privileges on Solaris SPARC systems and "uid root" privileges on
    Solaris x86 systems. The Xprt server runs with "gid root" privileges
    on both SPARC and x86 systems.

    This issue is described in the following documents:

    CVE CAN-2004-0083 at
    [2]http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0083

    CVE CAN-2004-0084 at
    [3]http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0084

    2. Contributing Factors This issue can occur in the following
    releases:

    SPARC Platform

      * Solaris 7 without patch [4]108376-45
      * Solaris 8 without patch 108652-80
      * Solaris 9 without patch [5]112785-34

    x86 Platform

      * Solaris 7 without patch [6]108377-40
      * Solaris 8 without patch 108653-69
      * Solaris 9 without patch [7]112786-36

    Note: Solaris 10 is not affected by this issue.

    3. Symptoms There are no predictable symptoms that would indicate the
    described issue has been exploited.

    Solution Summary [8]Top

    4. Relief/Workaround To work around the described issue, do the
    following:

     1. Remove the setuid(2) and/or setgid(2) bit from Xsun and Xprt
     2. Configure dtlogin(1X) not to run Xsun as "root"

    1. To remove the setuid(2) and/or setgid(2) bit from Xsun and Xprt,
    the following command can be run as "root":

     # chmod 0755 /usr/openwin/bin/Xsun /usr/openwin/bin/Xprt


    2. To configure dtlogin not to run Xsun as "root", copy
    "/usr/dt/config/Xservers" to "/etc/dt/config/Xservers" and change the
    following line from:

     :0   Local local_uid@console root /usr/X11/bin/Xserver :0 -nobanner


    to

     :0   Local local@console /usr/openwin/bin/Xsun :0 -nobanner


    WARNING: Performing the above procedure will disable:

      * all ability to run Xsun on Solaris x86
      * power management and Interactive Process Priority control on
        Solaris SPARC
      * Sun Ray support
      * Xsun and Xprt ability to open Unix domain sockets and named pipe
        transports in the protected /tmp/.X11-* directories

    5. Resolution This issue is addressed in the following releases:

    SPARC Platform

      * Solaris 7 with patch [9]108376-45 or later
      * Solaris 8 with patch 108652-80 or later
      * Solaris 9 with patch [10]112785-34 or later

    x86 Platform

      * Solaris 7 with patch [11]108377-40 or later
      * Solaris 8 with patch 108653-69 or later
      * Solaris 9 with patch [12]112786-36 or later

    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-2005 Sun Microsystems, Inc., 4150 Network Circle, Santa
    Clara, CA 95054 U.S.A. All rights reserved.


References

    1. http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-26-57768-1#top
    2. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0083
    3. http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0084
    4. http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-108376-45-1
    5. http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-112785-34-1
    6. http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-108377-40-1
    7. http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-112786-36-1
    8. http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-26-57768-1#top
    9. http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-108376-45-1
   10. http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-112785-34-1
   11. http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-108377-40-1
   12. http://sunsolve.sun.com/search/document.do?assetkey=urn:cds:docid:1-21-112786-36-1

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

         =========================================================
         Les serveurs de référence du CERT-Renater
         http://www.urec.fr/securite
         http://www.cru.fr/securite
         http://www.renater.fr
         =========================================================
         + CERT-RENATER          | tel : 01-53-94-20-44          +
         + 151 bd de l'Hopital   | fax : 01-53-94-20-41          +
         + 75013 Paris           | email: certsvp@renater.fr     +
         =========================================================


