Bug 1438029

Summary: Overflow in memberof
Product: Red Hat Enterprise Linux 7 Reporter: thierry bordaz <tbordaz>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.4CC: nkinder, rmeggins, vashirov
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.6.1-9.el7 Doc Type: If docs needed, set a value
Doc Text:
This bug has NO external impact (crash or invalid update). No documentation required
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 21:16:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description thierry bordaz 2017-03-31 16:42:20 UTC
Description of problem:

The problem is an access to an invalid offset into a structure.
Crash should be rare or even not possible, as it is an access in stack few bytes after the structure but as it is done in a called subfunction, memory is (should) always be accessible.

It does not create wrong/invalid result
 
Version-Release number of selected component (if applicable):
1.3.6

How reproducible:
Running AddressAnalyzer

No identified test case to generate crash or invalid result

Steps to Reproduce:
1. enable memberof
2. do tests with groups
3.

Actual results:

Address analyzer report an underflow or overflow

Expected results:

Address analyzer should not report error

Additional info:

Comment 2 thierry bordaz 2017-03-31 16:44:31 UTC
This bug is clone of https://pagure.io/389-ds-base/issue/49184

It was found in tests on early 7.4 builds

Comment 3 thierry bordaz 2017-04-13 14:53:33 UTC
This bug has been pushed upstream https://pagure.io/389-ds-base/issue/49184

Comment 5 thierry bordaz 2017-04-20 15:15:50 UTC
*** Bug 1441519 has been marked as a duplicate of this bug. ***

Comment 6 Viktor Ashirov 2017-05-02 12:04:05 UTC
Build tested:
389-ds-base-1.3.6.1-9.el7.x86_64 (both ASAN and regular)

I didn't encounter crash in autoMembers stress test suite, marking as VERIFIED.

Comment 7 errata-xmlrpc 2017-08-01 21:16:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2086