<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>232523</bug_id>
          
          <creation_ts>2008-07-20 23:22 0000</creation_ts>
          <short_desc>net-dns/dnsmasq &lt;2.45 DHCP lease renewal crash (CVE-2008-3350)</short_desc>
          <delta_ts>2008-09-04 20:12:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Security</product>
          <component>Vulnerabilities</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://article.gmane.org/gmane.network.dns.dnsmasq.general/2189</bug_file_loc>
          <status_whiteboard>B3 [glsa]</status_whiteboard>
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>justin@bellmor.com</reporter>
          <assigned_to>security@gentoo.org</assigned_to>
          <cc>arm@gentoo.org</cc>
    
    <cc>chutzpah@gentoo.org</cc>
    
    <cc>s390@gentoo.org</cc>
    
    <cc>sh@gentoo.org</cc>
    
    <cc>zoltarx@o2.pl</cc>

      

      
          <long_desc isprivate="0">
            <who>justin@bellmor.com</who>
            <bug_when>2008-07-20 23:22:01 0000</bug_when>
            <thetext>dnsmasq 2.43 introduced a bug where an unknown client attempts to renew a lease causing a segfault. This has potential security implications. A new version upstream (and another for other issues) have been released to resolve this. One of my clients keeps triggering this bug, so I&apos;ve had to isolate it for the time being.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-07-20 23:55:42 0000</bug_when>
            <thetext>Justin, do you have a reproducer for this issue? Either a client configuration, packet dump, or similar?

Patrick, can you please bump the package?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>justin@bellmor.com</who>
            <bug_when>2008-07-21 03:14:41 0000</bug_when>
            <thetext>Snipped (and MAC address masked slightly) from my syslog:
Jul 20 22:53:34 ansible dnsmasq[24246]: DHCPREQUEST(eth1) 10.0.2.4 00:21:e9:44:af:XX 
Jul 20 22:53:34 ansible dnsmasq[24246]: DHCPNAK(eth1) 10.0.2.4 00:21:e9:44:af:XX wrong address
Jul 20 22:53:37 ansible dnsmasq[24246]: segfault at 10 ip 0805d69d sp bf8cc7e8 error 4 in dnsmasq[8048000+22000]
Jul 20 22:53:37 ansible dnsmasq[24246]: DHCPDISCOVER(eth1) 00:21:e9:44:af:XX 
Jul 20 22:53:37 ansible dnsmasq[24246]: DHCPOFFER(eth1) 10.0.0.86 00:21:e9:44:af:XX 
Jul 20 22:53:37 ansible dnsmasq[24246]: DHCPREQUEST(eth1) 10.0.2.4 00:21:e9:44:af:XX 
Jul 20 22:53:37 ansible dnsmasq[24246]: DHCPNAK(eth1) 10.0.2.4 00:21:e9:44:af:XX wrong network

I setup a NAT on my MacBook Pro (OS X) for the wireless and connected my iPhone to it, it was given a lease of 10.0.2.4. Then I connected to an AP on my dnsmasq-powered network and it attempts to acquire that lease (from a network range that dnsmasq doesn&apos;t deal with). dnsmasq isn&apos;t a fan and segfaults. My iPhone seems to be the client that triggers this most often, since it hops around so many networks throughout the day.

If you&apos;d really like my config file, let me know and I&apos;ll attach an unmangled copy, but I have some public IPs in there so I&apos;m in no rush to publicize them. If you don&apos;t mind an altered configuration, I can just mask the public IPs.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chutzpah@gentoo.org</who>
            <bug_when>2008-07-21 04:40:49 0000</bug_when>
            <thetext>net-dns/dnsmasq-2.45 is now in the portage tree</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-07-21 09:05:12 0000</bug_when>
            <thetext>Arches, please test and mark stable:
=net-dns/dnsmasq-2.45
Target keywords : &quot;alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chainsaw@gentoo.org</who>
            <bug_when>2008-07-21 11:43:49 0000</bug_when>
            <thetext>Stable AMD64 keyword for 2.45; tested on hardened Opteron 2218 and Core 2 Duo systems.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>corsair@gentoo.org</who>
            <bug_when>2008-07-21 16:38:43 0000</bug_when>
            <thetext>ppc64 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jer@gentoo.org</who>
            <bug_when>2008-07-21 18:54:16 0000</bug_when>
            <thetext>Stable for HPPA.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>bluebird@gentoo.org</who>
            <bug_when>2008-07-21 20:07:10 0000</bug_when>
            <thetext>sparc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-07-21 20:15:59 0000</bug_when>
            <thetext>alpha/ia64/x86 stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dertobi123@gentoo.org</who>
            <bug_when>2008-07-22 19:54:32 0000</bug_when>
            <thetext>ppc stable</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-07-24 02:23:54 0000</bug_when>
            <thetext>This issue looks similar to CVE-2008-3214, which was assigned to dnsmasq 2.25. A reproducer created by Jamie Strandboge [1] for that older version will also crash 2.43. Earlier versions are unaffected, and so is 2.44.

[1] http://thread.gmane.org/gmane.comp.security.oss.general/596/focus=635</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-07-24 02:24:08 0000</bug_when>
            <thetext>GLSA vote: YES</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zoltarx@o2.pl</who>
            <bug_when>2008-07-24 04:57:07 0000</bug_when>
            <thetext>I have the same problem on gentoo hardened, and following lines in /var/log/grsec.log 

Jul 23 16:18:16 agryf grsec: signal 11 sent to /usr/sbin/dnsmasq[dnsmasq:25473] uid/euid:65534/65534 gid/egid:65534/65534, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
Jul 24 05:12:15 agryf grsec: From 10.103.30.100: signal 11 sent to /usr/sbin/dnsmasq[dnsmasq:28201] uid/euid:65534/65534 gid/egid:65534/65534, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0

After moving to recent 2.45 version by simply renaming ebuild file :) problem seems to go away.

http://freshmeat.net/projects/dnsmasq/?branch_id=1991&amp;release_id=281597

Maybe 2.43 should be masked before 2.45 approval?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-07-24 11:17:07 0000</bug_when>
            <thetext>Filip, it does not need to be masked since a later stable version is available. You should &quot;emerge --sync&quot; and update to that. Marking of a vulnerable version will be done via a GLSA and your local tools.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-07-30 00:47:13 0000</bug_when>
            <thetext>CVE-2008-3350 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-3350):
  dnsmasq 2.43 allows remote attackers to cause a denial of service (daemon
  crash) by (1) sending a DHCPINFORM while lacking a DHCP lease, or (2)
  attempting to renew a nonexistent DHCP lease for an invalid subnet as an
  &quot;unknown client,&quot; a different vulnerability than CVE-2008-3214.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-08-03 21:52:49 0000</bug_when>
            <thetext>I&apos;ll take the lack of an answer as a YES and filed a request together with bug 231282.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rbu@gentoo.org</who>
            <bug_when>2008-09-04 20:12:40 0000</bug_when>
            <thetext>GLSA 200809-02</thetext>
          </long_desc>
      
    </bug>

</bugzilla>