summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/bind/bind/CVE-2020-8625.patch
diff options
context:
space:
mode:
authorMinjae Kim <flowergom@gmail.com>2021-03-02 07:50:12 +0900
committerSteve Sakoman <steve@sakoman.com>2021-03-05 04:40:00 -1000
commitdcce323a1b651a875da8e51f02f015de442d7d49 (patch)
treee5c87448cd0a40017b69863db573702a082e1a1b /meta/recipes-connectivity/bind/bind/CVE-2020-8625.patch
parent1927fb88bf484fe90b37367c3c63db2b88185bcc (diff)
downloadopenembedded-core-contrib-dcce323a1b651a875da8e51f02f015de442d7d49.tar.gz
bind: fix CVE-2020-8625
BIND Operational Notification: Zone journal (.jnl) file incompatibility Upstream-Status: Backporting [https://downloads.isc.org/isc/bind9/9.16.12/patches/CVE-2020-8625.patch] CVE: CVE-2020-8625 Signed-off-by: Minjae Kim <flowergom@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-connectivity/bind/bind/CVE-2020-8625.patch')
-rw-r--r--meta/recipes-connectivity/bind/bind/CVE-2020-8625.patch17
1 files changed, 17 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 @@
+Upstream-Status: Backporting [https://downloads.isc.org/isc/bind9/9.16.12/patches/CVE-2020-8625.patch]
+CVE: CVE-2020-8625
+Signed-off-by: Minjae Kim <flowergom@gmail.com>
+
+diff --git a/lib/dns/spnego.c b/lib/dns/spnego.c
+index e61d1c600f2..753dc8049fa 100644
+--- a/lib/dns/spnego.c
++++ b/lib/dns/spnego.c
+@@ -848,7 +848,7 @@ der_get_oid(const unsigned char *p, size_t len, oid *data, size_t *size) {
+ return (ASN1_OVERRUN);
+ }
+
+- data->components = malloc(len * sizeof(*data->components));
++ data->components = malloc((len + 1) * sizeof(*data->components));
+ if (data->components == NULL) {
+ return (ENOMEM);
+ }