Security Advisory openldap security update

Advisory: RHSA-2002:312-12
Type: Security Advisory
Severity: Critical
Issued on: 2003-02-07
Last updated on: 2003-08-25
Affected Products: Red Hat Enterprise Linux AS (v. 2.1)
Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor
OVAL: N/A
CVEs (cve.mitre.org): CVE-2002-1378
CVE-2002-1379
CVE-2002-1508

Details

Updated OpenLDAP packages are available which fix a number of local and
remote buffer overflows in libldap as well as the slapd and slurpd daemons.
Additionally, potential issues stemming from using user-specified LDAP
configuration files have been addressed.

[Updated 06 Feb 2003]
Added fixed packages for Red Hat Linux Advanced Workstation 2.1

[Updated 13 Aug 2003]
Added openldap12 packages for Red Hat Linux Advanced Server 2.1
and Advanced Workstation 2.1 that were originally left out of this errata.

OpenLDAP is a suite of LDAP (Lightweight Directory Access Protocol)
applications and development tools. LDAP is a set of protocols for
accessing directory services. In an audit of OpenLDAP by SuSE, a number of
potential security issues were found.

The following is a list of these issues:

When reading configuration files, libldap reads the current user's .ldaprc
file even in applications being run with elevated privileges.

Slurpd would overflow an internal buffer if the command-line argument used
with the -t or -r flags is too long, or if the name of a file for which it
attempted to create an advisory lock is too long.

When parsing filters, the getfilter family of functions from libldap can
overflow an internal buffer by supplying a carefully crafted
ldapfilter.conf file.

When processing LDAP entry display templates, libldap can overflow an
internal buffer by supplying a carefully crafted ldaptemplates.conf file.

When parsing an access control list, slapd can overflow an internal buffer.

When constructing the name of the file used for logging rejected
replication requests, slapd overflows an internal buffer if the size
of the generated name is too large. It can also destroy the contents of any
file owned by the user 'ldap' due to a race condition in the subsequent
creation of the log file.

All of these potential security issues are corrected by the packages
contained within this erratum.

Red Hat Linux Advanced Server users who use LDAP are advised to
install the updated OpenLDAP packages contained within this erratum.


Solution

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

Please note that this update is available via Red Hat Network. To use Red
Hat Network, launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

Updated packages

Red Hat Enterprise Linux AS (v. 2.1)

SRPMS:
openldap-2.0.27-2.7.3.src.rpm
File outdated by:  RHSA-2005:751
    148ac6c282678e649d9bc82ef68472ec
openldap12-1.2.13-8.src.rpm     92d8d3db8064d35faab46b59c077251d
 
IA-32:
openldap-2.0.27-2.7.3.i386.rpm
File outdated by:  RHSA-2005:751
    878a1302654284097cd6b1ff37dcb990
openldap-clients-2.0.27-2.7.3.i386.rpm
File outdated by:  RHSA-2005:751
    42bdf5437712c8b7240cdb6dee4ec8c1
openldap-devel-2.0.27-2.7.3.i386.rpm
File outdated by:  RHSA-2005:751
    4fedaaa2c3bae85580d80b981af12194
openldap-servers-2.0.27-2.7.3.i386.rpm
File outdated by:  RHSA-2005:751
    9341c678193d6f6dda7c9718df75d614
openldap12-1.2.13-8.i386.rpm     0a692fe198ed8743ede8e6dbf999e486
 
IA-64:
openldap-2.0.27-2.7.3.ia64.rpm
File outdated by:  RHSA-2005:751
    518f368e458a617daa37baefb331fa09
openldap-clients-2.0.27-2.7.3.ia64.rpm
File outdated by:  RHSA-2005:751
    c5b77b9c6a01f72f13438d058ec05cb9
openldap-devel-2.0.27-2.7.3.ia64.rpm
File outdated by:  RHSA-2005:751
    55e81b9cb1e2ae1a44ceb833470087ee
openldap-servers-2.0.27-2.7.3.ia64.rpm
File outdated by:  RHSA-2005:751
    5c6dd70a327ced63f143eee0587e9439
openldap12-1.2.13-8.ia64.rpm     fccda5abf8c02f80a5713438854ccb39
 
Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor

SRPMS:
openldap-2.0.27-2.7.3.src.rpm
File outdated by:  RHSA-2005:751
    148ac6c282678e649d9bc82ef68472ec
openldap12-1.2.13-8.src.rpm     92d8d3db8064d35faab46b59c077251d
 
IA-64:
openldap-2.0.27-2.7.3.ia64.rpm
File outdated by:  RHSA-2005:751
    518f368e458a617daa37baefb331fa09
openldap-clients-2.0.27-2.7.3.ia64.rpm
File outdated by:  RHSA-2005:751
    c5b77b9c6a01f72f13438d058ec05cb9
openldap-devel-2.0.27-2.7.3.ia64.rpm
File outdated by:  RHSA-2005:751
    55e81b9cb1e2ae1a44ceb833470087ee
openldap-servers-2.0.27-2.7.3.ia64.rpm
File outdated by:  RHSA-2005:751
    5c6dd70a327ced63f143eee0587e9439
openldap12-1.2.13-8.ia64.rpm     fccda5abf8c02f80a5713438854ccb39
 
(The unlinked packages above are only available from the Red Hat Network)

References


Keywords

.ldaprc, buffer, openldap, overflow, setuid


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/