diff options
-rw-r--r-- | meta/recipes-connectivity/bind/bind/CVE-2020-8625.patch | 17 | ||||
-rw-r--r-- | meta/recipes-connectivity/bind/bind_9.11.22.bb | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bind/bind/CVE-2020-8625.patch b/meta/recipes-connectivity/bind/bind/CVE-2020-8625.patch new file mode 100644 index 0000000000..9078f2448e --- /dev/null +++ b/meta/recipes-connectivity/bind/bind/CVE-2020-8625.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Upstream-Status: Backporting [https://downloads.isc.org/isc/bind9/9.16.12/patches/CVE-2020-8625.patch] | ||
2 | CVE: CVE-2020-8625 | ||
3 | Signed-off-by: Minjae Kim <flowergom@gmail.com> | ||
4 | |||
5 | diff --git a/lib/dns/spnego.c b/lib/dns/spnego.c | ||
6 | index e61d1c600f2..753dc8049fa 100644 | ||
7 | --- a/lib/dns/spnego.c | ||
8 | +++ b/lib/dns/spnego.c | ||
9 | @@ -848,7 +848,7 @@ der_get_oid(const unsigned char *p, size_t len, oid *data, size_t *size) { | ||
10 | return (ASN1_OVERRUN); | ||
11 | } | ||
12 | |||
13 | - data->components = malloc(len * sizeof(*data->components)); | ||
14 | + data->components = malloc((len + 1) * sizeof(*data->components)); | ||
15 | if (data->components == NULL) { | ||
16 | return (ENOMEM); | ||
17 | } | ||
diff --git a/meta/recipes-connectivity/bind/bind_9.11.22.bb b/meta/recipes-connectivity/bind/bind_9.11.22.bb index 3b4a299b36..e3b9cacc15 100644 --- a/meta/recipes-connectivity/bind/bind_9.11.22.bb +++ b/meta/recipes-connectivity/bind/bind_9.11.22.bb | |||
@@ -18,6 +18,7 @@ SRC_URI = "https://ftp.isc.org/isc/bind9/${PV}/${BPN}-${PV}.tar.gz \ | |||
18 | file://0001-configure.in-remove-useless-L-use_openssl-lib.patch \ | 18 | file://0001-configure.in-remove-useless-L-use_openssl-lib.patch \ |
19 | file://0001-named-lwresd-V-and-start-log-hide-build-options.patch \ | 19 | file://0001-named-lwresd-V-and-start-log-hide-build-options.patch \ |
20 | file://0001-avoid-start-failure-with-bind-user.patch \ | 20 | file://0001-avoid-start-failure-with-bind-user.patch \ |
21 | file://CVE-2020-8625.patch \ | ||
21 | " | 22 | " |
22 | 23 | ||
23 | SRC_URI[sha256sum] = "afc6d8015006f1cabf699ff19f517bb8fd9c1811e5231f26baf51c3550262ac9" | 24 | SRC_URI[sha256sum] = "afc6d8015006f1cabf699ff19f517bb8fd9c1811e5231f26baf51c3550262ac9" |