Skip to content

Commit b5282ec

Browse files
Hiten1412akuster
authored andcommitted
openldap: fix CVE-2021-27212 Assertion failure in slapd
Upstream-Status: Backport from https://git.openldap.org/openldap/openldap/-/commit/9badb73425a67768c09bcaed1a9c26c684af6c30 Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
1 parent 2dd0c9d commit b5282ec

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From 9badb73425a67768c09bcaed1a9c26c684af6c30 Mon Sep 17 00:00:00 2001
2+
From: Howard Chu <hyc@openldap.org>
3+
Date: Sat, 6 Feb 2021 20:52:06 +0000
4+
Subject: [PATCH] ITS#9454 fix issuerAndThisUpdateCheck
5+
6+
7+
Signed-off-by: Howard Chu <hyc@openldap.org>
8+
9+
Upstream-Status: Backport [https://git.openldap.org/openldap/openldap/-/commit/9badb73425a67768c09bcaed1a9c26c684af6c30]
10+
CVE: CVE-2021-27212
11+
Signed-off-by: Hitendra Prajapati <hprajapati@mvista.com>
12+
---
13+
servers/slapd/schema_init.c | 2 ++
14+
1 file changed, 2 insertions(+)
15+
16+
diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c
17+
index 31be115..8b1e255 100644
18+
--- a/servers/slapd/schema_init.c
19+
+++ b/servers/slapd/schema_init.c
20+
@@ -3900,6 +3900,8 @@ issuerAndThisUpdateCheck(
21+
break;
22+
}
23+
}
24+
+ if ( tu->bv_len < STRLENOF("YYYYmmddHHmmssZ") ) return LDAP_INVALID_SYNTAX;
25+
+
26+
x.bv_val += tu->bv_len + 1;
27+
x.bv_len -= tu->bv_len + 1;
28+
29+
--
30+
2.25.1
31+

meta-oe/recipes-support/openldap/openldap_2.4.57.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/$
2626
file://CVE-2022-29155.patch \
2727
file://CVE-2023-2953-1.patch \
2828
file://CVE-2023-2953-2.patch \
29+
file://CVE-2021-27212.patch \
2930
"
3031
SRC_URI[md5sum] = "e3349456c3a66e5e6155be7ddc3f042c"
3132
SRC_URI[sha256sum] = "c7ba47e1e6ecb5b436f3d43281df57abeffa99262141aec822628bc220f6b45a"

0 commit comments

Comments
 (0)