CVE-2026-125634: Samba AD DC crashes when a computer account drops its name while updating its DNS host name or SPN

ByLinuxtastic

December 1, 2026 #CVE, #Samba

A Samba Active Directory domain controller crashes when a computer account updates its own DNS host name or service principal name and, in the same LDAP modify, removes its sAMAccountName. The ACL module’s checks for those two attributes read the account name after the request has taken it away and never test that it is there, so the directory process dereferences NULL and exits. A low-privileged domain user who can write those attributes on their own machine account, which is the default for the account that joined it, can repeat the modify as often as they like and keep the domain controller down. There is no Samba release with the fix on 1 December 2026; this page is a draft until one can be named. Until then, restrict who can modify dNSHostName and servicePrincipalName on computer accounts to the accounts that need to, and watch for samba restarts in the journal.

CVE-2026-125634 at a glance.

ComponentSamba, the Active Directory domain controller’s ACL module: acl_check_dns_host_name() and acl_validate_spn_value() in source4/dsdb/samdb/ldb_modules/acl.c. Only builds with the AD DC compiled in (--with-ad-dc, the default in Debian, Ubuntu, Arch and Alpine; not RHEL’s)
Affected versionsSamba 4.17.0 and every later release, per the Red Hat CNA record; 4.25.2 of 30 November 2026 is the newest release and its notes do not carry the fix
Fixed inNot established on 1 December 2026. The record now names GitLab merge request 4893 beside Samba bug 16248: opened 26 November 2026 against master by Pavel Kopylov, three commits (the NULL checks in the SPN validation and the dNSHostName check, plus tests for validated writes without sAMAccountName), full CI passed, not merged on the page read on 1 December; it replaces merge request 4800, now closed. samba.org has no advisory page for this CVE, its security history has no entry, and the 4.25.2 and 4.25.1 release notes do not mention it. The bug tracker refused our reader. This row will be updated when a release carries the fix
SeverityRed Hat (CNA) CVSS 3.1 6.5 Medium (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), CWE-476; NVD Awaiting Analysis with the CNA score as primary. Red Hat Moderate and not affected (RHEL builds without the AD DC); Ubuntu Medium; Debian no urgency set
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS 0.79% (53rd percentile) on 30 November 2026
Who is exposedSamba AD domain controllers, which on Linux means Debian, Ubuntu, Arch, Alpine, openSUSE and self-built Samba at 4.17 or later running as samba with server role = active directory domain controller. The attacker is any domain member with write access to a computer account’s DNS host name or SPN, which by default is the user who joined that machine, and the outcome is a crashed directory process, repeated at will. File servers, member servers and NT4-style domain controllers do not run the AD DC’s ACL module and are outside this bug; so is every RHEL-family build
PublishedRed Hat CNA record 25 November 2026, updated 1 December with the new merge request (Red Hat’s page gives a public date of 1 November); this page built 1 December 2026, last updated 1 December 2026 (evening, the merge-request change)

What it is

In an Active Directory domain a computer account may update two attributes about itself without administrator rights: its dNSHostName and its servicePrincipalName values. Both are security-relevant, because an SPN decides which service tickets a machine can decrypt, so Samba’s ACL module validates every write to them: the new DNS host name must match the account, and every SPN must be built from the account’s own name and host name. Both checks read the account’s sAMAccountName to do that. The record describes the flaw plainly: “the checks read the account name after a request that removes it, and they do not test that the value is present.” An LDAP modify can carry several changes at once; one that deletes sAMAccountName and sets a DNS host name or SPN in the same operation leaves the checks holding a NULL pointer, and “the directory process crashes. Repeating the modify keeps the directory service unavailable.”

Whether the modify would have been refused afterwards does not matter; the crash happens in the check. The privilege needed is PR:L, the write right on the account’s own attributes, which the account that joined the machine holds, and no interaction from anyone else is required. The affected range starts at 4.17.0, which is where this version of the validation code arrived, and runs to the current release.

The fix is merge request 4800 on Samba’s GitLab, named in the record, and it will be a NULL check in the two functions. We could not read the merge request’s state, samba.org has published no advisory for this id, and the 4.25.2 release of 30 November 2026 closes a different CVE, so no release can be named yet. Red Hat credits Pavel Kopylov with the report. Red Hat’s own builds compile Samba without the AD DC, so “no Red Hat products are affected” and Red Hat’s mitigation row reads “not applicable”; that is a statement about RHEL packaging, not about the bug.

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. The only question that matters per distribution is whether its samba package includes the AD DC.

DistributionStatusFixed package
AlpineNot consulted for this page; Alpine’s samba-dc package builds the AD DC and is affected on the upstream range—
Debianvulnerable in 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); source “(unfixed)”nothing on 1 December 2026
UbuntuMedium (page 26 November, updated 30 November); samba needs evaluation on every release from 14.04 to 26.10nothing on 1 December 2026
RHEL, Rocky, Alma, CentOS StreamNot affected: RHEL 6 to 10 and OpenShift’s RHCOS build Samba with --without-ad-dc, so the ACL module is not compiled; Moderate 6.5 as a rating of the upstream bugnot needed
openSUSE/SLENot consulted for this page; openSUSE builds the AD DC, SLE does not—
Arch, Fedora, self-built Samba, Samba appliances (Univention, TurnKey and others)The upstream range applies to any build with the AD DCthe release that carries MR 4800, when there is one

How to check

Three questions, in order: is this host an AD domain controller at all, which Samba version is it, and has the samba process been restarting. The first rules out most Samba installations, which are file servers.

# 1. role: only "active directory domain controller" runs the AD DC's ACL module
testparm -s 2>/dev/null | grep -i 'server role'
systemctl is-active samba samba-ad-dc 2>/dev/null

# 2. version: 4.17.0 and later are affected, and no release is fixed yet
samba -V 2>/dev/null || smbd -V
dpkg -l samba 2>/dev/null | awk '/^ii/{print $2, $3}'; rpm -q samba 2>/dev/null; apk version samba-dc 2>/dev/null

# 3. has the directory process been dying? a crash here is a restart of samba with a signal in the log
journalctl -u samba -u samba-ad-dc --since '7 days ago' | grep -iE 'signal|core|dumped|terminated|restart' | tail -20
grep -iE 'PANIC|INTERNAL ERROR|Signal' /var/log/samba/log.samba 2>/dev/null | tail -20

A host whose role is not the AD DC is outside this bug whatever its version. A domain controller at 4.17 or later is affected until a fixed release exists; the exposure is every domain account that can write its own machine’s attributes, which is to say every joined workstation. A PANIC or signal in step 3 on a DC with no other explanation deserves a look at which account’s LDAP modify preceded it, in log.samba at log level 3 or above or in the audit log if dsdb_audit is on.

How to fix it

Upgrade to the release that carries the fix once it exists and restart samba; this page will name it. Until then the controls are narrower and are about who can write the two attributes. The default that lets the joining user write them is the convenience that the bug turns against you.

# when the fixed release is packaged
apt update && apt install --only-upgrade samba && systemctl restart samba-ad-dc
apk upgrade samba-dc && rc-service samba restart

# interim: find who can write dNSHostName / servicePrincipalName on computer accounts, and tighten it where it is not needed
samba-tool dsacl get 'CN=Computers,DC=example,DC=com' 2>/dev/null | grep -iE 'dNSHostName|servicePrincipalName|WP;;'
# make the service restart on its own so a crash is an interruption rather than an outage
systemctl edit samba-ad-dc   # add: [Service] Restart=on-failure RestartSec=5

Automatic restart is damage limitation, not a fix: the attacker’s next modify crashes the new process too. What not to do: do not remove the ACL module’s validation by lowering the DC’s security settings, because the SPN check it performs is what stops a machine account from claiming a ticket for another service; and do not read Red Hat’s “not affected” as a statement about Samba, since it describes a build that does not include the domain controller at all.

Sources

  • CVE-2026-125634 at CVE.org — the Red Hat CNA record (25 November 2026): the description naming the two functions and the file, affected from 4.17.0, CVSS 3.1 6.5, CWE-476, references to Samba bug 16248 and merge request 4800
  • Red Hat CVE page and its security data record — Moderate, the --without-ad-dc statement, “no Red Hat products are affected”, acknowledgement to Pavel Kopylov; Red Hat bug 2583971
  • Samba merge request 4800 and Samba bug 16248 — the fix and its tracking bug, both named in the record; the bug tracker refused our reader and the merge state could not be read
  • Samba security releases and the 4.25.2 release notes (30 November 2026) — no entry for this CVE on 1 December 2026
  • NVD entry — Awaiting Analysis; published 25 November; the CNA score as primary, CWE-476
  • Distribution trackers: Debian (vulnerable in every suite, unfixed) · Ubuntu (Medium, needs evaluation) · SUSE (not consulted)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00791, percentile 0.529, dated 30 November 2026

Related reading

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.