https://bugs.openldap.org/show_bug.cgi?id=9643
Issue ID: 9643 Summary: back-wt: entry_decode failure. Product: OpenLDAP Version: 2.5.6 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: --- Component: backends Assignee: bugs@openldap.org Reporter: hamano@osstech.co.jp Target Milestone: ---
https://bugs.openldap.org/show_bug.cgi?id=9463
ondra mentioned:
e.g. ./run -b wt -l 50 test034
I reproduced the issue by iterating test034. And I figure out the issue is in entry_encode/decode. It happens stochastically by reading memory outside the malloc area when decoding special entry (only dn entry without attributes). Since entry_encode/decode was originally used by back-bdb and back-hdb, these backends also had this problem. Currently It seems that only back-wt is using entry_encode/decode. I'll fork entry_encode/decode and create wt_entry_encode/decode. Then, we can remove entry_encode/decode.
https://bugs.openldap.org/show_bug.cgi?id=9643
--- Comment #1 from HAMANO Tsukasa hamano@osstech.co.jp --- When this issue occurs, the following log will be output.
~~~ wt_modrdn: parent dn=ou=users,o=translucent entry_decode: "uid=fred,ou=users,o=translucent" <= entry_decode: str2ad(): AttributeDescription contains inappropriate characters <= entry_decode: slap_str2undef_ad(): AttributeDescription contains inappropriate characters wt_dn2entry: entry decode error: 17 <== wt_modrdn: wt_dn2entry failed (17) ~~~
https://bugs.openldap.org/show_bug.cgi?id=9643
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.7.0
https://bugs.openldap.org/show_bug.cgi?id=9643
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.7.0 |2.6.1
https://bugs.openldap.org/show_bug.cgi?id=9643
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|bugs@openldap.org |hamano@osstech.co.jp
https://bugs.openldap.org/show_bug.cgi?id=9643
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.6.1 |2.6.0
https://bugs.openldap.org/show_bug.cgi?id=9643
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |IN_PROGRESS Ever confirmed|0 |1
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/394
https://bugs.openldap.org/show_bug.cgi?id=9643
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |TEST
--- Comment #3 from Quanah Gibson-Mount quanah@openldap.org --- Commits: • ccb4f485 by HAMANO Tsukasa at 2021-09-02T15:25:39+00:00 ITS#9643 Fix out of bounds read in entry_decode()
https://bugs.openldap.org/show_bug.cgi?id=9643
--- Comment #4 from Quanah Gibson-Mount quanah@openldap.org --- RE26:
Commits: • c6eb8e56 by HAMANO Tsukasa at 2021-09-02T16:19:50+00:00 ITS#9643 Fix out of bounds read in entry_decode()
https://bugs.openldap.org/show_bug.cgi?id=9643
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED
https://bugs.openldap.org/show_bug.cgi?id=9643
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|TEST |FIXED