From e66b2b84a498f4da17a300a1ee01262aeb09af35 Mon Sep 17 00:00:00 2001 From: Sona Sarmadi Date: Thu, 7 Apr 2016 12:24:20 +0200 Subject: bind: CVE-2015-8461 Fixes a race condition when handling socket errors can lead to an assertion failure in resolver.c Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-8461 Patch is backported from: http://git.yoctoproject.org/cgit/cgit.cgi/poky/patch /?id=12cdd6d2b3a6d351ea09799be38e6ddd4c041c17 Signed-off-by: Sona Sarmadi Signed-off-by: Tudor Florea --- .../bind/bind/CVE-2015-8461.patch | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 meta/recipes-connectivity/bind/bind/CVE-2015-8461.patch (limited to 'meta/recipes-connectivity/bind/bind/CVE-2015-8461.patch') diff --git a/meta/recipes-connectivity/bind/bind/CVE-2015-8461.patch b/meta/recipes-connectivity/bind/bind/CVE-2015-8461.patch new file mode 100644 index 0000000000..32eeeb1949 --- /dev/null +++ b/meta/recipes-connectivity/bind/bind/CVE-2015-8461.patch @@ -0,0 +1,45 @@ +From adbf81335b67be0cebdcf9f1f4fcb38ef4814f4d Mon Sep 17 00:00:00 2001 +From: Mark Andrews +Date: Thu, 25 Jun 2015 18:36:27 +1000 +Subject: [PATCH] 4146. [bug] Address reference leak that could + prevent a clean shutdown. [RT #37125] + +Upstream-Status: Backport + +https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commit;h=adbf81335b67be0cebdcf9f1f4fcb38ef4814f4d + +CVE: CVE-2015-8461 +Signed-off-by: Armin Kuster +--- + CHANGES | 3 +++ + lib/dns/resolver.c | 5 +++++ + 2 files changed, 8 insertions(+) + +Index: bind-9.9.5/lib/dns/resolver.c +=================================================================== +--- bind-9.9.5.orig/lib/dns/resolver.c ++++ bind-9.9.5/lib/dns/resolver.c +@@ -1570,6 +1570,11 @@ fctx_query(fetchctx_t *fctx, dns_adbaddr + if (query->dispatch != NULL) + dns_dispatch_detach(&query->dispatch); + ++ LOCK(&res->buckets[fctx->bucketnum].lock); ++ INSIST(fctx->references > 1); ++ fctx->references--; ++ UNLOCK(&res->buckets[fctx->bucketnum].lock); ++ + cleanup_query: + if (query->connects == 0) { + query->magic = 0; +Index: bind-9.9.5/CHANGES +=================================================================== +--- bind-9.9.5.orig/CHANGES ++++ bind-9.9.5/CHANGES +@@ -1,4 +1,7 @@ + --- 9.9.6-P2 released --- ++4146. [bug] Address reference leak that could prevent a clean ++ shutdown. [RT #37125] ++ + + 4053. [security] Revoking a managed trust anchor and supplying + an untrusted replacement could cause named -- cgit v1.2.3-54-g00ecf