<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201201-10">
  <title>JasPer: User-assisted execution of arbitrary code</title>
  <synopsis>Multiple memory management errors in JasPer could result in
    execution of arbitrary code or a Denial of Service.
  </synopsis>
  <product type="ebuild">JasPer</product>
  <announced>2012-01-23</announced>
  <revised count="1">2012-01-23</revised>
  <bug>394879</bug>
  <access>remote</access>
  <affected>
    <package name="media-libs/jasper" auto="yes" arch="*">
      <unaffected range="ge">1.900.1-r4</unaffected>
      <vulnerable range="lt">1.900.1-r4</vulnerable>
    </package>
  </affected>
  <background>
    <p>The JasPer Project is an open-source initiative to provide a free
      software-based reference implementation of the codec specified in the
      JPEG-2000 Part-1 (jpeg2k) standard.
    </p>
  </background>
  <description>
    <p>Two vulnerabilities have been found in JasPer:</p>
    
    <ul>
      <li>The jpc_cox_getcompparms function in libjasper/jpc/jpc_cs.c contains
        an error that could overwrite certain callback pointers, possibly
        causing a heap-based buffer overflow (CVE-2011-4516).
      </li>
      <li>The jpc_crg_getparms function in libjasper/jpc/jpc_cs.c uses an
        incorrect data type, possibly causing a heap-based buffer overflow
        (CVE-2011-4517).
      </li>
    </ul>
  </description>
  <impact type="normal">
    <p>A remote attacker could entice a user or automated system to process
      specially crafted JPEG-2000 files with an application using JasPer,
      possibly resulting in the execution of arbitrary code with the privileges
      of the application, or a Denial of Service.
    </p>
  </impact>
  <workaround>
    <p>There is no known workaround at this time.</p>
  </workaround>
  <resolution>
    <p>All JasPer users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose "&gt;=media-libs/jasper-1.900.1-r4"
    </code>
    
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2011-4516">CVE-2011-4516</uri>
    <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2011-4517">CVE-2011-4517</uri>
  </references>
  <metadata timestamp="2011-12-27T05:22:50Z" tag="requester">
    underling
  </metadata>
  <metadata timestamp="2012-01-23T19:50:54Z" tag="submitter">ackle</metadata>
</glsa>
