blob: 1e036c8cf47859f7a1b2e75eaf43d981cafa93bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From: Debian DNS Team <team+dns@tracker.debian.org>
Date: Thu, 29 Apr 2021 13:06:03 +0200
Subject: Buffer overflow in GSSAPI security policy negotiation
(CVE-2020-8625)
Origin: vendor
Forwarded: not-needed
Last-Update: 2021-02-09
---
lib/dns/spnego.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/dns/spnego.c b/lib/dns/spnego.c
index ad77f24..28ead69 100644
--- a/lib/dns/spnego.c
+++ b/lib/dns/spnego.c
@@ -877,7 +877,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);
}
|