Bug 1630668 (CVE-2018-14648)

Summary: CVE-2018-14648 389-ds-base: Mishandled search requests in servers/slapd/search.c:do_search() allows for denial of service
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: carnil, cbuissar, lkrispen, mhonek, mreynolds, nkinder, rmeggins, security-response-team, spichugi, tbordaz, vashirov
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 389-ds-base 1.4.0.18, 389-ds-base 1.3.8.10 Doc Type: If docs needed, set a value
Doc Text:
It was found that a specially crafted search query could lead to excessive CPU consumption in the do_search() function. An unauthenticated attacker could use this flaw to provoke a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:38:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1624004, 1631695, 1631696, 1633740    
Bug Blocks: 1630669    
Attachments:
Description Flags
fix for v1.3.8.4 (1/2)
none
additional regression fix for v1.3.8.4 (2/2) none

Description Sam Fowler 2018-09-19 03:46:12 UTC
389 Directory Server is vulnerable to search queries with malformed values in the servers/slapd/search.c:do_search() function. A malicious client could exploit this by sending crafted queries in a loop to cause a denial of service.

Comment 3 Cedric Buissart 2018-09-21 10:01:48 UTC
Created 389-ds-base tracking bugs for this issue:

Affects: fedora-all [bug 1631695]

Comment 5 Salvatore Bonaccorso 2018-09-28 20:11:18 UTC
Sam, is there a upstream issue reference for this issue (and a commit reference)?

Comment 6 Yogendra Jog 2018-10-01 14:35:12 UTC
Hi,

Correcting the needinfo.  The assigned engineer is on leave and you should get an update early next week.

Regards
YOG.

Comment 7 Cedric Buissart 2018-10-09 07:38:20 UTC
Created attachment 1491956 [details]
fix for v1.3.8.4 (1/2)

Comment 8 Cedric Buissart 2018-10-09 07:39:24 UTC
Created attachment 1491958 [details]
additional regression fix for v1.3.8.4 (2/2)

Comment 9 Cedric Buissart 2018-10-09 07:41:45 UTC
Hi Salvatore,

The fix has not been pushed upstream yet. You will find a proposed fix for v1.3.8.4 attachment (2 patches)

Comment 11 Cedric Buissart 2018-10-10 09:18:56 UTC
External References:

https://pagure.io/389-ds-base/issue/49969

Comment 12 errata-xmlrpc 2018-10-30 07:42:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 13 errata-xmlrpc 2018-11-06 15:33:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.5 Extended Update Support

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