<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200706-01">
  <title>libexif: Integer overflow vulnerability</title>
  <synopsis>
    libexif fails to handle Exif (EXchangeable Image File) data inputs, making
    it vulnerable to an integer overflow.
  </synopsis>
  <product type="ebuild">libexif</product>
  <announced>2007-06-05</announced>
  <revised count="01">2007-06-05</revised>
  <bug>178081</bug>
  <access>remote</access>
  <affected>
    <package name="media-libs/libexif" auto="yes" arch="*">
      <unaffected range="ge">0.6.15</unaffected>
      <vulnerable range="lt">0.6.15</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    libexif is a library for parsing, editing and saving Exif data.
    </p>
  </background>
  <description>
    <p>
    Victor Stinner reported an integer overflow in the
    exif_data_load_data_entry() function from file exif-data.c while
    handling Exif data.
    </p>
  </description>
  <impact type="normal">
    <p>
    An attacker could entice a user to process a file with specially
    crafted Exif extensions with an application making use of libexif,
    which will trigger the integer overflow and potentially execute
    arbitrary code or crash the application.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All libexif users should upgrade to the latest version. Please note
    that users upgrading from "&lt;=media-libs/libexif-0.6.13" should also run
    revdep-rebuild after their upgrade.
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=media-libs/libexif-0.6.15"
    # revdep-rebuild --library=/usr/lib/libexif.so</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2645">CVE-2007-2645</uri>
  </references>
  <metadata tag="submitter" timestamp="2007-06-05T18:50:35Z">
    falco
  </metadata>
  <metadata tag="bugReady" timestamp="2007-06-03T06:19:11Z">
    falco
  </metadata>
</glsa>
