bind: fix CVE-2020-8625 (#675)

Co-authored-by: Nicolas Guibourge <nicolasg@microsoft.com>
This commit is contained in:
nicolas guibourge 2021-03-01 10:12:19 -08:00 committed by GitHub
parent 6eee32f12a
commit 44f672d00b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -urN bind-9.16.3-original/lib/dns/spnego.c bind-9.16.3/lib/dns/spnego.c
--- bind-9.16.3-original/lib/dns/spnego.c 2021-03-01 08:56:47.639826977 -0800
+++ bind-9.16.3/lib/dns/spnego.c 2021-03-01 08:58:57.223786168 -0800
@@ -842,7 +842,7 @@
return (ASN1_OVERRUN);
}
- data->components = malloc(len * sizeof(*data->components));
+ data->components = malloc((len + 1) * sizeof(*data->components));
if (data->components == NULL) {
return (ENOMEM);
}

View File

@ -1,7 +1,7 @@
Summary: Domain Name System software Summary: Domain Name System software
Name: bind Name: bind
Version: 9.16.3 Version: 9.16.3
Release: 2%{?dist} Release: 3%{?dist}
License: ISC License: ISC
URL: https://www.isc.org/downloads/bind/ URL: https://www.isc.org/downloads/bind/
Source0: https://ftp.isc.org/isc/bind9/%{version}/%{name}-%{version}.tar.xz Source0: https://ftp.isc.org/isc/bind9/%{version}/%{name}-%{version}.tar.xz
@ -15,6 +15,7 @@ Patch5: CVE-2020-8622.patch
# CVE-2020-8623 only impacts package built with "--enable-native-pkcs11" # CVE-2020-8623 only impacts package built with "--enable-native-pkcs11"
Patch6: CVE-2020-8623.nopatch Patch6: CVE-2020-8623.nopatch
Patch7: CVE-2020-8624.patch Patch7: CVE-2020-8624.patch
Patch8: CVE-2020-8625.patch
Group: Development/Tools Group: Development/Tools
Vendor: Microsoft Corporation Vendor: Microsoft Corporation
Distribution: Mariner Distribution: Mariner
@ -93,6 +94,8 @@ fi
%{_prefix}/lib/tmpfiles.d/named.conf %{_prefix}/lib/tmpfiles.d/named.conf
%changelog %changelog
* Mon Mar 01 2021 Nicolas Guibourge <nicolasg@microsoft.com> - 9.16.3-3
- Fixes CVE-2020-8625
* Fri Sep 11 2020 Ruying Chen <v-ruyche@microsoft.com> - 9.16.3-2 * Fri Sep 11 2020 Ruying Chen <v-ruyche@microsoft.com> - 9.16.3-2
- Fixes CVE-2020-8618, CVE-2020-8619, CVE-2020-8620, - Fixes CVE-2020-8618, CVE-2020-8619, CVE-2020-8620,
- CVE-2020-8621, CVE-2020-8622, CVE-2020-8623, CVE-2020-8624 - CVE-2020-8621, CVE-2020-8622, CVE-2020-8623, CVE-2020-8624