Vulnerability DatabaseCVE-2026-125628

CVE-2026-125628: 
Samba vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Exploitation steps

  1. Reconnaissance: Identify Samba AD DC instances listening on TCP port 389 (LDAP) using network scanning tools such as Nmap (nmap -p 389 --open <target_range>). Confirm the target is running Samba 4.7.0rc1 or later as an Active Directory domain controller.
  2. Craft malformed LDAP message: Construct a raw LDAP packet containing an Extended Response message (tag 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.
  3. Send the crafted message: Establish a TCP connection to the target's LDAP port and immediately send the crafted Extended Response packet before any bind operation. The ldapsrv_do_call() function will misinterpret it as an Extended Request, dereference an invalid pointer, and crash the LDAP worker process via SIGSEGV.
  4. Repeat to sustain DoS: Close the connection and repeat the process. Each new connection to a replacement worker will trigger another crash. With each successive crash, the prefork backoff delay increases (up to 120 seconds), progressively degrading LDAP service availability for all connected clients (Red Hat Bugzilla, Red Hat Advisory).

Indicators of compromise

  • Network: Repeated unauthenticated TCP connections to port 389 (LDAP) from the same or rotating source IPs, each sending a single malformed packet and immediately closing; traffic patterns showing LDAP Extended Response messages (tag 0x78) as the first message on new connections.
  • Logs: Samba log entries showing repeated SIGSEGV/fault reports and 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.
  • Process: Repeated unexpected termination and restart of Samba LDAP worker processes (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.
  • File System: Core dump files generated by Samba worker crashes in the configured core dump directory, potentially referencing ldap_backend.c stack frames.

Mitigation and workarounds

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.

Community reactions

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).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Ubuntu

Unknown

bionic (esm-infra)

samba

Unknown

devel

samba

Unknown

focal (esm-infra)

samba

Unknown

jammy

samba

Unknown

noble

samba

Unknown

resolute

samba

Unknown

trusty (esm-infra-legacy)

samba

Unknown

xenial (esm-infra-legacy)

samba

Unknown

RHEL / CentOS

Affected

OpenShift

Not Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related Samba vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-135109HIGH7.5
  • Samba logoSamba
  • samba-tools
NoNoDec 04, 2026
CVE-2026-125628HIGH7.5
  • Samba logoSamba
  • ctdb-ceph-mutex
NoYesNov 30, 2026
CVE-2026-120376MEDIUM5.9
  • Samba logoSamba
  • ldb-tools
NoNoDec 04, 2026
CVE-2026-135111MEDIUM5.9
  • Samba logoSamba
  • ctdb-pcp-pmda
NoYesDec 01, 2026
CVE-2026-120377NONEN/A
  • Samba logoSamba
  • samba
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management