Security Advisory Low: nss_ldap security and bug fix update

Advisory: RHSA-2008:0715-5
Type: Security Advisory
Severity: Low
Issued on: 2008-07-24
Last updated on: 2008-07-24
Affected Products: Red Hat Desktop (v. 4)
Red Hat Enterprise Linux AS (v. 4)
Red Hat Enterprise Linux ES (v. 4)
Red Hat Enterprise Linux WS (v. 4)
OVAL: com.redhat.rhsa-20080715.xml
CVEs (cve.mitre.org): CVE-2007-5794

Details

An updated nss_ldap package that fixes a security issue and several bugs is
now available.

This update has been rated as having low security impact by the Red Hat
Security Response Team.

The nss_ldap package contains the nss_ldap and pam_ldap modules. The
nss_ldap module is a plug-in which allows applications to retrieve
information about users and groups from a directory server. The pam_ldap
module allows PAM-aware applications to use a directory server to verify
user passwords.

A race condition was discovered in nss_ldap, which affected certain
applications that make LDAP connections, such as Dovecot. This could cause
nss_ldap to answer a request for information about one user with the
information about a different user. (CVE-2007-5794)

As well, this updated package fixes the following bugs:

* in certain situations, on Itanium(R) architectures, when an application
performed an LDAP lookup for a highly populated group, for example,
containing more than 150 members, the application crashed, or may have
caused a segmentation fault. As well, this issue may have caused commands,
such as "ls", to return a "ber_free_buf: Assertion" error.

* when an application enumerated members of a netgroup, the nss_ldap
module returned a successful status result and the netgroup name, even
when the netgroup did not exist. This behavior was not consistent with
other modules. In this updated package, nss_ldap no longer returns a
successful status when the netgroup does not exist.

* in master and slave server environments, with systems that were
configured to use a read-only directory server, if user log in attempts
were denied because their passwords had expired, and users attempted to
immediately change their passwords, the replication server returned an LDAP
referral, instructing the pam_ldap module to resissue its request to a
different server; however, the pam_ldap module failed to do so. In these
situations, an error such as the following occurred:

LDAP password information update failed: Can't contact LDAP server
Insufficient 'write' privilege to the 'userPassword' attribute of entry
[entry]

In this updated package, password changes are allowed when binding against
a slave server, which resolves this issue.

* when a system used a directory server for naming information, and
"nss_initgroups_ignoreusers root" was configured in "/etc/ldap.conf",
dbus-daemon-1 would hang. Running the "service messagebus start" command
did not start the service, and it did not fail, which would stop the boot
process if it was not cancelled.

As well, this updated package upgrades nss_ldap to the version as shipped
with Red Hat Enterprise Linux 5.

Users of nss_ldap are advised to upgrade to this updated package, which
resolves these issues.


Solution

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

This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/FAQ_58_10188

Updated packages

Red Hat Desktop (v. 4)

SRPMS:
nss_ldap-253-5.el4.src.rpm
File outdated by:  RHBA-2009:0986
    004e6cfcdc8fb44a0b4e1c3433d77e5d
 
IA-32:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
 
x86_64:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
nss_ldap-253-5.el4.x86_64.rpm
File outdated by:  RHBA-2009:0986
    d10440483547e95d58c754ac132332f9
 
Red Hat Enterprise Linux AS (v. 4)

SRPMS:
nss_ldap-253-5.el4.src.rpm
File outdated by:  RHBA-2009:0986
    004e6cfcdc8fb44a0b4e1c3433d77e5d
 
IA-32:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
 
IA-64:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
nss_ldap-253-5.el4.ia64.rpm
File outdated by:  RHBA-2009:0986
    f0a8637e402890b6458f49830bcf6708
 
PPC:
nss_ldap-253-5.el4.ppc.rpm
File outdated by:  RHBA-2009:0986
    c0aaad6a99e379770dc45b382a78e9e0
nss_ldap-253-5.el4.ppc64.rpm
File outdated by:  RHBA-2009:0986
    21f719a914067a70a12f0f2e8ec70c75
 
s390:
nss_ldap-253-5.el4.s390.rpm
File outdated by:  RHBA-2009:0986
    41c64a03d8639594a87ed5da1ac61897
 
s390x:
nss_ldap-253-5.el4.s390.rpm
File outdated by:  RHBA-2009:0986
    41c64a03d8639594a87ed5da1ac61897
nss_ldap-253-5.el4.s390x.rpm
File outdated by:  RHBA-2009:0986
    8bdf1776d6a88e9cd2502bf64c9ce627
 
x86_64:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
nss_ldap-253-5.el4.x86_64.rpm
File outdated by:  RHBA-2009:0986
    d10440483547e95d58c754ac132332f9
 
Red Hat Enterprise Linux ES (v. 4)

SRPMS:
nss_ldap-253-5.el4.src.rpm
File outdated by:  RHBA-2009:0986
    004e6cfcdc8fb44a0b4e1c3433d77e5d
 
IA-32:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
 
IA-64:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
nss_ldap-253-5.el4.ia64.rpm
File outdated by:  RHBA-2009:0986
    f0a8637e402890b6458f49830bcf6708
 
x86_64:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
nss_ldap-253-5.el4.x86_64.rpm
File outdated by:  RHBA-2009:0986
    d10440483547e95d58c754ac132332f9
 
Red Hat Enterprise Linux WS (v. 4)

SRPMS:
nss_ldap-253-5.el4.src.rpm
File outdated by:  RHBA-2009:0986
    004e6cfcdc8fb44a0b4e1c3433d77e5d
 
IA-32:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
 
IA-64:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
nss_ldap-253-5.el4.ia64.rpm
File outdated by:  RHBA-2009:0986
    f0a8637e402890b6458f49830bcf6708
 
x86_64:
nss_ldap-253-5.el4.i386.rpm
File outdated by:  RHBA-2009:0986
    df7dfddec7c125f7ec9de970a5743d19
nss_ldap-253-5.el4.x86_64.rpm
File outdated by:  RHBA-2009:0986
    d10440483547e95d58c754ac132332f9
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

155187 - CVE-2007-5794 nss_ldap randomly replying with wrong user's data [rhel-4.7]
233382 - nss_ldap crashes on large groups (IA64)
253997 - nss_ldap / setnetgrent() returns always 1 despite not retrieving any valid results.
367461 - CVE-2007-5794 nss_ldap randomly replying with wrong user's data
401731 - Rebase nss_ldap to RHEL 5.2 version
429101 - dbus-daemon-1 hangs when using the option nss_initgroups_ignoreusers in /etc/ldap.conf with the user root


References



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/