Samba’s Active Directory domain controller answers LDAP with its own server, and before a connection has authenticated that server checks each incoming message to decide what to log and whether to allow it. The check in ldapsrv_do_call() “reads an extended response as an extended request”: the case label uses the response tag where it should use the request tag, so an attacker who sends an extended response as the first message makes the code treat the response’s result-code bytes as a request name and hand them to strcmp(). The worker process faults, and because that process also serves other LDAP clients, they are disconnected with it; Samba’s prefork model starts a replacement, which the next message crashes, and “each further crash waits longer before the next replacement starts”, up to 120 seconds, “so repeating the message keeps the LDAP service from staying available”. Keep the LDAP ports of every Samba AD DC reachable only from the networks that need them until a fixed release ships; no Samba release carried the fix on 1 December 2026, and the merge request that does is the thing to watch. File servers that are not domain controllers, and Red Hat’s builds, which omit the AD DC, are not affected.
CVE-2026-125628 at a glance.
| Component | Samba, the AD DC LDAP server: ldapsrv_do_call() in source4/ldap_server/ldap_backend.c, the pre-bind check that inspects a message’s type. Present only in builds with the AD DC (samba run with server role = active directory domain controller); the default prefork process model is the one the reporters describe |
| Affected versions | Samba 4.7.0rc1 and every release since, including 4.25.1 and master (the wrong tag arrived in commit f4a4522d of 3 March 2017; 4.6.16 does not contain it). Red Hat Enterprise Linux 6 to 10 ship Samba built --without-ad-dc and are not affected |
| Fixed in | No Samba release carried the fix on 1 December 2026. 4.25.2, released 30 November 2026, does not list this CVE or bug 16306. The fix is GitLab merge request !4819 “CVE-2026-125628: s4:ldap_server: fix ExtendedRequest tag in pre-bind check” (Denis Rastyogin, opened 12 November 2026, two commits: an smbtorture test samba4.ldap.extended-response and the one-label fix); GitLab refused our reader for its merge state. Fedora’s bugs for 43, 44 and rawhide were open with no fixed version |
| Severity | Red Hat (CNA) CVSS 3.1 7.5 High (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H), marked draft and “preliminary”; NVD Awaiting Analysis with that vector; Red Hat Important. CWE-843 (type confusion). Samba.org publishes no advisory page for this CVE yet; SUSE, Debian, Ubuntu and Alpine trackers were unreachable or silent on 1 December 2026 |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.27). EPSS: no score yet |
| Who is exposed | every Samba domain controller whose LDAP ports (389, 636, 3268, 3269) can be reached by an untrusted host: the attacker needs no account, no bind and one message, and can repeat it to keep the directory down. Samba file and print servers (smbd alone, server role standalone or member server) do not run this code; neither do RHEL-family builds, which omit the AD DC entirely |
| Published | CVE record 30 November 2026 (Red Hat CNA; Red Hat’s own page carries a public date of 11 November, which matches the merge request’s 12 November opening); this page built 1 December 2026, last updated 1 December 2026 |
What it is
LDAP has a message type for extended operations in both directions: an ExtendedRequest from the client, and an ExtendedResponse from the server, carrying a result code and optional response name. Samba’s AD DC LDAP server, before a connection binds, looks at each message to decide whether it is one of the few operations allowed unauthenticated and what to log about it. The record describes the confusion plainly: “the function reads an extended response as an extended request while checking a connection that has not authenticated”. The Red Hat bug says why: the logging check “uses LDAP_TAG_ExtendedResponse where it should use the ExtendedRequest tag, so strcmp() dereferences the result code bytes”. A response has no request name; what sits at that offset is the result-code integer, and treating it as a pointer to a string faults the process.
The impact is a denial of service with a multiplier. “The process that accepted the connection also serves other LDAP clients. That process exits, which disconnects those clients, and the directory starts a replacement process.” Samba’s prefork process model restarts a crashed worker with an increasing delay, and the Red Hat bug puts the backoff at up to 120 seconds, so an attacker who keeps sending the same message keeps the LDAP service, and with it Kerberos ticket issuance that depends on the directory and every Windows and Linux client’s logon, from staying up. The record credits Denis Rastyogin, who also wrote the fix. The wrong tag has been there since a 2017 commit by Andrew Bartlett, which is why the affected range starts at 4.7.0rc1.
Red Hat is the CNA here because it files records for upstream components it ships, and its own products are not affected: its statement says RHEL 6 to 10 “ship Samba built with --without-ad-dc, so the vulnerable code is absent”, and OpenShift’s images inherit those builds. The people this concerns are everyone else running a Samba AD DC: Debian, Ubuntu, SUSE, Fedora, Alpine, Arch, distribution-neutral packages such as those from Samba’s own vendors, and self-built domain controllers.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. Only Red Hat had a statement; most trackers had not yet picked the CVE up.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker refused our reader on 1 December 2026 | — |
| Debian | The CVE was not yet listed on the samba source-package page on 1 December 2026; the package versions there (bookworm 2:4.17.12+dfsg-0+deb12u4, trixie 2:4.22.11+dfsg-0+deb13u1, forky and sid 2:4.25.1+dfsg-1) are all in the affected range when built with the AD DC, which Debian’s are | nothing on 1 December 2026 |
| Ubuntu | Tracker refused our reader on 1 December 2026 | not read |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.5 (bug 2587434), but Not affected on every product: RHEL 6 to 10 build Samba --without-ad-dc; the OpenShift RHCOS images likewise. Fedora bugs 2587448 (43), 2587449 (44) and 2587450 (rawhide) open, NEW, no fixed version | not needed on RHEL; nothing for Fedora on 1 December 2026 |
| openSUSE/SLE | Tracker refused our reader on 1 December 2026 | not read |
| Arch; source builds; third-party Samba AD packages | Not consulted; no upstream fixed version exists yet | a release carrying merge request !4819, when one ships |
How to check
Three questions, in order: is this host a Samba domain controller at all, which Samba is it, and from where can its LDAP ports be reached. The first clears every file server.
# 1. the role: only "active directory domain controller" runs the AD DC LDAP server
testparm -s 2>/dev/null | grep -iE '^\s*server role'
samba-tool domain info 127.0.0.1 2>/dev/null | head -3
pgrep -a samba | head -3 # the AD DC runs as "samba", a file server as "smbd" only
# 2. the version (4.7.0rc1 and later are affected; no release is fixed yet)
samba --version 2>/dev/null || smbd --version
dpkg -l samba 2>/dev/null | awk '/^ii/{print $2, $3}'; rpm -q samba samba-dc 2>/dev/null
# 3. who can reach LDAP: listeners, and the firewall's view of them
ss -tlnp | grep -E ':(389|636|3268|3269)\s'
nft list ruleset 2>/dev/null | grep -nE '389|636|3268|3269'; iptables -S 2>/dev/null | grep -nE '389|636|3268|3269'
# the log line a crash leaves behind (the prefork restart with a growing delay)
journalctl -u samba-ad-dc --since -24h 2>/dev/null | grep -ciE 'ldap.*(exited|restart|backoff|panic)'A host whose server role is not the domain controller is done; so is any RHEL-family host, whose packages have no AD DC. A domain controller on any release since 4.7 is affected, and if step 3 shows port 389 or 636 open to a network with untrusted hosts on it, anyone there can take the directory down and keep it down. The journal count at the end is the sign it is already happening.
How to fix it
There is no package to install yet. When a Samba release or a distribution update carries the fix, upgrade and restart the samba-ad-dc service; until then, the fix is a one-label patch that a site building its own Samba can apply from the merge request, and the mitigation below is the answer for everyone else.
# when the fixed packages land
apt update && apt install --only-upgrade samba && systemctl restart samba-ad-dc # Debian / Ubuntu
zypper patch && systemctl restart samba-ad-dc # SUSE
dnf upgrade samba-dc && systemctl restart samba # Fedora
# self-built: apply the fix from merge request !4819 (two commits) and rebuild
git fetch https://gitlab.com/samba-team/samba.git refs/merge-requests/4819/head && git cherry-pick FETCH_HEAD~1..FETCH_HEADThe mitigation is the one that always applies to a domain controller and is often skipped: LDAP, LDAPS and the global catalogue ports should answer only to the subnets that hold domain members and administrators. An unauthenticated message is all the attack needs, so a password policy, TLS or ldap server require strong auth do nothing here. What not to do: do not switch the process model to “standard” to escape the prefork backoff, because the crash then takes a fork per connection and the service still dies with each message; and do not disable the LDAP server on a DC, since Kerberos and every join and logon depend on it.
# mitigation: LDAP ports only from the subnets that need them (adjust the set; keep the DC's own peers in it)
nft add table inet dcguard 2>/dev/null
nft add chain inet dcguard in '{ type filter hook input priority -10; }'
nft add rule inet dcguard in tcp dport { 389, 636, 3268, 3269 } ip saddr { 10.0.0.0/8, 192.168.0.0/16 } accept
nft add rule inet dcguard in tcp dport { 389, 636, 3268, 3269 } drop
nft list table inet dcguard
# and alert on the restart loop
journalctl -u samba-ad-dc -f | grep -iE 'ldap.*(exited|restart|backoff)'Sources
- CVE-2026-125628 at CVE.org — the Red Hat CNA record (30 November 2026): the description, affected from 4.7.0rc1, CVSS 3.1 7.5, CWE-843, the credit, and the Red Hat products marked unaffected
- Red Hat bug 2587434 — the wrong tag, the
strcmp()dereference, the prefork backoff of up to 120 seconds, the introducing commitf4a4522dof 3 March 2017, and 4.25.1 and master as affected; Red Hat CVE page for the Important rating and the--without-ad-dcstatement; Fedora bug 2587448 (NEW, no fixed version) - Samba merge request !4819 — the fix and its test, opened 12 November 2026 by Denis Rastyogin; GitLab refused our reader for the merge state, the changed files and the API. Samba bug 16306 refused our reader; Samba 4.25.2 release notes (30 November 2026) do not mention this CVE or bug
- NVD entry — Awaiting Analysis; the CNA’s vector; no CPEs
- Distribution trackers: Debian (not yet listed) · Ubuntu, SUSE and Alpine (refused on 1 December)
- CISA KEV catalogue 2026.11.27, not listed · EPSS: no score for this CVE on 1 December 2026
Related reading
- CVE-2026-125635: Samba libldb extended response type confusion (forthcoming) — the companion record from the same reporter, in the client-side LDAP library
- CVE-2026-99389: Linux kernel ksmbd overflows its buffer converting long directory names to UTF-16 — the other SMB server on this site, with the same “one message from an unauthenticated client” shape
- CVE-2026-99563: Linux kernel SMB Direct listener keeps failed connections until nothing can connect — a denial of service that, like this one, is about keeping a listener down rather than getting in
- Hardening a Public-Facing Service Beyond the Basics — why a directory server’s ports are a network-policy question before they are an authentication one
- The Half of Patching That Happens After the Patch is Installed — what to do in the weeks before the package exists
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.
