Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/bind/dist security patch for bind from ISC (to ...
details: https://anonhg.NetBSD.org/src/rev/29782df9ff8c
branches: trunk
changeset: 806396:29782df9ff8c
user: spz <spz%NetBSD.org@localhost>
date: Sat Feb 21 20:19:22 2015 +0000
description:
security patch for bind from ISC (to 9.10.1-P2).
Only the change to lib/dns/zone.c is security relevant
Upstream changelog:
--- 9.10.1-P2 released ---
4053. [security] Revoking a managed trust anchor and supplying
an untrusted replacement could cause named
to crash with an assertion failure.
(CVE-2015-1349) [RT #38344]
4027. [port] Net::DNS 0.81 compatibility. [RT #38165]
diffstat:
external/bsd/bind/dist/CHANGES | 9 +
external/bsd/bind/dist/README | 10 +
external/bsd/bind/dist/bin/tests/system/ans.pl | 14 +-
external/bsd/bind/dist/doc/arm/Bv9ARM.ch04.html | 110 +++---
external/bsd/bind/dist/doc/arm/Bv9ARM.ch06.html | 89 ++--
external/bsd/bind/dist/doc/arm/Bv9ARM.ch07.html | 12 +-
external/bsd/bind/dist/doc/arm/Bv9ARM.ch08.html | 16 +-
external/bsd/bind/dist/doc/arm/Bv9ARM.ch09.html | 218 ++++++------
external/bsd/bind/dist/doc/arm/Bv9ARM.html | 104 ++--
external/bsd/bind/dist/doc/arm/man.arpaname.html | 6 +-
external/bsd/bind/dist/doc/arm/man.ddns-confgen.html | 8 +-
external/bsd/bind/dist/doc/arm/man.delv.html | 12 +-
external/bsd/bind/dist/doc/arm/man.dig.html | 18 +-
external/bsd/bind/dist/doc/arm/man.dnssec-checkds.html | 8 +-
external/bsd/bind/dist/doc/arm/man.dnssec-coverage.html | 8 +-
external/bsd/bind/dist/doc/arm/man.dnssec-dsfromkey.html | 14 +-
external/bsd/bind/dist/doc/arm/man.dnssec-importkey.html | 12 +-
external/bsd/bind/dist/doc/arm/man.dnssec-keyfromlabel.html | 12 +-
external/bsd/bind/dist/doc/arm/man.dnssec-keygen.html | 14 +-
external/bsd/bind/dist/doc/arm/man.dnssec-revoke.html | 8 +-
external/bsd/bind/dist/doc/arm/man.dnssec-settime.html | 12 +-
external/bsd/bind/dist/doc/arm/man.dnssec-signzone.html | 10 +-
external/bsd/bind/dist/doc/arm/man.dnssec-verify.html | 8 +-
external/bsd/bind/dist/doc/arm/man.genrandom.html | 8 +-
external/bsd/bind/dist/doc/arm/man.host.html | 8 +-
external/bsd/bind/dist/doc/arm/man.isc-hmac-fixup.html | 8 +-
external/bsd/bind/dist/doc/arm/man.named-checkconf.html | 10 +-
external/bsd/bind/dist/doc/arm/man.named-checkzone.html | 10 +-
external/bsd/bind/dist/doc/arm/man.named-journalprint.html | 6 +-
external/bsd/bind/dist/doc/arm/man.named-rrchecker.html | 4 +-
external/bsd/bind/dist/doc/arm/man.named.html | 14 +-
external/bsd/bind/dist/doc/arm/man.nsec3hash.html | 8 +-
external/bsd/bind/dist/doc/arm/man.nsupdate.html | 12 +-
external/bsd/bind/dist/doc/arm/man.rndc-confgen.html | 10 +-
external/bsd/bind/dist/doc/arm/man.rndc.conf.html | 10 +-
external/bsd/bind/dist/doc/arm/man.rndc.html | 12 +-
external/bsd/bind/dist/lib/dns/api | 2 +-
external/bsd/bind/dist/lib/dns/tests/geoip_test.c | 26 +-
external/bsd/bind/dist/lib/dns/zone.c | 10 +-
external/bsd/bind/dist/srcid | 2 +-
external/bsd/bind/dist/version | 2 +-
41 files changed, 466 insertions(+), 428 deletions(-)
diffs (truncated from 3081 to 300 lines):
diff -r 909df1cc04cf -r 29782df9ff8c external/bsd/bind/dist/CHANGES
--- a/external/bsd/bind/dist/CHANGES Sat Feb 21 17:17:16 2015 +0000
+++ b/external/bsd/bind/dist/CHANGES Sat Feb 21 20:19:22 2015 +0000
@@ -1,3 +1,12 @@
+ --- 9.10.1-P2 released ---
+
+4053. [security] Revoking a managed trust anchor and supplying
+ an untrusted replacement could cause named
+ to crash with an assertion failure.
+ (CVE-2015-1349) [RT #38344]
+
+4027. [port] Net::DNS 0.81 compatibility. [RT #38165]
+
--- 9.10.1-P1 released ---
4006. [security] A flaw in delegation handling could be exploited
diff -r 909df1cc04cf -r 29782df9ff8c external/bsd/bind/dist/README
--- a/external/bsd/bind/dist/README Sat Feb 21 17:17:16 2015 +0000
+++ b/external/bsd/bind/dist/README Sat Feb 21 20:19:22 2015 +0000
@@ -51,6 +51,16 @@
For up-to-date release notes and errata, see
http://www.isc.org/software/bind9/releasenotes
+BIND 9.10.1-P2
+
+ BIND 9.10.1-P2 is a security release and addresses the
+ security flaw described in CVE-2015-1349.
+
+BIND 9.10.1-P1
+
+ BIND 9.10.1-P1 is a security release and addresses the
+ security flaws described in CVE-2014-8500 and CVE-2014-8680.
+
BIND 9.10.1
BIND 9.10.1 is a maintenance release and addresses bugs
diff -r 909df1cc04cf -r 29782df9ff8c external/bsd/bind/dist/bin/tests/system/ans.pl
--- a/external/bsd/bind/dist/bin/tests/system/ans.pl Sat Feb 21 17:17:16 2015 +0000
+++ b/external/bsd/bind/dist/bin/tests/system/ans.pl Sat Feb 21 20:19:22 2015 +0000
@@ -327,6 +327,8 @@
my $qclass = $questions[0]->qclass;
my $id = $request->header->id;
+ my $opaque;
+
my $packet = new Net::DNS::Packet($qname, $qtype, $qclass);
$packet->header->qr(1);
$packet->header->aa(1);
@@ -336,11 +338,13 @@
my $prev_tsig;
my $signer;
my $continuation = 0;
+ if ($Net::DNS::VERSION < 0.81) {
while (my $rr = $request->pop("additional")) {
if ($rr->type eq "TSIG") {
$prev_tsig = $rr;
}
}
+ }
my @results = ();
my $count_these = 0;
@@ -365,6 +369,8 @@
if ($Net::DNS::VERSION < 0.69) {
$tsig = Net::DNS::RR->new(
"$key_name TSIG $key_data");
+ } elsif ($Net::DNS::VERSION >= 0.81 &&
+ $continuation) {
} elsif ($Net::DNS::VERSION >= 0.75 &&
$continuation) {
$tsig = $prev_tsig;
@@ -394,7 +400,7 @@
$prev_tsig->mac);
$tsig->{"request_mac"} =
unpack("H*", $rmac);
- } else {
+ } elsif ($Net::DNS::VERSION < 0.81) {
$tsig->request_mac(
$prev_tsig->mac);
}
@@ -404,7 +410,13 @@
$tsig->continuation($continuation) if
($Net::DNS::VERSION >= 0.71 &&
$Net::DNS::VERSION <= 0.74 );
+ if ($Net::DNS::VERSION < 0.81) {
$packet->sign_tsig($tsig);
+ } elsif ($continuation) {
+ $opaque = $packet->sign_tsig($opaque);
+ } else {
+ $opaque = $packet->sign_tsig($request);
+ }
$signer = \&sign_tcp_continuation
if ($Net::DNS::VERSION < 0.70);
$continuation = 1;
diff -r 909df1cc04cf -r 29782df9ff8c external/bsd/bind/dist/doc/arm/Bv9ARM.ch04.html
--- a/external/bsd/bind/dist/doc/arm/Bv9ARM.ch04.html Sat Feb 21 17:17:16 2015 +0000
+++ b/external/bsd/bind/dist/doc/arm/Bv9ARM.ch04.html Sat Feb 21 20:19:22 2015 +0000
@@ -70,39 +70,39 @@
</dl></dd>
<dt><span class="sect1"><a href="Bv9ARM.ch04.html#dnssec.dynamic.zones">DNSSEC, Dynamic Zones, and Automatic Signing</a></span></dt>
<dd><dl>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2610980">Converting from insecure to secure</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563640">Dynamic DNS update method</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563676">Fully automatic zone signing</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563780">Private-type records</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563817">DNSKEY rollovers</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563966">Dynamic DNS update method</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2564000">Automatic key rollovers</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2564026">NSEC3PARAM rollovers via UPDATE</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2580625">Converting from NSEC to NSEC3</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2580634">Converting from NSEC3 to NSEC</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2580647">Converting from secure to insecure</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2580684">Periodic re-signing</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2580694">NSEC3 and OPTOUT</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2610986">Converting from insecure to secure</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563646">Dynamic DNS update method</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563683">Fully automatic zone signing</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563923">Private-type records</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2564028">DNSKEY rollovers</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2564041">Dynamic DNS update method</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2564074">Automatic key rollovers</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2589360">NSEC3PARAM rollovers via UPDATE</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2589369">Converting from NSEC to NSEC3</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2589379">Converting from NSEC3 to NSEC</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2589392">Converting from secure to insecure</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2589429">Periodic re-signing</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2589438">NSEC3 and OPTOUT</a></span></dt>
</dl></dd>
<dt><span class="sect1"><a href="Bv9ARM.ch04.html#rfc5011.support">Dynamic Trust Anchor Management</a></span></dt>
<dd><dl>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2611515">Validating Resolver</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2611538">Authoritative Server</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2610907">Validating Resolver</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2610520">Authoritative Server</a></span></dt>
</dl></dd>
<dt><span class="sect1"><a href="Bv9ARM.ch04.html#pkcs11">PKCS#11 (Cryptoki) support</a></span></dt>
<dd><dl>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2665906">Prerequisites</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2665915">Native PKCS#11</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2611246">OpenSSL-based PKCS#11</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638356">PKCS#11 Tools</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638392">Using the HSM</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638678">Specifying the engine on the command line</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638931">Running named with automatic zone re-signing</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2665912">Prerequisites</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2665922">Native PKCS#11</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2611253">OpenSSL-based PKCS#11</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638362">PKCS#11 Tools</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638398">Using the HSM</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638753">Specifying the engine on the command line</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638869">Running named with automatic zone re-signing</a></span></dt>
</dl></dd>
<dt><span class="sect1"><a href="Bv9ARM.ch04.html#dlz-info">DLZ (Dynamically Loadable Zones)</a></span></dt>
<dd><dl>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638995">Configuring DLZ</a></span></dt>
-<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2610738">Sample DLZ Driver</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2638933">Configuring DLZ</a></span></dt>
+<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2610812">Sample DLZ Driver</a></span></dt>
</dl></dd>
<dt><span class="sect1"><a href="Bv9ARM.ch04.html#id2571588">IPv6 Support in <acronym class="acronym">BIND</acronym> 9</a></span></dt>
<dd><dl>
@@ -1080,7 +1080,7 @@
from insecure to signed and back again. A secure zone can use
either NSEC or NSEC3 chains.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2610980"></a>Converting from insecure to secure</h3></div></div></div></div>
+<a name="id2610986"></a>Converting from insecure to secure</h3></div></div></div></div>
<p>Changing a zone from insecure to secure can be done in two
ways: using a dynamic DNS update, or the
<span><strong class="command">auto-dnssec</strong></span> zone option.</p>
@@ -1106,7 +1106,7 @@
well. An NSEC chain will be generated as part of the initial
signing process.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2563640"></a>Dynamic DNS update method</h3></div></div></div></div>
+<a name="id2563646"></a>Dynamic DNS update method</h3></div></div></div></div>
<p>To insert the keys via dynamic update:</p>
<pre class="screen">
% nsupdate
@@ -1142,7 +1142,7 @@
<p>While the initial signing and NSEC/NSEC3 chain generation
is happening, other updates are possible as well.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2563676"></a>Fully automatic zone signing</h3></div></div></div></div>
+<a name="id2563683"></a>Fully automatic zone signing</h3></div></div></div></div>
<p>To enable automatic signing, add the
<span><strong class="command">auto-dnssec</strong></span> option to the zone statement in
<code class="filename">named.conf</code>.
@@ -1198,7 +1198,7 @@
configuration. If this has not been done, the configuration will
fail.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2563780"></a>Private-type records</h3></div></div></div></div>
+<a name="id2563923"></a>Private-type records</h3></div></div></div></div>
<p>The state of the signing process is signaled by
private-type records (with a default type value of 65534). When
signing is complete, these records will have a nonzero value for
@@ -1239,12 +1239,12 @@
<p>
</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2563817"></a>DNSKEY rollovers</h3></div></div></div></div>
+<a name="id2564028"></a>DNSKEY rollovers</h3></div></div></div></div>
<p>As with insecure-to-secure conversions, rolling DNSSEC
keys can be done in two ways: using a dynamic DNS update, or the
<span><strong class="command">auto-dnssec</strong></span> zone option.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2563966"></a>Dynamic DNS update method</h3></div></div></div></div>
+<a name="id2564041"></a>Dynamic DNS update method</h3></div></div></div></div>
<p> To perform key rollovers via dynamic update, you need to add
the <code class="filename">K*</code> files for the new keys so that
<span><strong class="command">named</strong></span> can find them. You can then add the new
@@ -1266,7 +1266,7 @@
<span><strong class="command">named</strong></span> will clean out any signatures generated
by the old key after the update completes.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2564000"></a>Automatic key rollovers</h3></div></div></div></div>
+<a name="id2564074"></a>Automatic key rollovers</h3></div></div></div></div>
<p>When a new key reaches its activation date (as set by
<span><strong class="command">dnssec-keygen</strong></span> or <span><strong class="command">dnssec-settime</strong></span>),
if the <span><strong class="command">auto-dnssec</strong></span> zone option is set to
@@ -1281,27 +1281,27 @@
completes in 30 days, after which it will be safe to remove the
old key from the DNSKEY RRset.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2564026"></a>NSEC3PARAM rollovers via UPDATE</h3></div></div></div></div>
+<a name="id2589360"></a>NSEC3PARAM rollovers via UPDATE</h3></div></div></div></div>
<p>Add the new NSEC3PARAM record via dynamic update. When the
new NSEC3 chain has been generated, the NSEC3PARAM flag field
will be zero. At this point you can remove the old NSEC3PARAM
record. The old chain will be removed after the update request
completes.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2580625"></a>Converting from NSEC to NSEC3</h3></div></div></div></div>
+<a name="id2589369"></a>Converting from NSEC to NSEC3</h3></div></div></div></div>
<p>To do this, you just need to add an NSEC3PARAM record. When
the conversion is complete, the NSEC chain will have been removed
and the NSEC3PARAM record will have a zero flag field. The NSEC3
chain will be generated before the NSEC chain is
destroyed.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2580634"></a>Converting from NSEC3 to NSEC</h3></div></div></div></div>
+<a name="id2589379"></a>Converting from NSEC3 to NSEC</h3></div></div></div></div>
<p>To do this, use <span><strong class="command">nsupdate</strong></span> to
remove all NSEC3PARAM records with a zero flag
field. The NSEC chain will be generated before the NSEC3 chain is
removed.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2580647"></a>Converting from secure to insecure</h3></div></div></div></div>
+<a name="id2589392"></a>Converting from secure to insecure</h3></div></div></div></div>
<p>To convert a signed zone to unsigned using dynamic DNS,
delete all the DNSKEY records from the zone apex using
<span><strong class="command">nsupdate</strong></span>. All signatures, NSEC or NSEC3 chains,
@@ -1316,14 +1316,14 @@
<span><strong class="command">allow</strong></span> instead (or it will re-sign).
</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2580684"></a>Periodic re-signing</h3></div></div></div></div>
+<a name="id2589429"></a>Periodic re-signing</h3></div></div></div></div>
<p>In any secure zone which supports dynamic updates, named
will periodically re-sign RRsets which have not been re-signed as
a result of some update action. The signature lifetimes will be
adjusted so as to spread the re-sign load over time rather than
all at once.</p>
<div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title">
-<a name="id2580694"></a>NSEC3 and OPTOUT</h3></div></div></div></div>
+<a name="id2589438"></a>NSEC3 and OPTOUT</h3></div></div></div></div>
<p>
<span><strong class="command">named</strong></span> only supports creating new NSEC3 chains
where all the NSEC3 records in the zone have the same OPTOUT
@@ -1345,7 +1345,7 @@
configuration files.</p>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="id2611515"></a>Validating Resolver</h3></div></div></div>
+<a name="id2610907"></a>Validating Resolver</h3></div></div></div>
<p>To configure a validating resolver to use RFC 5011 to
maintain a trust anchor, configure the trust anchor using a
<span><strong class="command">managed-keys</strong></span> statement. Information about
@@ -1356,7 +1356,7 @@
</div>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="id2611538"></a>Authoritative Server</h3></div></div></div>
+<a name="id2610520"></a>Authoritative Server</h3></div></div></div>
<p>To set up an authoritative zone for RFC 5011 trust anchor
maintenance, generate two (or more) key signing keys (KSKs) for
the zone. Sign the zone with one of them; this is the "active"
@@ -1452,7 +1452,7 @@
</p>
<div class="sect2" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="id2665906"></a>Prerequisites</h3></div></div></div>
+<a name="id2665912"></a>Prerequisites</h3></div></div></div>
<p>
See the documentation provided by your HSM vendor for
information about installing, initializing, testing and
@@ -1461,7 +1461,7 @@
</div>
<div class="sect2" lang="en">
Home |
Main Index |
Thread Index |
Old Index