import slapi-nis-0.56.6-2.module+el8.4.0+10615+2234cc2c
This commit is contained in:
parent
0b4f66317d
commit
258c451f30
33
SOURCES/cve-2021-3480-fix.patch
Normal file
33
SOURCES/cve-2021-3480-fix.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From 2f2b7ecd9d6a0f5044c24e4f96464942a1d873db Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alexander Bokovoy <abokovoy@redhat.com>
|
||||||
|
Date: Wed, 7 Apr 2021 14:40:52 +0300
|
||||||
|
Subject: [PATCH] CVE-2021-3480: invalid bind DN crash
|
||||||
|
|
||||||
|
For certain LDAP bind operations 389-ds would pass unvalidated bind DN
|
||||||
|
to bind plugins. A first attempt to normalize the DN would find that out
|
||||||
|
and should reject the request.
|
||||||
|
|
||||||
|
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
|
||||||
|
---
|
||||||
|
src/back-sch.c | 5 +++++
|
||||||
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/back-sch.c b/src/back-sch.c
|
||||||
|
index a5e4c04..d806627 100644
|
||||||
|
--- a/src/back-sch.c
|
||||||
|
+++ b/src/back-sch.c
|
||||||
|
@@ -1988,6 +1988,11 @@ backend_locate_cb(const char *group, const char *set, bool_t flag,
|
||||||
|
rdn = slapi_rdn_new_sdn(cbdata->target_dn);
|
||||||
|
if (rdn != NULL) {
|
||||||
|
rdnstr = slapi_rdn_get_nrdn(rdn);
|
||||||
|
+ if (rdnstr == NULL) {
|
||||||
|
+ /* normalizing RDN failed, break the search */
|
||||||
|
+ slapi_rdn_free(&rdn);
|
||||||
|
+ return FALSE;
|
||||||
|
+ }
|
||||||
|
if (map_match(cbdata->state, group, set, &flag,
|
||||||
|
strlen(rdnstr), rdnstr,
|
||||||
|
&ndnlen, &ndn,
|
||||||
|
--
|
||||||
|
2.31.1
|
||||||
|
|
@ -11,13 +11,14 @@
|
|||||||
|
|
||||||
Name: slapi-nis
|
Name: slapi-nis
|
||||||
Version: 0.56.6
|
Version: 0.56.6
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: NIS Server and Schema Compatibility plugins for Directory Server
|
Summary: NIS Server and Schema Compatibility plugins for Directory Server
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: http://pagure.io/slapi-nis/
|
URL: http://pagure.io/slapi-nis/
|
||||||
Source0: https://releases.pagure.org/slapi-nis/slapi-nis-%{version}.tar.gz
|
Source0: https://releases.pagure.org/slapi-nis/slapi-nis-%{version}.tar.gz
|
||||||
Source1: https://releases.pagure.org/slapi-nis/slapi-nis-%{version}.tar.gz.asc
|
Source1: https://releases.pagure.org/slapi-nis/slapi-nis-%{version}.tar.gz.asc
|
||||||
|
Patch1: cve-2021-3480-fix.patch
|
||||||
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -56,6 +57,7 @@ for attributes from multiple entries in the tree.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoconf --force
|
autoconf --force
|
||||||
@ -84,6 +86,10 @@ make check
|
|||||||
%{_sbindir}/nisserver-plugin-defs
|
%{_sbindir}/nisserver-plugin-defs
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 07 2021 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.6-2
|
||||||
|
- CVE 2021-3480: idm:DL1/slapi-nis: NULL dereference (DoS) with specially crafted Binding DN
|
||||||
|
- Resolves: rhbz#1944713
|
||||||
|
|
||||||
* Fri Dec 04 2020 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.6-1
|
* Fri Dec 04 2020 Alexander Bokovoy <abokovoy@redhat.com> - 0.56.6-1
|
||||||
- Upstream release 0.56.6
|
- Upstream release 0.56.6
|
||||||
- Resolves rhbz#1891741
|
- Resolves rhbz#1891741
|
||||||
|
Loading…
Reference in New Issue
Block a user