<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200410-11">
  <title>tiff: Buffer overflows in image decoding</title>
  <synopsis>
    Multiple heap-based overflows have been found in the tiff library image
    decoding routines, potentially allowing to execute arbitrary code with the
    rights of the user viewing a malicious image.
  </synopsis>
  <product type="ebuild">tiff</product>
  <announced>2004-10-13</announced>
  <revised count="01">2004-10-13</revised>
  <access>remote</access>
  <affected>
    <package name="media-libs/tiff" auto="yes" arch="*">
      <unaffected range="ge">3.6.1-r2</unaffected>
      <vulnerable range="lt">3.6.1-r2</vulnerable>
    </package>
    <package name="media-gfx/xv" auto="yes" arch="*">
      <unaffected range="ge">3.10a-r8</unaffected>
      <vulnerable range="le">3.10a-r7</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    The tiff library contains encoding and decoding routines for the Tag Image
    File Format. It is called by numerous programs, including GNOME and KDE, to
    help in displaying TIFF images. xv is a multi-format image manipulation
    utility that is statically linked to the tiff library.
    </p>
  </background>
  <description>
    <p>
    Chris Evans found heap-based overflows in RLE decoding routines in
    tif_next.c, tif_thunder.c and potentially tif_luv.c.
    </p>
  </description>
  <impact type="normal">
    <p>
    A remote attacker could entice a user to view a carefully crafted TIFF
    image file, which would potentially lead to execution of arbitrary code
    with the rights of the user viewing the image. This affects any program
    that makes use of the tiff library, including GNOME and KDE web browsers or
    mail readers.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All tiff library users should upgrade to the latest version:
    </p>
    <code>
    # emerge sync

    # emerge -pv "&gt;=media-libs/tiff-3.6.1-r2"
    # emerge "&gt;=media-libs/tiff-3.6.1-r2"</code>
    <p>
    xv makes use of the tiff library and needs to be recompiled to receive the
    new patched version of the library. All xv users should also upgrade to the
    latest version:
    </p>
    <code>
    # emerge sync

    # emerge -pv "&gt;=media-gfx/xv-3.10a-r8"
    # emerge "&gt;=media-gfx/xv-3.10a-r8"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0803">CAN-2004-0803</uri>
  </references>
  <metadata tag="submitter" timestamp="2004-10-11T13:05:01Z">
    koon
  </metadata>
  <metadata tag="bugReady" timestamp="2004-10-13T14:38:12Z">
    koon
  </metadata>
</glsa>
