Skip to contentSkip to conversation

bind: bug fix for CVE-2015-8704 CVE-2015-8705

PATCH New Zhang Xiao 1 participant 1 message Jan 22, 2016

lore
Share & tools
lore

Zhang Xiao

author
#0 lore raw

PATCH 1/1 bind: bug fix for CVE-2015-8704 CVE-2015-8705

CVE-2015-8704: Specific APL RR data could cause a server to exit due to an INSIST failure in apl_42.c when performing certain string formatting operations. All versions since 9.3.0 are affected.

CVE-2015-8704:Printing or logging some problem EDNS0 OPT pseudo-records or ECS options could crash named with a REQUIRE assertion or other misbehavior. This affects 9.10.0 and newer versions.

---
 .../bind/bind/bind-CVE-2015-8704.patch             | 43 +++++++++++
 .../bind/bind/bind-CVE-2015-8705.patch             | 83 ++++++++++++++++++++++
 meta/recipes-connectivity/bind/bind_9.10.3-P2.bb   |  2 +
 3 files changed, 128 insertions(+)
 create mode 100644 meta/recipes-connectivity/bind/bind/bind-CVE-2015-8704.patch
 create mode 100644 meta/recipes-connectivity/bind/bind/bind-CVE-2015-8705.patch
meta/recipes-connectivity/bind/bind/bind-CVE-2015-8704.patch new file +43 -0
new file mode 100644
index 0000000..26fca05
@@ -0,0 +1,43 @@
+From 690e895a5c66433803d5a36cafce83fc1775b022 Mon Sep 17 00:00:00 2001
+From: Mark Andrews <[email protected]>
+Date: Thu, 31 Dec 2015 13:43:21 +1100
+Subject: [PATCH 1/2] bind: bug fix for CVE-2015-8704
+
+commit 1b3d21180244529f0099894fe9d29beb3f11efb3 upstream
+https://source.isc.org/git/bind9.git
+
+4285. [security] Specific APL data could trigger a INSIST. (CVE-2015-8704) [RT #41396]
+
+Upstream Status: Backport
+CVE: CVE-2015-8704
+
+Signed-off-by: Zhang Xiao <[email protected]>
+---
+ lib/dns/rdata/in_1/apl_42.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/dns/rdata/in_1/apl_42.c b/lib/dns/rdata/in_1/apl_42.c
+index 94133ba..f2d58bc 100644
+--- a/lib/dns/rdata/in_1/apl_42.c
++++ b/lib/dns/rdata/in_1/apl_42.c
+@@ -116,7 +116,7 @@ totext_in_apl(ARGS_TOTEXT) {
+ 	isc_uint8_t len;
+ 	isc_boolean_t neg;
+ 	unsigned char buf[16];
+-	char txt[sizeof(" !64000")];
++	char txt[sizeof(" !64000:")];
+ 	const char *sep = "";
+ 	int n;
+ 
+@@ -140,7 +140,7 @@ totext_in_apl(ARGS_TOTEXT) {
+ 		isc_region_consume(&sr, 1);
+ 		INSIST(len <= sr.length);
+ 		n = snprintf(txt, sizeof(txt), "%s%s%u:", sep,
+-			     neg ? "!": "", afi);
++			     neg ? "!" : "", afi);
+ 		INSIST(n < (int)sizeof(txt));
+ 		RETERR(str_totext(txt, target));
+ 		switch (afi) {
+-- 
+1.9.1
+
meta/recipes-connectivity/bind/bind/bind-CVE-2015-8705.patch new file +83 -0

83 lines not on this page · raw message

meta/recipes-connectivity/bind/bind_9.10.3-P2.bb +2 -0
index 875a0c8..c38efed 100644
@@ -21,6 +21,8 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \
            file://bind-ensure-searching-for-json-headers-searches-sysr.patch \
            file://0001-gen.c-extend-DIRNAMESIZE-from-256-to-512.patch \
            file://0001-lib-dns-gen.c-fix-too-long-error.patch \
+           file://bind-CVE-2015-8704.patch \
+           file://bind-CVE-2015-8705.patch \
            "
 
 SRC_URI[md5sum] = "672dd3c2796b12ac8440f55bcaecfa82"
Signature · 1 line
1.8.5.2.233.g932f7e4