diff options
author | Armin Kuster <akuster@mvista.com> | 2016-01-30 19:29:32 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-04 23:20:16 +0000 |
commit | 9fd23498427432133725603ee9e9e8f07b17c321 (patch) | |
tree | 0c38ca8fa5a391a28fcbc9ae792f0f288deb2bfe /meta/recipes-connectivity | |
parent | 5a40d9fb6907b10d12b3883beb6508ffdd0111c7 (diff) | |
download | poky-9fd23498427432133725603ee9e9e8f07b17c321.tar.gz |
bind: Security fix CVE-2015-8461
CVE-2015-8461 bind: race condition when handling socket errors can lead to an assertion failure in resolver.c\
(From OE-Core rev: 1656eaa722952861ec73362776bd0c4826aec3da)
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r-- | meta/recipes-connectivity/bind/bind/CVE-2015-8461.patch | 44 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind_9.10.2-P4.bb | 1 |
2 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..88e9c83421 --- /dev/null +++ b/meta/recipes-connectivity/bind/bind/CVE-2015-8461.patch | |||
@@ -0,0 +1,44 @@ | |||
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.10.2-P4/CHANGES | ||
19 | =================================================================== | ||
20 | --- bind-9.10.2-P4.orig/CHANGES | ||
21 | +++ bind-9.10.2-P4/CHANGES | ||
22 | @@ -1,3 +1,6 @@ | ||
23 | +4146. [bug] Address reference leak that could prevent a clean | ||
24 | + shutdown. [RT #37125] | ||
25 | + | ||
26 | 4260. [security] Insufficient testing when parsing a message allowed | ||
27 | records with an incorrect class to be be accepted, | ||
28 | triggering a REQUIRE failure when those records | ||
29 | Index: bind-9.10.2-P4/lib/dns/resolver.c | ||
30 | =================================================================== | ||
31 | --- bind-9.10.2-P4.orig/lib/dns/resolver.c | ||
32 | +++ bind-9.10.2-P4/lib/dns/resolver.c | ||
33 | @@ -1649,6 +1649,11 @@ fctx_query(fetchctx_t *fctx, dns_adbaddr | ||
34 | if (query->dispatch != NULL) | ||
35 | dns_dispatch_detach(&query->dispatch); | ||
36 | |||
37 | + LOCK(&res->buckets[fctx->bucketnum].lock); | ||
38 | + INSIST(fctx->references > 1); | ||
39 | + fctx->references--; | ||
40 | + UNLOCK(&res->buckets[fctx->bucketnum].lock); | ||
41 | + | ||
42 | cleanup_query: | ||
43 | if (query->connects == 0) { | ||
44 | query->magic = 0; | ||
diff --git a/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb b/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb index b22dbf3a1a..19f87d7934 100644 --- a/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb +++ b/meta/recipes-connectivity/bind/bind_9.10.2-P4.bb | |||
@@ -24,6 +24,7 @@ SRC_URI = "ftp://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \ | |||
24 | file://CVE-2015-8704.patch \ | 24 | file://CVE-2015-8704.patch \ |
25 | file://CVE-2015-8705.patch \ | 25 | file://CVE-2015-8705.patch \ |
26 | file://CVE-2015-8000.patch \ | 26 | file://CVE-2015-8000.patch \ |
27 | file://CVE-2015-8461.patch \ | ||
27 | " | 28 | " |
28 | 29 | ||
29 | SRC_URI[md5sum] = "8b1f5064837756c938eadc1537dec5c7" | 30 | SRC_URI[md5sum] = "8b1f5064837756c938eadc1537dec5c7" |