===================================================================== CERT-Renater Note d'Information No. 2007/VULN216 _____________________________________________________________________ DATE : 27/04 /2007 HARDWARE PLATFORM(S) : / OPERATING SYSTEM(S) : Systems running libfreetype, Xsun(1), libfreetype, Xsun(1), Xorg(1). ====================================================================== Sun(sm) Alert Notification * Sun Alert ID: 102886 * Synopsis: Multiple vulnerabilities in libfreetype, Xsun(1) and Xorg(1) * Category: Security * Product: Solaris 9 Operating System, Solaris 10 Operating System, Solaris 8 Operating System * BugIDs: 6526191, 6538280, 6538290, 6539893, 6526192, 6538282, 6538286 * Avoidance: Workaround * State: Workaround * Date Released: 25-Apr-2007 * Date Closed: * Date Modified: 1. Impact Multiple security vulnerabilities exist in the X11 FreeType library and X11 display servers Xsun(1) and Xorg(1). The XC-MISC extension is used by the X11 display servers to manage resource IDs. A local or remote unprivileged user who is able to display data on a running X11 server instance may be able to elevate their privileges to root and execute arbitrary code or cause a Denial of Service (DOS) to that X11 server instance resulting from memory corruption in ProxXCMiscGetXIDList. This issue is described in the following documents: http://labs.idefense.com/intelligence/vulnerabilities/display.php?i d=503 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1003 http://lists.freedesktop.org/archives/xorg-announce/2007-April/0002 86.html The X11 display servers contain a flaw that may allow a local or remote unprivileged user who is able to display data on a running X11 server instance to elevate their privileges to root and execute arbitrary code or cause a Denial of Service (DOS) to that X11 server instance when a BDF font file specifies that there are more then 2^30 characters defined in the font file. This issue is described in the following documents: http://labs.idefense.com/intelligence/vulnerabilities/display.php?i d=501 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1351 http://lists.freedesktop.org/archives/xorg-announce/2007-April/0002 86.html The X11 Free Type library and X11 display servers contain a flaw that may allow a local or remote unprivileged user who is able to display data on a running X11 server instance to elevate their privileges to root and execute arbitrary code or cause a Denial of Service (DOS) to that X11 server instance by causing the server to load a long path name in the fonts.dir file for a font. This issue is described in the following documents: http://labs.idefense.com/intelligence/vulnerabilities/display.php?i d=502 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1352 http://lists.freedesktop.org/archives/xorg-announce/2007-April/000 286.html 2. Contributing Factors These issues can occur in the following releases: SPARC Platform * Solaris 8 * Solaris 9 * Solaris 10 x86 Platform * Solaris 8 * Solaris 9 * Solaris 10 Note: The Xorg(1) X server only ships on the x86 platform for Solaris 9 with the Sun Java Desktop System (JDS) release 2 installed, and on Solaris 10. To determine if JDS release 2 is installed on a Solaris 9 x86 system, the following command can be run: % grep distributor-version /usr/share/gnome-about/gnome-version.xml Sun Java Desktop System, Release 2 3. Symptoms There are no predictable symptoms that would indicate the described issues have been exploited. 4. Relief/Workaround To prevent this issue from being exploited to execute arbitrary commands with elevated privileges, the setuid(2) bit can be removed from the Xorg server and the Xsun server on the x86 platform and the setgid(2) bit can be removed from the Xsun server on the SPARC platform. For example: # chmod 0755 /usr/openwin/bin/Xsun # chmod 0755 /usr/X11/bin/Xorg Similar chmod commands will need to be used on a setuid(2) or setgid(2) application that links to the Free Type library (libfreetype). To determine if a setuid(2) or setgid(2) application links to the Free Type library do the following: # ldd /usr/bin/fc-cache | grep freetype libfreetype.so.6 => /usr/sfw/lib/libfreetype.so.6 If the fc-cache application had been setuid(2) or setgid(2) then performing the chmod commands would be appropriate. Note 1: Performing the above procedure will disable the following: * The ability to start either the Xsun(1) or Xorg(1) server from the command line for non-root users on the Solaris x86 platform. * The ability of Xsun(1) and Xorg(1) to open Unix domain sockets and named pipe transports in the protected "/tmp/.X11-*" directories. * The ability to configure Power Management and Interactive Process Priority control on Solaris SPARC. These features will still be available to Xsun and Xorg when started via a display manager such as dtlogin(1), gdm(1), or xdm(1). Note 2: There is no workaround to prevent this issue from being exploited to cause a Denial Of Service to the X Servers. Note 3: The "chmod" command for Xorg(1) is applicable only to Solaris 9 and 10. Note 4: Local users on the console of a system using an X display manager and Sun Ray users may still be able to exploit this vulnerability to execute arbitrary commands with elevated privileges even if the setuid and setgid permissions have been removed from the Xsun and Xorg binaries. 5. Resolution A final resolution is pending completion. 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 ====================================================================== ========================================================= 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 + =========================================================