Bug 1559802 (CVE-2018-1089)

Summary: CVE-2018-1089 389-ds-base: ns-slapd crash via large filter value in ldapsearch
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: cbuissar, lkrispen, mreynolds, nkinder, rmeggins, security-response-team, tbordaz, vashirov
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: 389-ds-base, 389-ds-base, 389-ds-base Doc Type: If docs needed, set a value
Doc Text:
It was found that 389-ds-base did not properly handle long search filters with characters needing escapes, possibly leading to buffer overflows. A remote, unauthenticated attacker could potentially use this flaw to make ns-slapd crash via a specially crafted LDAP request, thus resulting in denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-18 18:07:12 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: 1559818, 1559819, 1562151, 1562152, 1575671, 1575672    
Bug Blocks: 1559605    

Description Adam Mariš 2018-03-23 10:05:11 UTC
It is possible to crash ns-slapd (and ipa-dnskeysyncd afterwards) with crafted ldapsearch query with very long filter value both as anonymous or authenticated user. The crash can be similarly triggered with a query via the FreeIPA API as an authenticated user.

Comment 1 Adam Mariš 2018-03-23 10:05:16 UTC

Name: Greg Kubok

Comment 23 Cedric Buissart 2018-05-07 15:06:45 UTC
Created 389-ds-base tracking bugs for this issue:

Affects: fedora-all [bug 1575671]

Comment 25 errata-xmlrpc 2018-05-09 14:27:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

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

Comment 26 errata-xmlrpc 2018-05-14 16:09:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 27 Cedric Buissart 2018-06-05 13:12:01 UTC
Upstream fix: