Bug 825875 (CVE-2012-2668)

Summary: CVE-2012-2668 openldap: does not honor TLSCipherSuite settings
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ccsadmins, dspurek, jlieskov, jsynacek, jvcelak, rmeggins, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,public=20120604,reported=20120528,source=redhat,cvss2=5.0/AV:N/AC:L/Au:N/C:N/I:P/A:N,rhel-5/openldap=notaffected,rhel-6/openldap=affected,fedora-all/openldap=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-08 13:43:15 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 822979, 829481, 844725    
Bug Blocks: 802520, 825876    

Description Vincent Danen 2012-05-28 17:15:44 EDT
It was reported that OpenLDAP, when using the Mozilla NSS backend, would ignore any TLSCipherSuite configuration settings.  When the TLSCipherSuite setting is configured, OpenLDAP would use the default cipher suite, ignoring the setting.

While the default cipher suite contains some weak ciphers (e.g. MD5-based), it is still not easy to break the encryption to obtain sensitive information.  However, if an administrator wishes to enforce the use of stronger ciphers by overriding the defaults using TLSCipherSuite, they should be able to trust that, when the configuration items is in place, the stronger ciphers are used.  Due to this flaw, that is not the case.
Comment 2 Vincent Danen 2012-05-28 17:23:07 EDT
This does seem to affect upstream, based on the proposed patch to fix it.  From libraries/libldap/tls_m.c in OpenLDAP 2.4.23:

1757     if ( lt->lt_ciphersuite &&
1758          tlsm_parse_ciphers( ctx, lt->lt_ciphersuite )) {                                                                                                                                                                                                                  
1759         Debug( LDAP_DEBUG_ANY,
1760                "TLS: could not set cipher list %s.\n",
1761                lt->lt_ciphersuite, 0, 0 );
1762         return -1;
1763     }
Comment 7 Jan Vcelak 2012-06-05 05:23:25 EDT
Someone was quicker: http://www.openldap.org/its/index.cgi?findid=7285
Comment 8 Vincent Danen 2012-06-05 17:51:22 EDT
Upstream commit: http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=commit;h=2c2bb2e
Comment 10 Kurt Seifried 2012-06-05 20:04:49 EDT
Added CVE as per http://www.openwall.com/lists/oss-security/2012/06/06/1
Comment 11 Jan Lieskovsky 2012-06-06 03:31:03 EDT
Debian bug report:
Comment 12 Vincent Danen 2012-06-06 17:06:31 EDT
Created openldap tracking bugs for this issue

Affects: fedora-all [bug 829481]
Comment 17 Fedora Update System 2012-07-17 13:22:16 EDT
openldap-2.4.31-3.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 18 Fedora Update System 2012-07-17 13:26:21 EDT
openldap-2.4.26-8.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 21 errata-xmlrpc 2012-08-08 12:33:21 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2012:1151 https://rhn.redhat.com/errata/RHSA-2012-1151.html
Comment 22 Vincent Danen 2012-08-08 13:43:15 EDT

This issue did not affect the version of openldap as shipped with Red Hat Enterprise Linux 5, as it does not use the Mozilla NSS backend.