diff options
Diffstat (limited to 'meta/recipes-connectivity/bind/bind')
-rw-r--r-- | meta/recipes-connectivity/bind/bind/CVE-2015-8461.patch | 45 |
1 files changed, 45 insertions, 0 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 | ||