From 06d1e61f8678134f0a7306b40dd6aa755b055d00 Mon Sep 17 00:00:00 2001 From: Sven Wegener Date: Thu, 18 Dec 2014 21:06:24 +0000 Subject: Revision bump for 3.6.1 with patch for security bug #531992. (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x64D4CF24) --- net-dns/pdns-recursor/ChangeLog | 9 +++- .../files/pdns-recursor-3.6.1-CVE-2014-8601.patch | 52 +++++++++++++++++++ .../pdns-recursor/pdns-recursor-3.6.1-r1.ebuild | 59 ++++++++++++++++++++++ 3 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 net-dns/pdns-recursor/files/pdns-recursor-3.6.1-CVE-2014-8601.patch create mode 100644 net-dns/pdns-recursor/pdns-recursor-3.6.1-r1.ebuild (limited to 'net-dns') diff --git a/net-dns/pdns-recursor/ChangeLog b/net-dns/pdns-recursor/ChangeLog index c278e3631faf..a0265e56b259 100644 --- a/net-dns/pdns-recursor/ChangeLog +++ b/net-dns/pdns-recursor/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-dns/pdns-recursor # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns-recursor/ChangeLog,v 1.51 2014/12/09 20:01:31 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/pdns-recursor/ChangeLog,v 1.52 2014/12/18 21:06:24 swegener Exp $ + +*pdns-recursor-3.6.1-r1 (18 Dec 2014) + + 18 Dec 2014; Sven Wegener + +pdns-recursor-3.6.1-r1.ebuild, + +files/pdns-recursor-3.6.1-CVE-2014-8601.patch: + Revision bump for 3.6.1 with patch for security bug #531992. *pdns-recursor-3.6.2 (09 Dec 2014) diff --git a/net-dns/pdns-recursor/files/pdns-recursor-3.6.1-CVE-2014-8601.patch b/net-dns/pdns-recursor/files/pdns-recursor-3.6.1-CVE-2014-8601.patch new file mode 100644 index 000000000000..44ccc2803848 --- /dev/null +++ b/net-dns/pdns-recursor/files/pdns-recursor-3.6.1-CVE-2014-8601.patch @@ -0,0 +1,52 @@ +https://downloads.powerdns.com/patches/2014-02/3.6.1.patch + +diff --git a/pdns_recursor.cc b/pdns_recursor.cc +index f1ef93c..8e43d6e 100644 +--- a/pdns_recursor.cc ++++ b/pdns_recursor.cc +@@ -550,7 +550,14 @@ void startDoResolve(void *p) + + // if there is a RecursorLua active, and it 'took' the query in preResolve, we don't launch beginResolve + if(!t_pdl->get() || !(*t_pdl)->preresolve(dc->d_remote, g_listenSocketsAddresses[dc->d_socket], dc->d_mdp.d_qname, QType(dc->d_mdp.d_qtype), ret, res, &variableAnswer)) { +- res = sr.beginResolve(dc->d_mdp.d_qname, QType(dc->d_mdp.d_qtype), dc->d_mdp.d_qclass, ret); ++ try { ++ res = sr.beginResolve(dc->d_mdp.d_qname, QType(dc->d_mdp.d_qtype), dc->d_mdp.d_qclass, ret); ++ } ++ catch(ImmediateServFailException &e) { ++ L<d_mdp.d_qname<<"' because: "<get()) { + if(res == RCode::NoError) { +diff --git a/syncres.cc b/syncres.cc +index 4dc78b4..d09e44b 100644 +--- a/syncres.cc ++++ b/syncres.cc +@@ -923,6 +923,7 @@ int SyncRes::doResolveAt(set nameservers, string auth, + } + else { + s_outqueries++; d_outqueries++; ++ if(d_outqueries > 50) throw ImmediateServFailException("more than 50 queries sent while resolving "+qname); + TryTCP: + if(doTCP) { + LOG(prefix<toStringWithPort() <