389ds 389-ds-base
389-ds-base: 389-ds-base: heap buffer overflow in sasl_io_recv() via padded sasl unbind
A heap buffer overflow flaw was found in the SASL I/O layer of 389 Directory Server (389-ds-base). After a successful SASL bind with integrity protection (SSF > 0), an authenticated attacker can send a specially crafted oversized LDAP UNBIND packet that is copied into a 512-byte heap receive buffer without a bounds check in sasl_io_recv() in sasl_io.c. This allows up to approximately 2 megabytes of attacker-controlled data to overflow the buffer, causing a denial of service (server crash). In FreeIPA and Red Hat Identity Management deployments, any domain user with a valid Kerberos ticket, any enrolled host, or any service account can trigger this vulnerability over the network after authenticating via GSSAPI. The vulnerable code path has existed since approximately 2013 (389-ds-base 1.3.2) and was not addressed by the CVE-2025-14905 fix, which patched a separate heap overflow in schema.c only.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.3.2, <= 3.3.0
Fixed in 8060020260702180044.0ca98e7e
Fixed in 8080020260702180836.f969626e
Fixed in 8100020260702145313.37ed7c03
Fixed in 9020020260703060155.1674d574
Fixed in 9040020260703055735.1674d574
Fixed in 0:3.2.0-8.el10_2
Fixed in 0:3.0.6-19.el10_0
Fixed in 0:1.3.11.1-13.el7_9
Fixed in 8100020260626120929.25e700aa
Fixed in 8040020260629123121.96015a92
Fixed in 8040020260629123121.96015a92
Fixed in 8060020260626130540.824efc52
Fixed in 8060020260626130540.824efc52
Fixed in 8080020260630025241.6dbb3803
Fixed in 8080020260630025241.6dbb3803
Fixed in 0:2.8.0-8.el9_8
Fixed in 0:2.2.4-19.el9_2
Fixed in 0:2.4.5-26.el9_4
Fixed in 0:2.6.1-22.el9_6
Fixed in 1783452100
Mitigation
Upgrade Red Hat Directory Server 11.5 E4S for RHEL 8 to 8060020260702180044.0ca98e7e or later.
Upgrade Red Hat Directory Server 11.7 E4S for RHEL 8 to 8080020260702180836.f969626e or later.
Upgrade Red Hat Directory Server 11.9 for RHEL 8 to 8100020260702145313.37ed7c03 or later.
Upgrade Red Hat Directory Server 12.2 E4S for RHEL 9 to 9020020260703060155.1674d574 or later.
Upgrade Red Hat Directory Server 12.4 E4S for RHEL 9 to 9040020260703055735.1674d574 or later.
Upgrade Red Hat Enterprise Linux 10 to 0:3.2.0-8.el10_2 or later.
Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:3.0.6-19.el10_0 or later.
Upgrade Red Hat Enterprise Linux 7 Extended Lifecycle Support to 0:1.3.11.1-13.el7_9 or later.
Upgrade Red Hat Enterprise Linux 8 to 8100020260626120929.25e700aa or later.
Upgrade Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support to 8040020260629123121.96015a92 or later.
Upgrade Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On to 8040020260629123121.96015a92 or later.
Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 8060020260626130540.824efc52 or later.
Upgrade Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On to 8060020260626130540.824efc52 or later.
Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 8080020260630025241.6dbb3803 or later.
Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 8080020260630025241.6dbb3803 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:2.8.0-8.el9_8 or later.
Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:2.2.4-19.el9_2 or later.
Upgrade Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions to 0:2.4.5-26.el9_4 or later.
Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:2.6.1-22.el9_6 or later.
Upgrade Red Hat Directory Server 13.2 to 1783452100 or later.
Workaround
There is no complete workaround for this flaw. Mitigations that reduce exposure: 1. Restrict network access to LDAP ports (389/636) to trusted networks only. Note: In FreeIPA/IdM deployments, enrolled clients require LDAP access and this may not be practical. 2. If DIGEST-MD5 is not required, disable it via nsslapd-allowed-sasl-mechanisms in cn=config. GSSAPI/Kerberos cannot be disabled in FreeIPA/IdM without breaking domain authentication. 3. Monitor for oversized LDAP UNBIND packets (standard UNBIND is 7 bytes; alert on UNBIND packets exceeding ~100 bytes). 4. Lowering nsslapd-maxbersize reduces maximum overflow size but does not eliminate the vulnerability.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:36195
- Vendor advisory access.redhat.com/errata/RHSA-2026:36196
- Vendor advisory access.redhat.com/errata/RHSA-2026:36197
5 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:36198
- Vendor advisory access.redhat.com/errata/RHSA-2026:36200
- Vendor advisory access.redhat.com/errata/RHSA-2026:36201
- Vendor advisory access.redhat.com/errata/RHSA-2026:36202
- Vendor advisory access.redhat.com/errata/RHSA-2026:36204
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.