<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200607-01">
  <title>mpg123: Heap overflow</title>
  <synopsis>
    A heap overflow in mpg123 was discovered, which could result in the
    execution of arbitrary code.
  </synopsis>
  <product type="ebuild">mpg123</product>
  <announced>2006-07-03</announced>
  <revised count="02">2006-07-29</revised>
  <bug>133988</bug>
  <access>remote</access>
  <affected>
    <package name="media-sound/mpg123" auto="yes" arch="*">
      <unaffected range="ge">0.59s-r11</unaffected>
      <vulnerable range="lt">0.59s-r11</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    mpg123 is a real time audio player designed for the MPEG format.
    </p>
  </background>
  <description>
    <p>
    In httpdget.c, a variable is assigned to the heap, and is supposed to
    receive a smaller allocation. As this variable was not terminated
    properly, strncpy() will overwrite the data assigned next in memory.
    </p>
  </description>
  <impact type="normal">
    <p>
    By enticing a user to visit a malicious URL, an attacker could possibly
    execute arbitrary code with the rights of the user running mpg123.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All mpg123 users should update to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=media-sound/mpg123-0.59s-r11"</code>
  </resolution>
  <references>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3355">CVE-2006-3355</uri>
  </references>
  <metadata tag="requester" timestamp="2006-06-30T16:01:33Z">
    jaervosz
  </metadata>
  <metadata tag="submitter" timestamp="2006-06-30T18:10:59Z">
    hlieberman
  </metadata>
  <metadata tag="bugReady" timestamp="2006-07-02T14:50:47Z">
    koon
  </metadata>
</glsa>
