diff options
-rw-r--r-- | meta/recipes-connectivity/bind/bind/CVE-2015-8461.patch | 45 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind_9.9.5.bb | 3 |
2 files changed, 47 insertions, 1 deletions
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 @@ | |||
1 | From adbf81335b67be0cebdcf9f1f4fcb38ef4814f4d Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Andrews <marka@isc.org> | ||
3 | Date: Thu, 25 Jun 2015 18:36:27 +1000 | ||
4 | Subject: [PATCH] 4146. [bug] Address reference leak that could | ||
5 | prevent a clean shutdown. [RT #37125] | ||
6 | |||
7 | Upstream-Status: Backport | ||
8 | |||
9 | https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commit;h=adbf81335b67be0cebdcf9f1f4fcb38ef4814f4d | ||
10 | |||
11 | CVE: CVE-2015-8461 | ||
12 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
13 | --- | ||
14 | CHANGES | 3 +++ | ||
15 | lib/dns/resolver.c | 5 +++++ | ||
16 | 2 files changed, 8 insertions(+) | ||
17 | |||
18 | Index: bind-9.9.5/lib/dns/resolver.c | ||
19 | =================================================================== | ||
20 | --- bind-9.9.5.orig/lib/dns/resolver.c | ||
21 | +++ bind-9.9.5/lib/dns/resolver.c | ||
22 | @@ -1570,6 +1570,11 @@ fctx_query(fetchctx_t *fctx, dns_adbaddr | ||
23 | if (query->dispatch != NULL) | ||
24 | dns_dispatch_detach(&query->dispatch); | ||
25 | |||
26 | + LOCK(&res->buckets[fctx->bucketnum].lock); | ||
27 | + INSIST(fctx->references > 1); | ||
28 | + fctx->references--; | ||
29 | + UNLOCK(&res->buckets[fctx->bucketnum].lock); | ||
30 | + | ||
31 | cleanup_query: | ||
32 | if (query->connects == 0) { | ||
33 | query->magic = 0; | ||
34 | Index: bind-9.9.5/CHANGES | ||
35 | =================================================================== | ||
36 | --- bind-9.9.5.orig/CHANGES | ||
37 | +++ bind-9.9.5/CHANGES | ||
38 | @@ -1,4 +1,7 @@ | ||
39 | --- 9.9.6-P2 released --- | ||
40 | +4146. [bug] Address reference leak that could prevent a clean | ||
41 | + shutdown. [RT #37125] | ||
42 | + | ||
43 | |||
44 | 4053. [security] Revoking a managed trust anchor and supplying | ||
45 | an untrusted replacement could cause named | ||
diff --git a/meta/recipes-connectivity/bind/bind_9.9.5.bb b/meta/recipes-connectivity/bind/bind_9.9.5.bb index a904d6ebbe..7ba0d2be3c 100644 --- a/meta/recipes-connectivity/bind/bind_9.9.5.bb +++ b/meta/recipes-connectivity/bind/bind_9.9.5.bb | |||
@@ -27,7 +27,8 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \ | |||
27 | file://CVE-2015-5722.patch \ | 27 | file://CVE-2015-5722.patch \ |
28 | file://CVE-2015-8000.patch \ | 28 | file://CVE-2015-8000.patch \ |
29 | file://CVE-2015-8704.patch \ | 29 | file://CVE-2015-8704.patch \ |
30 | " | 30 | file://CVE-2015-8461.patch \ |
31 | " | ||
31 | 32 | ||
32 | SRC_URI[md5sum] = "e676c65cad5234617ee22f48e328c24e" | 33 | SRC_URI[md5sum] = "e676c65cad5234617ee22f48e328c24e" |
33 | SRC_URI[sha256sum] = "d4b64c1dde442145a316679acff2df4008aa117ae52dfa3a6bc69efecc7840d1" | 34 | SRC_URI[sha256sum] = "d4b64c1dde442145a316679acff2df4008aa117ae52dfa3a6bc69efecc7840d1" |