RedHat: 'nss_ldap' Buffer overflow vulnerability
Summary
Summary
nss_ldap is a set of C library extensions that allow X.500 and LDAPdirectory servers to be used as a primary source of aliases, ethers,groups, hosts, networks, protocols, users, RPCs, services, and shadowpasswords (instead of or in addition to using flat files or NIS).When versions of nss_ldap prior to nss_ldap-198 are configured without avalue for the "host" setting, nss_ldap will attempt to configure itself byusing SRV records stored in DNS. When parsing the results of the DNSquery, nss_ldap does not check that the data returned by the server willfit into an internal buffer, leaving it vulnerable to a buffer overflow.The Common Vulnerabilities and Exposures project (cve.mitre.org) hasassigned the name CAN-2002-0825 to this issue.When versions of nss_ldap prior to nss_ldap-199 are configured without avalue for the "host" setting, nss_ldap will attempt to configure itself byusing SRV records stored in DNS. When parsing the results of the DNSquery, nss_ldap does not check that the data returned has not beentruncated by the resolver libraries to avoid a buffer overflow, and mayattempt to parse more data than is actually available, leaving itvulnerable to a read buffer overflow. Versions of pam_ldap prior to version 144 include a format string bug inthe logging function. The packages included in this erratum update pam_ldapto version 144, fixing this bug. The Common Vulnerabilities and Exposuresproject (cve.mitre.org) has assigned the name CAN-2002-0374 to this issue.All users of nss_ldap should update to these errata packages which are notvulnerable to the above issues. The errata packages are based onnss_ldap-189 with the addition of a backported security patch and pam_ldapversion 144.Thanks to the nss_ldap and pam_ldap team at padl.com for providinginformation about these issues.
Solution
Before applying this update, make sure all previously released errata
relevant to your system have been applied.
To update all RPMs for your particular architecture, run:
rpm -Fvh [filenames]
where [filenames] is a list of the RPMs you wish to upgrade. Only those
RPMs which are currently installed will be updated. Those RPMs which are
not installed but included in the list will not be updated. Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.
Please note that this update is also available via Red Hat Network. Many
people find this an easier way to apply updates. 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.
5. RPMs required:
Red Hat Linux 6.2:
SRPMS:
alpha:
i386:
sparc:
Red Hat Linux 7.0:
SRPMS:
alpha:
i386:
Red Hat Linux 7.1:
SRPMS:
alpha:
i386:
ia64:
Red Hat Linux 7.2:
SRPMS:
i386:
ia64:
Red Hat Linux 7.3:
SRPMS:
i386:
6. Verification:
MD5 sum Package Name
2acbcd575035a1afcb9e74694a6b7b39 6.2/en/os/SRPMS/nss_ldap-189-3.6.src.rpm
1a670c4c2a343b26508aa04ae06d2306 6.2/en/os/alpha/nss_ldap-189-3.6.alpha.rpm
4069002846304df7840cbe81517f8b3d 6.2/en/os/i386/nss_ldap-189-3.6.i386.rpm
e26b1be702d0bf65f455e17d16844354 6.2/en/os/sparc/nss_ldap-189-3.6.sparc.rpm
9b44c5148cd1d3d688a9603f11a4d794 7.0/en/os/SRPMS/nss_ldap-189-3.7.src.rpm
2d245d41c6a27b62670a0e3cbc48e93b 7.0/en/os/alpha/nss_ldap-189-3.7.alpha.rpm
5c34d52cfa0425e8b3d0e63838729703 7.0/en/os/i386/nss_ldap-189-3.7.i386.rpm
9b44c5148cd1d3d688a9603f11a4d794 7.1/en/os/SRPMS/nss_ldap-189-3.7.src.rpm
2d245d41c6a27b62670a0e3cbc48e93b 7.1/en/os/alpha/nss_ldap-189-3.7.alpha.rpm
5c34d52cfa0425e8b3d0e63838729703 7.1/en/os/i386/nss_ldap-189-3.7.i386.rpm
27c07eb113adebc7d79d48d8c9df9356 7.1/en/os/ia64/nss_ldap-189-3.7.ia64.rpm
d421772f8f5bd985dc2c288aee729ff6 7.2/en/os/SRPMS/nss_ldap-189-4.src.rpm
8dc0d40503cbc09a55a111fc53ec42ba 7.2/en/os/i386/nss_ldap-189-4.i386.rpm
acd545a47e2be38ed8c9b94ea9801e4c 7.2/en/os/ia64/nss_ldap-189-4.ia64.rpm
d421772f8f5bd985dc2c288aee729ff6 7.3/en/os/SRPMS/nss_ldap-189-4.src.rpm
8dc0d40503cbc09a55a111fc53ec42ba 7.3/en/os/i386/nss_ldap-189-4.i386.rpm
These packages are GPG signed by Red Hat, Inc. for security. Our key
is available at:
About
You can verify each package with the following command:
rpm --checksig
If you only wish to verify that each package has not been corrupted or
tampered with, examine only the md5sum with the following command:
rpm --checksig --nogpg
References
PADL PADL cert CVE -CVE-2002-0825 CVE -CVE-2002-0374 Copyright(c) 2000, 2001, 2002 Red Hat, Inc.
Package List
Topic
Topic
Updated nss_ldap packages are now available for Red Hat Linux 6.2, 7, 7.1,
7.2, and 7.3. These updates fix a potential buffer overflow which can occur
when nss_ldap is set to configure itself using information stored in DNS,
a format string bug in logging functions used in pam_ldap, and to properly
handle truncated DNS responses.
Relevant Releases Architectures
Red Hat Linux 6.2 - alpha, i386, sparc
Red Hat Linux 7.0 - alpha, i386
Red Hat Linux 7.1 - alpha, i386, ia64
Red Hat Linux 7.2 - i386, ia64
Red Hat Linux 7.3 - i386
Bugs Fixed