Issue 8843 - null modlist with MMR > 2 can cause segv
Summary: null modlist with MMR > 2 can cause segv
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.4.46
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-02 15:49 UTC by Quanah Gibson-Mount
Modified: 2018-12-19 17:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Quanah Gibson-Mount 2018-05-02 15:49:31 UTC
Full_Name: Quanah Gibson-Mount
Version: 2.4.46
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (47.208.148.239)


There is a race condition with MMR >2 that can cause slapd to segv, due to the
op->modlist being set to NULL for a change that's already been processed.

If the target entry is already newer than the mod, and we then look in the logDB
to see what was changed, and the newer mod is a delete(attr) then any other
changes to that attr are dropped from the modlist, which can result in the
modlist being NULL
Comment 1 Howard Chu 2018-05-02 15:52:28 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 2 Quanah Gibson-Mount 2018-07-03 23:34:38 UTC
changed notes
changed state Test to Release
Comment 3 OpenLDAP project 2018-12-19 17:20:10 UTC
fixed in master
fixed in RE24 (2.4.47)
Comment 4 Quanah Gibson-Mount 2018-12-19 17:20:10 UTC
changed notes
changed state Release to Closed