https://bugs.openldap.org/show_bug.cgi?id=10491
Issue ID: 10491
Summary: constraint_attribute <attrs...> count doesn't work
with multiple attributes
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: overlays
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
constraint_check_count_violation (run on Modifies/Renames) only really checks
the last attribute in the list. Fix is coming.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10492
Issue ID: 10492
Summary: slapd: send_ldap_result must massage return code
before handling abandon
Product: OpenLDAP
Version: 2.6.13
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: slapd
Assignee: bugs(a)openldap.org
Reporter: hyc(a)openldap.org
Target Milestone: ---
send_ldap_result checks if rs->sr_err == LDAP_REFERRAL and rs->sr_ref == NULL.
In that case, there's no actual referral to send so it changes rs->sr_err to
LDAP_NO_SUCH_OBJECT. Later send_ldap_response checks if rs->sr_ref == NULL and
asserts if rs->sr_err == LDAP_REFERRAL.
If an op was abandoned, the adjustment in send_ldap_result was being skipped,
allowing the assert in send_ldap_response to get triggered. The fix is to move
the check for abandon to after the error code adjustment has occurred.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10485
Issue ID: 10485
Summary: potential division by zero in tier bestof
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: lloadd
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
In rare cases gettimeofday could fall on tv_usec == 0 so we will just accept
it's been exactly 1 second and go with that.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10482
Issue ID: 10482
Summary: Accesslog leaks UUID buffer when operation not logged
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: overlays
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
Fix incoming
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10483
Issue ID: 10483
Summary: slapo-chain leaks structures added online
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: overlays
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
chain_ldadd stores the DB in ce->ce_be, but there is no teardown of these on
shutdown so they get leaked and no way for ldap_chain_db_destroy to reach them
either.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10481
Issue ID: 10481
Summary: cn=config leaks data in error path
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: backends
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
Attempting an Add when objectclass is not known leaks in-progress structures.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10493
Issue ID: 10493
Summary: change in 2.6.13 for ber_bvreplace_x introduces out of
bounds reads
Product: OpenLDAP
Version: 2.6.13
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: libraries
Assignee: bugs(a)openldap.org
Reporter: dirk(a)dmllr.de
Target Milestone: ---
2.6.13 includes the patch for "Fixed liblber ber_bvreplace_x potential NULL
dereference"
However, this now introduces OOB reads.
If ber_memrealloc_x fails to allocate memory, the function executes
AC_MEMCPY( dst->bv_val, src->bv_val, dst->bv_len + 1 );
Because `dst->bv_len` was not updated to `src->bv_len`, `AC_MEMCPY` copies
exactly `dst->bv_len + 1` bytes from `src`. Since `src` is strictly larger than
the old `dst->bv_len`, the byte copied into the final position
(`dst->bv_val[dst->bv_len]`) will be the corresponding character from `src`,
**not a null-terminator**.
This leaves the `dst->bv_val` buffer without a null-terminator. Any subsequent
string-based operations (like `strlen`, `printf`, or logging functions) acting
on the `berval`'s `bv_val` will read out-of-bounds into adjacent heap memory
until it randomly hits a null byte, leading to a heap buffer over-read (OOB
Read) or information leak.
Similarly, if the source buffer was not null-terminated and was precisely sized
to its length, it reads 1 byte past the end of src->bv_val, which is an
Out-of-Bounds Read that could lead to crashes or leaking adjacent memory.
suggest to use this instead:
if ( dst->bv_val != NULL ) {
AC_MEMCPY( dst->bv_val, src->bv_val, dst->bv_len );
dst->bv_val[dst->bv_len] = '\0';
}
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10498
Issue ID: 10498
Summary: libldap OpenSSL 4 compatibility
Product: OpenLDAP
Version: 2.6.13
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: libraries
Assignee: bugs(a)openldap.org
Reporter: rainer.jung(a)kippdata.de
Target Milestone: ---
Created attachment 1145
--> https://bugs.openldap.org/attachment.cgi?id=1145&action=edit
Patch for libldap OpenSSL 4 compatibility
libldap uses direct access to struct members made opaque in OpenSSL 4.
Alternative getter methods needed to access the struct members seem to be
available since OpenSSL 1.1.0, so very long ago. I suggest the attached
(trivial) patch to replace direct access with getter methods.
The patch is based on OpenLDAP 2.6.13. From visual code inspection it seems the
problem also exists in the master branch.
I did not try to compile the rest of OpenLDAP with OpenSSL 4, just libldap.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10501
Issue ID: 10501
Summary: slapadd should ignore SLAP_AT_DYNAMIC attributes from
input
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: slapd
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
We say a backup should be done with slapcat (preferably) or `ldapsearch -MM '*'
+`, but the latter will include attributes that should never be stored. Admins
don't always know which those are and then they pollute the DB copy if present.
slapadd should just silently skip them on load.
--
You are receiving this mail because:
You are on the CC list for the issue.
https://bugs.openldap.org/show_bug.cgi?id=10505
Issue ID: 10505
Summary: lloadd doesn't fully validate incoming msgids
Product: OpenLDAP
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: needs_review
Severity: normal
Priority: ---
Component: lloadd
Assignee: bugs(a)openldap.org
Reporter: ondra(a)mistotebe.net
Target Milestone: ---
This can allow rogue clients reach an assert(0) with the right timing.
--
You are receiving this mail because:
You are on the CC list for the issue.