Bug 2506102 (CVE-2026-16560) - CVE-2026-16560 389-ds-base: 389-ds-base: heap-buffer-overflow in rdn_av_swap on quoted multivalued RDN
Summary: CVE-2026-16560 389-ds-base: 389-ds-base: heap-buffer-overflow in rdn_av_swap ...
Keywords:
Status: NEW
Alias: CVE-2026-16560
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-22 12:29 UTC by OSIDB Bzimport
Modified: 2026-07-22 12:48 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-22 12:29:41 UTC
By using a multivalued nested RDN (e.g. attr: "cn=a+sn=b",dc=com" through function slapi_dn_normalize_ext(), an attacker is able to overruns the destination buffer of this function. Inside INQUOTEDVALUE, the parser tracks the nested AVs in subrdn_avs[] keyed by subtypestart. On the closing '"' the state
moves to B4SEPARATOR without finalizing that tracking. The next
outer separator then calls add_rdn_av(subtypestart, d, ...) with a
stale subtypestart and an advanced d, producing a berval that
overlaps a previously stored one. sort_rdn_avs() bubble-sorts these
entries; rdn_av_swap()'s in-place swap assumes "av1 immediately
precedes av2", and the overlap turns its memcpy into an
out-of-bounds write past the dest buffer


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