summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bind/bind-9.16.7/CVE-2020-8625.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/bind/bind-9.16.7/CVE-2020-8625.patch')
-rw-r--r--meta/recipes-connectivity/bind/bind-9.16.7/CVE-2020-8625.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/bind/bind-9.16.7/CVE-2020-8625.patch b/meta/recipes-connectivity/bind/bind-9.16.7/CVE-2020-8625.patch
new file mode 100644
index 0000000000..98b8623139
--- /dev/null
+++ b/meta/recipes-connectivity/bind/bind-9.16.7/CVE-2020-8625.patch
@@ -0,0 +1,29 @@
1From 5b671538216af78a0a7ef7464dc52ab2241ea7db Mon Sep 17 00:00:00 2001
2From: Minjae Kim <flowergom@gmail.com>
3Date: Tue, 2 Mar 2021 14:03:49 +0000
4Subject: [PATCH] BIND Operational Notification: Zone journal (.jnl) file
5 incompatibility
6
7Upstream-Status: Backport [https://downloads.isc.org/isc/bind9/9.16.12/patches/CVE-2020-8625.patch]
8CVE: CVE-2020-8625
9Signed-off-by: Minjae Kim <flowergom@gmail.com>
10---
11 lib/dns/spnego.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/lib/dns/spnego.c b/lib/dns/spnego.c
15index 671838c..82fd49a 100644
16--- a/lib/dns/spnego.c
17+++ b/lib/dns/spnego.c
18@@ -846,7 +846,7 @@ der_get_oid(const unsigned char *p, size_t len, oid *data, size_t *size) {
19 return (ASN1_OVERRUN);
20 }
21
22- data->components = malloc(len * sizeof(*data->components));
23+ data->components = malloc((len + 1) * sizeof(*data->components));
24 if (data->components == NULL) {
25 return (ENOMEM);
26 }
27--
282.17.1
29