<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="200412-09">
  <title>ncpfs: Buffer overflow in ncplogin and ncpmap</title>
  <synopsis>
    ncpfs is vulnerable to a buffer overflow that could lead to local execution
    of arbitrary code with elevated privileges.
  </synopsis>
  <product type="ebuild">ncpfs</product>
  <announced>2004-12-15</announced>
  <revised count="01">2004-12-15</revised>
  <bug>72820</bug>
  <access>local</access>
  <affected>
    <package name="net-fs/ncpfs" auto="yes" arch="*">
      <unaffected range="ge">2.2.5</unaffected>
      <vulnerable range="lt">2.2.5</vulnerable>
    </package>
  </affected>
  <background>
    <p>
    ncpfs is a NCP protocol network filesystem that allows access to
    Netware services, for example to mount volumes of NetWare servers or
    print to NetWare print queues.
    </p>
  </background>
  <description>
    <p>
    Karol Wiesek discovered a buffer overflow in the handling of the
    '-T' option in the ncplogin and ncpmap utilities, which are both
    installed as SUID root by default.
    </p>
  </description>
  <impact type="high">
    <p>
    A local attacker could trigger the buffer overflow by calling one
    of these utilities with a carefully crafted command line, potentially
    resulting in execution of arbitrary code with root privileges.
    </p>
  </impact>
  <workaround>
    <p>
    There is no known workaround at this time.
    </p>
  </workaround>
  <resolution>
    <p>
    All ncpfs users should upgrade to the latest version:
    </p>
    <code>
    # emerge --sync
    # emerge --ask --oneshot --verbose "&gt;=net-fs/ncpfs-2.2.5"</code>
  </resolution>
  <references>
    <uri link="http://lists.netsys.com/pipermail/full-disclosure/2004-November/029563.html">Full Disclosure Advisory</uri>
    <uri link="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-1079">CAN-2004-1079</uri>
  </references>
  <metadata tag="requester" timestamp="2004-12-09T07:35:34Z">
    jaervosz
  </metadata>
  <metadata tag="submitter" timestamp="2004-12-14T14:41:20Z">
    koon
  </metadata>
  <metadata tag="bugReady" timestamp="2004-12-14T16:10:38Z">
    koon
  </metadata>
</glsa>
