openldap: Fix CVE-2023-2953
PATCH 1/1 openldap: Fix CVE-2023-2953
Upstream-Status: Backport
[https://git.openldap.org/openldap/openldap/-/commit/752d320cf96e46f24c0900f1a8f6af0a3fc3c4ce
&
https://git.openldap.org/openldap/openldap/-/commit/6563fab9e2feccb0a684d0398e78571d09fb808b]
Signed-off-by Ashish Sharma <[email protected]>
--- .../openldap/openldap/CVE-2023-2953-1.patch | 30 ++++++++ .../openldap/openldap/CVE-2023-2953-2.patch | 76 +++++++++++++++++++ .../openldap/openldap_2.5.12.bb | 2 + 3 files changed, 108 insertions(+) create mode 100644 meta-oe/recipes-support/openldap/openldap/CVE-2023-2953-1.patch create mode 100644 meta-oe/recipes-support/openldap/openldap/CVE-2023-2953-2.patch
meta-oe/recipes-support/openldap/openldap/CVE-2023-2953-1.patch new file +30 -0
@@ -0,0 +1,30 @@ +From ea8dd2d279c5aeaf9d4672a4e95bebd99babcce1 Mon Sep 17 00:00:00 2001 +From: Howard Chu <[email protected]> +Date: Wed, 24 Aug 2022 14:40:51 +0100 +Subject: [PATCH] ITS#9904 ldif_open_url: check for ber_strdup failure + +Code present since 1999, df8f7cbb9b79be3be9205d116d1dd0b263d6861a + +Upstream-Status: Backport [https://git.openldap.org/openldap/openldap/-/commit/752d320cf96e46f24c0900f1a8f6af0a3fc3c4ce] +CVE: CVE-2023-2953 +Signed-off-by: Ashish Sharma <[email protected]> +--- + libraries/libldap/fetch.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libraries/libldap/fetch.c b/libraries/libldap/fetch.c +index 9e426dc647..536871bcfe 100644 +--- a/libraries/libldap/fetch.c ++++ b/libraries/libldap/fetch.c +@@ -69,6 +69,8 @@ ldif_open_url( + } + + p = ber_strdup( urlstr ); ++ if ( p == NULL ) ++ return NULL; + + /* But we should convert to LDAP_DIRSEP before use */ + if ( LDAP_DIRSEP[0] != '/' ) { +-- +GitLab +
meta-oe/recipes-support/openldap/openldap/CVE-2023-2953-2.patch new file +76 -0
76 lines not on this page · raw message
meta-oe/recipes-support/openldap/openldap_2.5.12.bb +2 -0
@@ -23,6 +23,8 @@ SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/$ file://0001-build-top.mk-unset-STRIP_OPTS.patch \ file://0001-libraries-Makefile.in-ignore-the-mkdir-errors.patch \ file://0001-librewrite-include-ldap_pvt_thread.h-before-redefini.patch \ + file://CVE-2023-2953-1.patch \ + file://CVE-2023-2953-2.patch \ " SRC_URI[sha256sum] = "d5086cbfc49597fa7d0670a429a9054552d441b16ee8b2435412797ab0e37b96"
Signature · 1 line
2.35.7