<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200609-07">
  <title>LibXfont, monolithic X.org: Multiple integer overflows</title>
  <synopsis>
    Some buffer overflows were discovered in the CID font parser, potentially
    resulting in the execution of arbitrary code with elevated privileges.
  </synopsis>
  <product type="ebuild">libxfont</product>
  <announced>2006-09-13</announced>
  <revised count="01">2006-09-13</revised>
  <bug>145513</bug>
  <access>local and remote</access>
  <affected>
    <package name="x11-libs/libXfont" auto="yes" arch="*">
      <unaffected range="ge">1.2.1</unaffected>
      <vulnerable range="lt">1.2.1</vulnerable>
    </package>
    <package name="x11-base/xorg-x11" auto="yes" arch="*">
      <unaffected range="ge">7.0</unaffected>
      <vulnerable range="lt">7.0</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    libXfont is the X.Org Xfont library, some parts are based on the
    FreeType code base.
    </p>
  </background>
  <description>
    <p>
    Several integer overflows have been found in the CID font parser.
    </p>
  </description>
  <impact type="high">
    <p>
    A remote attacker could exploit this vulnerability by enticing a user
    to load a malicious font file resulting in the execution of arbitrary
    code with the permissions of the user running the X server which
    typically is the root user. A local user could exploit this
    vulnerability to gain elevated privileges.
    </p>
  </impact>
  <workaround>
    <p>
    Disable CID-encoded Type 1 fonts by removing the "type1" module and
    replacing it with the "freetype" module in xorg.conf.
    </p>
  </workaround>
  <resolution>
    <p>
    All libXfont users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=x11-libs/libXfont-1.2.1"</code>
    <p>
    All monolithic X.org users are advised to migrate to modular X.org.
    </p>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=2006-3739">CVE-2006-3739</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=2006-3740">CVE-2006-3740</uri>
  </references>
  <metadata tag="requester" timestamp="2006-09-12T16:30:32Z">
    frilled
  </metadata>
  <metadata tag="submitter" timestamp="2006-09-12T18:16:51Z">
    jaervosz
  </metadata>
  <metadata tag="bugReady" timestamp="2006-09-13T08:07:36Z">
    jaervosz
  </metadata>
</glsa>
