Bug 2497718 - CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN [fedora-all]
Summary: CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normaliza...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: 389-ds-base
Version: 45
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: mreynolds
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["b25174f7-5fe7-4916-a80c-4...
Depends On:
Blocks: CVE-2026-14940
TreeView+ depends on / blocked
 
Reported: 2026-07-07 13:44 UTC by Samuele Negrini
Modified: 2026-08-17 15:15 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
fedora-admin-xmlrpc: mirror+


Attachments (Terms of Use)

Description Samuele Negrini 2026-07-07 13:44:28 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Aoife Moloney 2026-08-17 15:15:33 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


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