[UNIX] Remote and Local Vulnerabilities In XFree86 Font Libraries

From: SecuriTeam (support_at_securiteam.com)
Date: 09/02/03

  • Next message: SecuriTeam: "[NEWS] SAP Internet Transaction Server Multiple Vulnerabilities"
    To: list@securiteam.com
    Date: 2 Sep 2003 15:05:44 +0200
    
    

    The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
    - - promotion

    The SecuriTeam alerts list - Free, Accurate, Independent.

    Get your security news from a reliable source.
    http://www.securiteam.com/mailinglist.html

    - - - - - - - - -

      Remote and Local Vulnerabilities In XFree86 Font Libraries
    ------------------------------------------------------------------------

    SUMMARY

     <http://xfree86.org> Xfree86 is "a freely redistributable open-source
    implementation of the X Window System. XFree86 runs primarily on UNIX® and
    UNIX-like operating systems such as Linux, all of the BSD variants, Sun
    Solaris x86, Mac OS X (via Darwin), as well as other platforms like OS/2
    and Cygwin".

    Several bugs exist in the font libraries of XFree86 font libraries. These
    bugs could potentially lead to the execution of arbitrary code by a remote
    user in any process that calls the functions in question. The functions
    are related to the transfer and enumeration of fonts from font servers to
    clients, limiting the range of the exposure caused by these bugs.

    DETAILS

    Vulnerable Systems:
     * XFree86 4.3.0

    Immune Systems:
     * XFree86 4.3.0.1 (latest CVS)

    Several variables that are passed from a font server to a client are not
    adequately checked, allowing integer overflows to cause erroneous sizes of
    buffers to be calculated. These erroneous calculations can lead to buffers
    on the heap and stack overflowing, potentially leading to arbitrary code
    execution. As stated before, the risk is limited by the fact that only
    clients can be affected remotely by these bugs, but in some (non default)
    configurations, both xfs and XServer can act as clients to remote font
    servers. In these configurations, both xfs and XServer could be
    potentially compromised remotely. In addition, it is possible for a local
    unprivileged user to alter the configuration of XServer in such a manner
    as to force it to load a font from an arbitrary font server. Since XServer
    is setuid root by default, a local user may potentially gain root
    privileges.

    Workaround:
     * To prevent the local privilege escalation, remove the suid bit from the
    XServer binary:
    chmod u-s XFree86

     * Ensure xfs and XServer do not include untrusted font servers in their
    font search paths.

    Fix:
    The current CVS version of XFree86 has been updated to correct these
    issues.

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:blexim@hush.com> blexim of
    isen

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

    This bulletin is sent to members of the SecuriTeam mailing list.
    To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

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

    DISCLAIMER:
    The information in this bulletin is provided "AS IS" without warranty of any kind.
    In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.


  • Next message: SecuriTeam: "[NEWS] SAP Internet Transaction Server Multiple Vulnerabilities"

    Relevant Pages

    • Re: New AIX machines issue
      ... The Xserver does not have access to the font definitions that the ... so the Xserver chews up CPU and some ... Im loading the application from the same location on both servers. ...
      (comp.unix.aix)
    • Multiple integer overflows in XFree86 (local/remote)
      ... Remote and local vulnerabilities in XFree86 font libraries ... I have identified several bugs in the font libraries of the current version ... both xfs and XServer could be potentially compromised ...
      (Bugtraq)
    • Re: X Font Server
      ... >> I know the x font server is for true type fonts but it doesn't seem to ... client with an Xserver of its own already can serve up its own fonts. ... impossible forcing a hard reboot. ...
      (alt.os.linux.suse)
    • Re: font problem - please help!
      ... Someone said the new version of the X.Org xserver no longer puts the ... Font lines in the xorg.conf file. ... then just add the font directories in my or Mumia's ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)