From 0ff3df20f57ac50043641df84df5604c37fe8357 Mon Sep 17 00:00:00 2001 From: Sona Sarmadi Date: Wed, 27 Sep 2017 11:02:14 +0200 Subject: bind: CVE-2017-3135 Assertion failure when using DNS64 and RPZ Can Lead to Crash Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1420193 Signed-off-by: Sona Sarmadi Signed-off-by: Adrian Dudau --- recipes-connectivity/bind/bind/CVE-2017-3135.patch | 30 ++++++++++++++++++++++ recipes-connectivity/bind/bind_%.bbappend | 1 + 2 files changed, 31 insertions(+) create mode 100644 recipes-connectivity/bind/bind/CVE-2017-3135.patch (limited to 'recipes-connectivity') diff --git a/recipes-connectivity/bind/bind/CVE-2017-3135.patch b/recipes-connectivity/bind/bind/CVE-2017-3135.patch new file mode 100644 index 0000000..8cb2340 --- /dev/null +++ b/recipes-connectivity/bind/bind/CVE-2017-3135.patch @@ -0,0 +1,30 @@ +From 6106ed6841b253c78c6120be24c8722d6310a9b9 Mon Sep 17 00:00:00 2001 +From: Mark Andrews +Date: Tue, 31 Jan 2017 11:20:03 +1100 +Subject: [PATCH] add a REQUIRE to catch the NULL pointer dereference that + triggered CVE-2017-3135 + +CVE: CVE-2017-3135 +Upstream-Status: Backport [backport from remotes/origin/v9_10] + +(cherry picked from commit 1d8995d226d8bca96b8ba286316018be4b7835f2) +Signed-off-by: Sona Sarmadi +--- + lib/dns/rdataset.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/dns/rdataset.c b/lib/dns/rdataset.c +index 1870394..79bcecb 100644 +--- a/lib/dns/rdataset.c ++++ b/lib/dns/rdataset.c +@@ -338,6 +338,7 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, + */ + + REQUIRE(DNS_RDATASET_VALID(rdataset)); ++ REQUIRE(rdataset->methods != NULL); + REQUIRE(countp != NULL); + REQUIRE((order == NULL) == (order_arg == NULL)); + REQUIRE(cctx != NULL && cctx->mctx != NULL); +-- +1.9.1 + diff --git a/recipes-connectivity/bind/bind_%.bbappend b/recipes-connectivity/bind/bind_%.bbappend index 2e8ba00..5730d2f 100644 --- a/recipes-connectivity/bind/bind_%.bbappend +++ b/recipes-connectivity/bind/bind_%.bbappend @@ -2,4 +2,5 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" SRC_URI += "file://CVE-2016-9444.patch \ file://0001-fix-back-port-issue.patch \ + file://CVE-2017-3135.patch \ " -- cgit v1.2.3-54-g00ecf