<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9400</bug_id>
          
          <creation_ts>2016-04-06 08:21:46 +0000</creation_ts>
          <short_desc>bind:  CVE-2016-1285, CVE-2016-1286 multiple CVEs</short_desc>
          <delta_ts>2016-04-18 10:01:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>2.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.1 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sona Sarmadi">sona.sarmadi</reporter>
          <assigned_to name="Sona Sarmadi">sona.sarmadi</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>60836</commentid>
    <comment_count>0</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2016-04-06 08:21:46 +0000</bug_when>
    <thetext>The following flaw found in BIND was reported by ISC:

An error when parsing signature records for DNAME records having specific properties can lead to named exiting due to an assertion failure in resolver.c or db.c.

An attacker able to cause a server to make a query deliberately chosen to generate a response containing a signature record which would exercise this vulnerability can cause named to stop execution with an assertion failure, resulting in denial of service to clients. Recursive resolvers are at the highest risk of vulnerability to this attack but authoritative-only servers may be also be vulnerable if the attacker can control the answers for records requested when the authoritative server is performing service on zones (e.g. a slave server doing SOA queries.) Servers may be affected even if they are not performing validation or have DNSSEC disabled entirely as long as they receive a response containing offending signature records. Disabling DNSSEC does not provide protection against this vulnerability.

External References:
https://kb.isc.org/article/AA-01353
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-1286

Upstream commits:

https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commitdiff;h=a3d327bf1ceaaeabb20223d8de85166e940b9f12
https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commitdiff;h=7602be276a73a6eb5431c5acd9718e68a55e8b61

Versions affected: 
9.0.0 -&gt; 9.8.8, 9.9.0 -&gt; 9.9.8-P3, 9.9.3-S1 -&gt; 9.9.8-S5,  9.10.0 -&gt; 9.10.3-P3
Severity: High
Exploitable: Remotely 

Affected Yocto branches:
Master: bind_9.10.3-P3.bb -&gt; affetced
Jethro: bind_9.10.2-P4 -&gt; affected
Fido &amp; dizzy:  bind_9.9.5.bb -&gt; affetced</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60958</commentid>
    <comment_count>1</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2016-04-08 05:31:44 +0000</bug_when>
    <thetext>Patch sent for fido:
http://patchwork.openembedded.org/patch/119859/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60959</commentid>
    <comment_count>2</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2016-04-08 06:30:31 +0000</bug_when>
    <thetext>Patch sent for dizzy:
http://patchwork.openembedded.org/patch/119865/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60960</commentid>
    <comment_count>3</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2016-04-08 06:33:40 +0000</bug_when>
    <thetext>How the patches have been tested:

Verify that the patches have been applied:

poky/build-dizzy-bind$ ls tmp/work/i586-poky-linux/bind/9.9.5-r0/
CVE-2015-1349.patch    CVE-2015-5722.patch    CVE-2016-1285.patch    CVE-2016-1286_2.patch
CVE-2015-4620.patch    CVE-2015-8000.patch    CVE-2016-1286_1.patch
fix-typo-in-CVE-2016-1285.patch

built &amp; boot qemu image on fido &amp; dizzy branches:
...

Poky (Yocto Project Reference Distro) 1.7.3 qemux86 /dev/ttyS0

qemux86 login: root
root@qemux86:~# uname -a
Linux qemux86 3.14.29ltsi-yocto-standard #1 SMP PREEMPT Fri Apr 8 07:52:20 CEST 2016 i686 GNU/Linux
root@qemux86:~#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61065</commentid>
    <comment_count>4</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2016-04-12 08:02:46 +0000</bug_when>
    <thetext>Patch sent for jethro:
http://patchwork.openembedded.org/patch/120089/

Test: build bind, core-image and booted qemu image:
Poky (Yocto Project Reference Distro) 2.0.1 qemux86 /dev/ttyS0

qemux86 login: root
root@qemux86:~# uname -a
Linux qemux86 4.1.17-yocto-standard #1 SMP PREEMPT Tue Apr 12 09:02:15 CEST 2016 i686 GNU/Linux
root@qemux86:~#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61074</commentid>
    <comment_count>5</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2016-04-12 10:16:05 +0000</bug_when>
    <thetext>Patch sent for master:
http://patchwork.openembedded.org/patch/120095/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61134</commentid>
    <comment_count>6</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2016-04-13 11:09:51 +0000</bug_when>
    <thetext>[Ross]: Far too late for upgrades in master, can you fix the CVEs as patches please?

[Sona]: New patch sent to the existing version in master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61246</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-04-14 16:52:26 +0000</bug_when>
    <thetext>Fixed in oe-core 080d1a313e4982dd05846b375ebf936c46934d80.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61323</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2016-04-18 10:01:42 +0000</bug_when>
    <thetext>Verified on master.
For the other branches I can&apos;t see the patch files.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>