CVE-2026-125634: Samba: samba: null dereference in ad dc validated dns host name and spn checks
A NULL pointer dereference has been found in the aclcheckdnshostname() and aclvalidatespnvalue() functions in source4/dsdb/samdb/ldbmodules/acl.c of the Active Directory domain controller ACL module in the Samba package. The checks read the account name after a request that removes it, and they do not test that the value is present. A low-privileged network attacker or user who can update the DNS host name or service principal name of their own computer account can include a removal of sAMAccountName in that same LDAP modify. The directory process crashes. Repeating the modify keeps the directory service unavailable.
Affected Software
Event History
Frequently Asked Questions
Does exploitation require authentication or existing directory permissions?
Yes. The attacker must be a low-privileged network user who can update the DNS host name or service principal name of their own computer account.
Which Samba deployments are exposed?
The affected code is in Samba's Active Directory domain controller ACL module. The provided information does not identify exposure for other Samba roles.
What is the practical impact of a successful attack?
The directory process crashes, causing a denial of service. An attacker can repeat the malicious LDAP modify operation to keep the directory service unavailable.