RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1644654 - openldap crash in ldap_chain_op
Summary: openldap crash in ldap_chain_op
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openldap
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Matus Honek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-31 10:42 UTC by German Parente
Modified: 2022-03-13 15:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-06 15:13:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description German Parente 2018-10-31 10:42:21 UTC
Description of problem:

new issue in ldap_chain_op:


Program terminated with signal 11, Segmentation fault.
#0  ldap_chain_op (op=op@entry=0x7fcbb00008e0, rs=rs@entry=0x7fcba8ffbb00, 
    op_f=0x7fcbe39e2fe0 <ldap_back_search>, ref=ref@entry=0x0, 
    depth=depth@entry=0) at chain.c:422
422		for ( ; !BER_BVISNULL( ref ); ref++ ) {


(gdb) list
417		(void)chaining_control_add( lc, op, &ctrls );
418	#endif /* LDAP_CONTROL_X_CHAINING_BEHAVIOR */
419	
420		li.li_bvuri = bvuri;
421		first_rc = -1;
422		for ( ; !BER_BVISNULL( ref ); ref++ ) {
423			SlapReply	rs2 = { 0 };
424			LDAPURLDesc	*srv = NULL;
425			req_search_s	save_oq_search = op->oq_search,
426					tmp_oq_search = { 0 };
(gdb) 


ref is NULL.

Clearly: 

#define BER_BVISNULL(bv)	((bv)->bv_val == NULL)

So, BER_BVISNULL( ref ) is crashing the server since "ref" is not checked before being accessed.




Version-Release number of selected component (if applicable):  openldap-servers-2.4.44-5.el7.x86_64


Note You need to log in before you can comment on or make changes to this bug.