diff options
Diffstat (limited to 'meta-oe/recipes-support/openldap/openldap-2.4.40/0001-ITS-8027-require-non-empty-AttributeList.patch')
-rw-r--r-- | meta-oe/recipes-support/openldap/openldap-2.4.40/0001-ITS-8027-require-non-empty-AttributeList.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/openldap/openldap-2.4.40/0001-ITS-8027-require-non-empty-AttributeList.patch b/meta-oe/recipes-support/openldap/openldap-2.4.40/0001-ITS-8027-require-non-empty-AttributeList.patch new file mode 100644 index 0000000000..91c2178c3f --- /dev/null +++ b/meta-oe/recipes-support/openldap/openldap-2.4.40/0001-ITS-8027-require-non-empty-AttributeList.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From c32e74763f77675b9e144126e375977ed6dc562c Mon Sep 17 00:00:00 2001 | ||
2 | From: Howard Chu <hyc@openldap.org> | ||
3 | Date: Mon, 19 Jan 2015 22:25:53 +0000 | ||
4 | Subject: [PATCH] ITS#8027 require non-empty AttributeList | ||
5 | |||
6 | Upstream-Status: Backup | ||
7 | |||
8 | Fix the CVE: https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-1545 | ||
9 | |||
10 | --- | ||
11 | servers/slapd/overlays/deref.c | 3 ++- | ||
12 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/servers/slapd/overlays/deref.c b/servers/slapd/overlays/deref.c | ||
15 | index 9420e3e..05aa890 100644 | ||
16 | --- a/servers/slapd/overlays/deref.c | ||
17 | +++ b/servers/slapd/overlays/deref.c | ||
18 | @@ -183,7 +183,8 @@ deref_parseCtrl ( | ||
19 | ber_len_t cnt = sizeof(struct berval); | ||
20 | ber_len_t off = 0; | ||
21 | |||
22 | - if ( ber_scanf( ber, "{m{M}}", &derefAttr, &attributes, &cnt, off ) == LBER_ERROR ) | ||
23 | + if ( ber_scanf( ber, "{m{M}}", &derefAttr, &attributes, &cnt, off ) == LBER_ERROR | ||
24 | + || !cnt ) | ||
25 | { | ||
26 | rs->sr_text = "Dereference control: derefSpec decoding error"; | ||
27 | rs->sr_err = LDAP_PROTOCOL_ERROR; | ||
28 | -- | ||
29 | 1.9.1 | ||
30 | |||