Bug 1525628 (CVE-2017-15135)

Summary: CVE-2017-15135 389-ds-base: Authentication bypass due to lack of size check in slapi_ct_memcmp function in ch_malloc.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: lkrispen, mpoole, mreynolds, nkinder, rmeggins, security-response-team, vashirov, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
It was found that 389-ds-base did not always handle internal hash comparison operations correctly during the authentication process. A remote, unauthenticated attacker could potentially use this flaw to bypass the authentication process under very rare and specific circumstances.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-12 13:04:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1535538, 1535539, 1544415, 1544416    
Bug Blocks: 1525629    
Description Flags
Updated patch based on tbordaz's comments
1.3.6 backport of patch none

Description Pedro Sampaio 2017-12-13 18:07:34 UTC
A flaw was found in 389-ds-base that was introduced after CVE-2016-5405 fix. A lack of size check in slapi_ct_memcmp() function may lead to authentication bypass through pre-hashed userPassword attributes under highly specific circumstances.

Comment 1 Pedro Sampaio 2017-12-13 18:07:39 UTC

Name: Martin Poole (Red Hat)

Comment 17 errata-xmlrpc 2018-03-06 21:43:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:0414 https://access.redhat.com/errata/RHSA-2018:0414

Comment 18 errata-xmlrpc 2018-03-13 18:26:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2018:0515 https://access.redhat.com/errata/RHSA-2018:0515

Comment 20 Product Security DevOps Team 2019-07-12 13:04:35 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):