
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-125628 is a type confusion vulnerability in the ldapsrv_do_call() function within ldap_backend.c of Samba's LDAP server, enabling unauthenticated remote attackers to cause a persistent denial of service against Active Directory Domain Controller (AD DC) LDAP services. The flaw was introduced in Samba 4.7.0rc1 (commit f4a4522d1f8c19fdf142e12760160b15de1557ec, March 2017) and affects all versions from 4.7.0rc1 onward through at least 4.25.1 and the current master branch. It was publicly disclosed on November 30, 2026, with a CVSS v3.1 base score of 7.5 (High) (Red Hat Advisory, Github Advisory).
The root cause is CWE-843 (Access of Resource Using Incompatible Type). In ldapsrv_do_call(), when authz_logged is false (i.e., the connection has not yet authenticated), the code incorrectly uses LDAP_TAG_ExtendedResponse to read call->request->r.ExtendedRequest and calls strcmp() on the oid field. However, ldap_decode() stores an extended response in r.ExtendedResponse, meaning the oid field's memory location actually holds the LDAP result code and alignment padding — not a valid OID string. When strcmp() dereferences this invalid pointer, it triggers a SIGSEGV, which Samba's fault handler converts into a smb_panic() abort of the LDAP worker process. In the default prefork model, each worker serves multiple clients; when a worker crashes, those clients are disconnected and a replacement worker is started with increasing backoff delays (up to 120 seconds), allowing an attacker to keep the service unavailable by repeatedly sending the malformed message (Red Hat Bugzilla, Red Hat Advisory).
Successful exploitation results in a persistent denial of service against Samba's AD DC LDAP service (port 389). Each crash disconnects all clients served by the affected worker process, and repeated exploitation causes increasing restart delays (up to 120 seconds per cycle, with 4 default prefork children), effectively keeping the LDAP service unavailable for extended periods. There is no confidentiality or integrity impact; however, disruption of the AD DC LDAP service can prevent authentication and directory lookups for all domain-joined systems, potentially causing broad operational impact across an organization's Active Directory environment (Red Hat Advisory, Red Hat Bugzilla).
No public proof-of-concept exploit code is known to exist, and there is no evidence of in-the-wild exploitation at this time (Github Advisory). The vulnerability is exploitable by unauthenticated network attackers in the default configuration of any Samba AD DC, requiring only the ability to send a single crafted LDAP extended response message to port 389. The EPSS score is approximately 0.0105 (low probability of exploitation in the near term), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The attack is automatable and requires no user interaction (Feedly).
nmap -p 389 --open <target_range>). Confirm the target is running Samba 4.7.0rc1 or later as an Active Directory domain controller.0x78 / LDAP_TAG_ExtendedResponse) as the very first message on a new, unauthenticated TCP connection to port 389. This can be done using a low-level LDAP library or raw socket programming.ldapsrv_do_call() function will misinterpret it as an Extended Request, dereference an invalid pointer, and crash the LDAP worker process via SIGSEGV.0x78) as the first message on new connections.smb_panic() calls from the ldap_server process; log messages indicating LDAP worker process exits and restarts with increasing delays; entries referencing ldapsrv_do_call() or ldap_backend.c.samba or samba-ldap-worker); systemd or init logs showing frequent restarts of the LDAP service with backoff delays of 10, 20, 40... up to 120 seconds.ldap_backend.c stack frames.A patch is available via the Samba project's GitLab merge request (Samba MR #4819); administrators should apply the fix as soon as an updated Samba release incorporating this patch is available. As a network-level workaround, restrict access to TCP port 389 (LDAP) to trusted clients and networks using firewall rules, reducing the attack surface to authenticated or known hosts. Red Hat Enterprise Linux 6–10, Red Hat In-Vehicle OS 2, and Red Hat OpenShift are not affected because their Samba builds exclude the AD DC LDAP server module (--without-ad-dc) (Red Hat Advisory). Monitor for repeated LDAP worker crashes and unexpected service restarts as indicators of exploitation attempts.
Red Hat Product Security rated this vulnerability as having an Important security impact and credited Denis Rastyogin for reporting the issue, while clarifying that no Red Hat products are affected due to their build configuration (Red Hat Advisory). Security news outlet SecurityOnline.info covered the vulnerability in the context of broader Red Hat security advisories (SecurityOnline). ZeroPath published a dedicated technical blog post analyzing the vulnerability (ZeroPath Blog).
Fix availability across major Linux distributions and their releases.
bionic (esm-infra)
samba
devel
samba
focal (esm-infra)
samba
jammy
samba
noble
samba
resolute
samba
trusty (esm-infra-legacy)
samba
xenial (esm-infra-legacy)
samba
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."