openldap: fix CVE-2021-27212 Assertion failure in slapd
PATCH 1/1 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 <[email protected]>
--- .../openldap/openldap/CVE-2021-27212.patch | 31 +++++++++++++++++++ .../openldap/openldap_2.4.57.bb | 1 + 2 files changed, 32 insertions(+) create mode 100644 meta-oe/recipes-support/openldap/openldap/CVE-2021-27212.patch
meta-oe/recipes-support/openldap/openldap/CVE-2021-27212.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 9badb73425a67768c09bcaed1a9c26c684af6c30 Mon Sep 17 00:00:00 2001 +From: Howard Chu <[email protected]> +Date: Sat, 6 Feb 2021 20:52:06 +0000 +Subject: [PATCH] ITS#9454 fix issuerAndThisUpdateCheck + + +Signed-off-by: Howard Chu <[email protected]> + +Upstream-Status: Backport [https://git.openldap.org/openldap/openldap/-/commit/9badb73425a67768c09bcaed1a9c26c684af6c30] +CVE: CVE-2021-27212 +Signed-off-by: Hitendra Prajapati <[email protected]> +--- + servers/slapd/schema_init.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c +index 31be115..8b1e255 100644 +--- a/servers/slapd/schema_init.c ++++ b/servers/slapd/schema_init.c +@@ -3900,6 +3900,8 @@ issuerAndThisUpdateCheck( + break; + } + } ++ if ( tu->bv_len < STRLENOF("YYYYmmddHHmmssZ") ) return LDAP_INVALID_SYNTAX; ++ + x.bv_val += tu->bv_len + 1; + x.bv_len -= tu->bv_len + 1; + +-- +2.25.1 +
meta-oe/recipes-support/openldap/openldap_2.4.57.bb +1 -0
@@ -26,6 +26,7 @@ SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/$ file://CVE-2022-29155.patch \ file://CVE-2023-2953-1.patch \ file://CVE-2023-2953-2.patch \ + file://CVE-2021-27212.patch \ " SRC_URI[md5sum] = "e3349456c3a66e5e6155be7ddc3f042c" SRC_URI[sha256sum] = "c7ba47e1e6ecb5b436f3d43281df57abeffa99262141aec822628bc220f6b45a"
Signature · 1 line
2.25.1