Summary
A type confusion flaw (CWE-843) exists in ldapsrv_do_call() (ldap_backend.c) in the Samba LDAP server. While checking an unauthenticated connection, the function reads an LDAP extended response as if it were an extended request. Samba versions from 4.7.0rc1 onward are affected. No fixed version is listed in the record.
Per the CVSS vector (7.5, high), the attack is network-based, low complexity, and requires no authentication or user interaction. The attacker sends an extended response as the first LDAP message. The process that accepted the connection also serves other LDAP clients, so it exits and disconnects them. The replacement process crashes when the message is resent, and each subsequent restart is delayed longer.
The result is denial of service: repeating the message keeps the domain controller's LDAP service from staying available. Confidentiality and integrity are not affected. The flaw is not in the CISA KEV catalog, and no EPSS data is available.
Who is affected
Organizations running Samba (4.7.0rc1 and later) as an Active Directory domain controller with a reachable LDAP service. Red Hat states its products are not affected.
What to do
- Check the Samba version on domain controllers (e.g. samba --version) and confirm whether the AD DC role is in use.
- Follow the official Samba team advisory (bugzilla.samba.org bug 16306, merge request 4819) and apply the fixed release as soon as it is published.
- Restrict network access to domain controller LDAP ports (389/636) to trusted networks and clients only.
- Monitor logs for repeated Samba LDAP process crashes and restarts as a sign of possible attack.
- For Red Hat systems: Red Hat states mitigation is not applicable because its products are not affected. Confirm this at access.redhat.com/security/cve/CVE-2026-125628.
Vendor workaround
Mitigation is not applicable because no Red Hat products are affected.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-843 Access of Resource Using Incompatible Type
References
- access.redhat.com/security/cve/CVE-2026-125628
- bugzilla.redhat.com/show_bug.cgi?id=2587434
- bugzilla.samba.org/show_bug.cgi?id=16306
- gitlab.com/samba-team/samba/-/merge_requests/4819
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.