-
Notifications
You must be signed in to change notification settings - Fork 724
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]> Signed-off-by: Armin Kuster <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
meta-oe/recipes-support/openldap/openldap/CVE-2021-27212.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters