Bug 2497697 (CVE-2026-14940) - CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN
Summary: CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normaliza...
Keywords:
Status: NEW
Alias: CVE-2026-14940
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: 2497718
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-07 12:35 UTC by OSIDB Bzimport
Modified: 2026-07-07 13:44 UTC (History)
11 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-07 12:35:41 UTC
Valid heap-buffer-overflow in slapi_dn_normalize_ext() -> sort_rdn_avs() ->
rdn_av_swap() (ldap/servers/slapd/dn.c). Triggered when a DN contains a legacy-quoted
value encoding a multivalued nested RDN. On closing quote, nested attribute-value
tracking is not finalized; a subsequent separator can leave stale pointers that
produce overlapping berval entries. In-place sorting then writes past the heap
allocation in rdn_av_swap().
Reachable pre-auth via any LDAP operation whose DN is normalized (search base DN
confirmed). Reproduced on RHEL 9.8 (389-ds-base-2.8.0-7.el9_8) with reporter PoC.
Production behavior (no ASAN/MALLOC_CHECK_): malformed DN often returns err=34
(Invalid DN syntax); server continues. With MALLOC_CHECK_=3: general protection
fault in libc, ns-slapd terminates.


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