Bug 2497718

Summary: CVE-2026-14940 389-ds-base: 389-ds-base: heap-buffer-overflow in DN normalization via quoted multivalued RDN [fedora-all]
Product: [Fedora] Fedora Reporter: Samuele Negrini <snegrini>
Component: 389-ds-baseAssignee: mreynolds
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 45CC: abokovoy, jachapma, mreynolds, spichugi, tbordaz, vashirov
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---Flags: fedora-admin-xmlrpc: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["b25174f7-5fe7-4916-a80c-4c33ff8afa5a"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2497697    

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.