<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201204-02">
  <title>InspIRCd: Arbitrary code execution</title>
  <synopsis>A heap-based buffer overflow in InspIRCd may allow execution of
    arbitrary code.
  </synopsis>
  <product type="ebuild">InspIRCd</product>
  <announced>2012-04-10</announced>
  <revised count="1">2012-04-10</revised>
  <bug>409159</bug>
  <access>remote</access>
  <affected>
    <package name="net-irc/inspircd" auto="yes" arch="*">
      <unaffected range="ge">2.0.5-r1</unaffected>
      <vulnerable range="lt">2.0.5-r1</vulnerable>
    </package>
  </affected>
  <background>
    <p>InspIRCd (Inspire IRCd) is a modular C++ IRC daemon</p>
  </background>
  <description>
    <p>A vulnerability in InspIRCd allows DNS compression features to control
      the number of overflowed bytes sent to the heap-based buffer "res[]" in
      dns.cpp.
    </p>
  </description>
  <impact type="high">
    <p>A remote attacker could send specially crafted DNS responses, possibly
      resulting in execution of arbitrary code with the privileges of the
      process or a Denial of Service condition.
    </p>
  </impact>
  <workaround>
    <p>There is no known workaround at this time.</p>
  </workaround>
  <resolution>
    <p>All InspIRCd users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --oneshot --verbose "&gt;=net-irc/inspircd-2.0.5-r1"
    </code>
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2012-1836">CVE-2012-1836</uri>
  </references>
  <metadata timestamp="2012-03-23T11:55:36Z" tag="requester">ackle</metadata>
  <metadata timestamp="2012-04-10T11:06:33Z" tag="submitter">ackle</metadata>
</glsa>
