A NULL pointer dereference flaw 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.
-------- Forwarded Message -------- Subject: Heads-up: Upcoming Samba security releases on 2026-12-10 Date: Tue, 1 Dec 2026 23:17:09 +0100 From: Björn Jacke via samba-announce <samba-announce () lists samba org> Reply-To: Björn Jacke <bjacke () samba org> To: samba-announce () lists samba org, samba () lists samba org, samba-technical () lists samba org
Hi,
this is a heads-up that Samba security updates for 4.23, 4.24 and 4.25 are scheduled for 2026-12-10.
Details will be published along with the security releases.
Please make sure that your Samba servers will be updated soon after the release!
Cheers Björn -- Björn Jacke Release Manager Samba Team samba.org
(A NULL pointer dereference flaw has been found in the aclcheckdn ...)
An incorrect child count after a failed fork issue has been found in the smbdacceptconnection() function in source3/smbd/server.c of the smbd listener in the Samba package. The parent stores each failed attempt to create a worker in its list of children. The handler that runs when a child exits removes a process the kernel reports. A failed creation has no process for that handler to remove. A network attacker or user can open connections to the file server while the host cannot create another process. Each failed creation stays in the parent's count of children. When an administrator has set a maximum number of smbd processes, and the count reaches that maximum, the listener closes later connections and leaves those clients without a worker. The count remains after the host can create processes again, so clients stay unable to connect until smbd is restarted.
A missing authorization check has been found in the ldbmatchbitmask() function in ldbmatch.c of the LDAP matching module in the libldb library of Samba. The directory marks an attribute the caller is not allowed to read, and the bitwise comparison uses that value anyway. A low-privileged network attacker or user who can list a directory object searches for one bit of an integer attribute on that object. The directory includes the object when that bit is set, and it removes the attribute from the answer. Repeating the search for each bit discloses the integer. A value that is not an integer, including a password or a key stored as bytes, is not returned as a number.
A type confusion has been found in the ldapsrvdocall() function in ldapbackend.c of the LDAP server in the Samba package. The function reads an extended response as an extended request while checking a connection that has not authenticated. A network attacker or user sends an extended response as the first LDAP message. 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. Sending the message again crashes the replacement, and each further crash waits longer before the next replacement starts, so repeating the message keeps the LDAP service from staying available.
Samba : smbd parent counts failed fork() (pid -1) as a child, "max smbd processes" limit permanently exhausted
(A Type Confusion has been found in the dnstodnspconvert() funct ...)
(A NULL pointer dereference flaw has been found in the vlvvalueco ...)
ldapsrvdocall() in source4/ldapserver/ldapbackend.c uses the wrong message tag in the check that decides whether to log a connection that has not bound. When authzlogged is false, the arm labeled LDAPTAGExtendedResponse reads call->request->r.ExtendedRequest and calls strcmp() on oid.
ldapdecode() in libcli/ldap/ldapmessage.c stores an extended response in r.ExtendedResponse. ldapdecoderesponse() writes the result code into the ldapResult at the start of that arm. The oid field of ldapExtendedRequest occupies those same leading bytes. ldapsrvcallreaddone() decodes the packet and queues the call. ldapsrvprocesscalltrigger() calls ldapsrvdocall() with no bind check. The connection is allocated with talloczero(), so authzlogged is false for the first message. A later switch in ldapsrvdocall() calls ldapsrvExtendedRequest() for LDAPTAGExtendedRequest and calls ldapsrvunwilling() for a tag it does not list. The logging check runs before that switch. The wrong tag is present in samba 4.7.0rc1, in samba 4.25.1, and on the current master branch.
strcmp() dereferences the value in those leading bytes. Those bytes hold the result code and the alignment padding after it. They are not an OID string. The dereference faults the ldap worker. faultsetup() installs sigfault() for SIGSEGV, sigfault() calls faultreport(), and faultreport() calls smbpanic(), which aborts the worker. In the default prefork model the ldap service has its own master and workers, and each worker serves more than one client connection. Those connections end when the process exits. The prefork master starts a replacement worker. The first restart delay is 0. Each later exit of that worker adds the prefork backoff increment to the delay, up to the prefork maximum backoff. Those defaults are 10 seconds and 120 seconds. The default number of prefork children is 4. A caller who repeats the extended response can exit the ldap workers and leave them stopped for that delay. The rpc and kdc services are separate prefork services.
The caller is not authenticated. The logging check runs while authzlogged is false, which is the state of a new connection. The message is an LDAP extended response, and it is the first message on the connection.
The flaw is reachable in the default configuration of an AD DC. The serviceldap module is built when the AD DC build is enabled. ldapsrvtaskinit() starts the LDAP server only when the server role is an Active Directory domain controller, and that server listens on port 389. The default server services list includes ldap, and the samba process model defaults to prefork.
Introduced in samba 4.7.0rc1 by commit f4a4522d1f8c19fdf142e12760160b15de1557ec (Andrew Bartlett, 3 March 2017), when logging of LDAP access before a bind was added. The wrong tag has been in that logging check since that commit. It is present in samba 4.7.0rc1, in samba 4.7.0, in samba 4.25.1, and on the current master branch. samba 4.6.16 does not contain the commit.
ldbmatchbitmask() in lib/ldb/common/ldbmatch.c does not check whether the attribute it compares is inaccessible. ldbmatchmessage() skips ldbmustsuppressmatch() when the filter operation is LDBOPEXTENDED. The bitwise rules are that operation. Their callback is ldbmatchbitmask().
A search unpacks the record and calls the redact callback before the match. On an AD DC that callback is aclredactmsgforfilter() in source4/dsdb/samdb/ldbmodules/aclread.c. For an attribute named in the filter, aclredactattr() calls ldbmsgelementmarkinaccessible() when the caller lacks the access mask. A confidential attribute requires control access in addition to read property. A secret attribute is marked inaccessible for every caller. ldbmatchbitmask() then finds the element and calls ldbcomparatorbitmask(). That function parses the stored bytes and the filter value with strtoull(). The AND rule matches when every bit in the filter value is set in the stored value. The OR rule matches when any bit is set. The entry is selected when the comparison matches. aclreadcallback() later removes inaccessible values from the entry it sends on. A stored value that is not an integer makes ldbcomparatorbitmask() return LDBERRINVALIDATTRIBUTESYNTAX. A missing value does not match. ldbkvsearchandreturnbase() returns that syntax error. The full search stores LDBERROPERATIONSERROR.
The caller learns the integer. Each bit of an unreadable integer attribute selects or skips the entry, and the value is removed from the entry afterwards. msKds-CreateTime and msKds-UseStartTime are large integers, and msKds-Version is an integer. Provision stores them as decimal strings on the root key. msKds-RootKeyData is an octet string. The comparator does not return those bytes. The same comparison is the one that reports the syntax error when a non-integer value is present.
The caller is authenticated. aclreadcheckobjectvisible() allows the object when the caller has list rights on the parent. The container class default descriptor grants Authenticated Users read property and list contents. The root key class default descriptor grants read to Domain Admins, Enterprise Admins, and the system account. It does not grant that read to Authenticated Users. A confidential attribute also requires control access, which that user does not have, so the attribute is marked inaccessible. The search has no Domain Admin check.
The flaw is reachable in the default configuration of an AD DC. ldbinit() registers both bitwise rules. The acl search parameter defaults to true. The stock schema sets SEARCHFLAGCONFIDENTIAL on msKds-CreateTime, msKds-UseStartTime, and msKds-Version. Provision creates the root key that holds them.
Introduced on 14 February 2023 by Joseph Sutton in commit 9f31e4139c12262f5626108c6a883f07c4dd314e, "CVE-2023-0614 ldb: Centralise checking for inaccessible matches". The same change is in samba 4.16.10 (commit d60683e5e9daf243e9a2acc203b567c3a6c92567, ldb 2.5.3), samba 4.17.7 (commit b98f8c1af7770b49a447fdcc67ea64d98454955f, ldb 2.6.2), and samba 4.18.1 (commit 358894675d188b06cc0d24299012c898b394f99f, ldb 2.7.2). It is not in samba 4.16.9, samba 4.17.6, samba 4.18.0, or the 4.15 line through samba 4.15.13. It is present in samba 4.25.1 and on the current master branch.
dnstodnspconvert() in source4/rpcserver/dnsserver/dnsdata.c has no conversion for DNSTYPEHINFO. The default arm copies the request union onto the stored union with memcpy() of sizeof(union dnsRecordData).
DnssrvUpdateRecord() and DnssrvUpdateRecord2() call dnsserverupdaterecord(). An add, which supplies a record and no record to delete, calls dnsserverdbaddrecord(). That function calls dnstodnspconvert(), which copies dns->wType onto dnsp->wType and then takes the default arm for HINFO. The request arm is a DNSRPCNAME, a length and one string. The stored arm is a dnsphinfo, the strings cpu and os. The memcpy does not build those two strings from the name. dnsserverupdatesoa() then modifies the zone SOA record. When that modify is allowed, a new name is passed to dnsserverdbdoaddrec(), and an existing name is pushed later in dnsserverdbaddrecord(). Both pushes call ndrpushdnspDnssrvRpcRecord(). The HINFO arm pushes cpu through ndrpushdnspstring(), and that function calls strlen() on cpu. An update or a delete also calls dnstodnspconvert(). dnsrecordmatch() returns false for HINFO without reading cpu or os, so those two paths return before the push. This path is the same from samba 4.0.0alpha18 through samba 4.25.1 and on the current master branch.
strlen() on cpu faults the rpc worker process. In the default prefork model the rpc service has its own master and workers, and each worker serves more than one client connection. Those connections end when the process exits. The prefork master starts a replacement worker. The first restart delay is 0. Each later exit of that worker adds the prefork backoff increment to the delay, up to the prefork maximum backoff. Those defaults are 10 seconds and 120 seconds. A caller who repeats the add can exit the rpc workers and leave them stopped for that delay. The ldap and kdc services are separate prefork services.
The caller is authenticated. dcesrvinterfacednsserverbind() requires connection integrity, and dcesrvsamdbconnectasuser() opens the directory as that caller. The add reaches the push only when dnsserverupdatesoa() can modify the zone SOA. The default MicrosoftDNS descriptor grants that write to Domain Admins and DnsAdmins. The name being added can be new or already present, and the record type is HINFO.
The flaw is reachable in the default configuration of an AD DC. The dcerpcdnsserver module is built when the AD DC build is enabled. Provision writes the descriptor named above. The samba process model defaults to prefork, and the default server services list includes rpc.
Introduced in samba 4.0.0alpha18 by commit 8df2ed42cc4662bd385ea34169ebd3bcd4d8bc17 (Amitay Isaacs, 27 September 2011), when the DCERPC DNS server was added. The default memcpy has been in dnstodnspconvert() since that commit. It is present in samba 4.0.0, in samba 4.25.1, and on the current master branch.
vlvvaluecompare() in source4/dsdb/samdb/ldbmodules/vlvpagination.c looks up the sort attribute with ldbmsgfindelement() and passes el->values[0] to the attribute comparison function. The element pointer is used with no check that the lookup found an element.
A greater-than-or-equal Virtual List View search, control type 1, reaches this function from vlvresults() through vlvgteqtoindex(). The helper binary-searches the GUID list for that search. Each comparison looks the GUID up again and requests the sort attribute. serversort keeps an entry that has no value for the sort attribute and places that entry after entries that have a value, so the GUID stays in the list. The comparison lookup finds no element when the attribute is absent. It also finds no element when aclread has marked the attribute inaccessible and ldbmsgremoveinaccessible() has removed it, which is what happens when the caller cannot read the attribute. vlvvaluecompare() then reads el->values[0]. This path is the same from samba 4.5.0 through samba 4.25.1 and on the current master branch.
The read faults the LDAP worker process. In the default prefork model that worker serves multiple client connections, and those connections end when the process exits. The prefork master starts a replacement worker. The first restart delay is 0. Each later exit of that worker adds the prefork backoff increment to the delay, up to the prefork maximum backoff. Those defaults are 10 seconds and 120 seconds. A caller who repeats the search can exit the LDAP workers and leave them stopped for that delay.
The caller is authenticated and can search at least one directory object. rootdsefilteroperations() permits an anonymous operation only for a base-scoped search of an empty DN, unless dSHeuristics turns that block off. The search uses a server-side sort control and a greater-than-or-equal Virtual List View control. At least one returned object lacks the sort attribute, or the caller cannot read it.
The flaw is reachable in the default configuration. The vlv module is in the default sambadsdb module list. The acl search check defaults to enabled. The samba process model defaults to prefork.
Introduced in samba 4.5.0 by commit 79c58c2543790134ef8deb5307ec4b4ae069ea61 (Douglas Bagnall, 22 March 2016), when Virtual List View support was added. The unchecked use of el->values[0] has been in the function since that commit.
vlvvaluecomparerev() calls vlvvaluecompare() and returns the negated comparison, so a reverse greater-than-or-equal search uses the same missing element.
A flaw was found in Samba’s vfsworm module. The module is intended to provide write-once, read-many (WORM) protections by preventing modification of files after a configurable grace period. Due to insufficient validation during rename operations, an authenticated user with write access to a share could overwrite a protected file by renaming a newly created file over the existing WORM-protected file.
A path traversal vulnerability was identified in Samba when processing client pipe names connecting to Unix domain sockets within a private directory. Samba typically uses this mechanism to connect SMB clients to remote procedure call (RPC) services like SAMR LSA or SPOOLSS, which Samba initiates on demand. However, due to inadequate sanitization of incoming client pipe names, allowing a client to send a pipe name containing Unix directory traversal characters (../). This could result in SMB clients connecting as root to Unix domain sockets outside the private directory. If an attacker or client managed to send a pipe name resolving to an external service using an existing Unix domain socket, it could potentially lead to unauthorized access to the service and consequential adverse events, including compromise or service crashes.
A vulnerability was discovered in Samba, where the flaw allows SMB clients to truncate files, even with read-only permissions when the Samba VFS module "aclxattr" is configured with "aclxattr:ignore system acls = yes". The SMB protocol allows opening files when the client requests read-only access but then implicitly truncates the opened file to 0 bytes if the client specifies a separate OVERWRITE create disposition request. The issue arises in configurations that bypass kernel file system permissions checks, relying solely on Samba's permissions.
A vulnerability was found in Samba's "rpcecho" development server, a non-Windows RPC server used to test Samba's DCE/RPC stack elements. This vulnerability stems from an RPC function that can be blocked indefinitely. The issue arises because the "rpcecho" service operates with only one worker in the main RPC task, allowing calls to the "rpcecho" server to be blocked for a specified time, causing service disruptions. This disruption is triggered by a "sleep()" call in the "dcesrvechoTestSleep()" function under specific conditions. Authenticated users or attackers can exploit this vulnerability to make calls to the "rpcecho" server, requesting it to block for a specified duration, effectively disrupting most services and leading to a complete denial of service on the AD DC. The DoS affects all other services as "rpcecho" runs in the main RPC task.
A Type Confusion vulnerability was found in Samba's mdssvc RPC service for Spotlight. When parsing Spotlight mdssvc RPC packets, one encoded data structure is a key-value style dictionary where the keys are character strings, and the values can be any of the supported types in the mdssvc protocol. Due to a lack of type checking in callers of the dallocvalueforkey() function, which returns the object associated with a key, a caller may trigger a crash in tallocgetsize() when talloc detects that the passed-in pointer is not a valid talloc pointer. With an RPC worker process shared among multiple client connections, a malicious client or attacker can trigger a process crash in a shared RPC mdssvc worker process, affecting all other clients this worker serves.
An infinite loop vulnerability was found in Samba's mdssvc RPC service for Spotlight. When parsing Spotlight mdssvc RPC packets sent by the client, the core unmarshalling function slunpackloop() did not validate a field in the network packet that contains the count of elements in an array-like structure. By passing 0 as the count value, the attacked function will run in an endless loop consuming 100% CPU. This flaw allows an attacker to issue a malformed RPC request, triggering an infinite loop, resulting in a denial of service condition.
A path disclosure vulnerability was found in Samba. As part of the Spotlight protocol, Samba discloses the server-side absolute path of shares, files, and directories in the results for search queries. This flaw allows a malicious client or an attacker with a targeted RPC request to view the information that is part of the disclosed path.
A vulnerability was found in Samba's SMB2 packet signing mechanism. The SMB2 packet signing is not enforced if an admin configured "server signing = required" or for SMB2 connections to Domain Controllers where SMB2 packet signing is mandatory. This flaw allows an attacker to perform attacks, such as a man-in-the-middle attack, by intercepting the network traffic and modifying the SMB2 messages between client and server, affecting the integrity of the data.
An out-of-bounds read vulnerability was found in Samba due to insufficient length checks in winbinddpamauthcrap.c. When performing NTLM authentication, the client replies to cryptographic challenges back to the server. These replies have variable lengths, and Winbind fails to check the lan manager response length. When Winbind is used for NTLM authentication, a maliciously crafted request can trigger an out-of-bounds read in Winbind, possibly resulting in a crash.
A flaw was found in the Samba printing subsystem. Samba passes the client-controlled job description string to the command configured with the "print command" setting via the "%J" substitution character without escaping shell meta characters. A remote attacker could exploit this vulnerability by sending a specially crafted print job description that contains unescaped shell characters. This could lead to remote code execution on the affected system.
A flaw was found in Samba. A remote attacker can exploit a misconfiguration in Samba file servers and classic domain controllers that use the "check password script" feature. If this script is configured with the %u substitution character, the client-controlled username is passed without proper escaping of shell meta-characters. This vulnerability allows an attacker to achieve remote command execution on the affected system. This issue primarily affects non-standard configurations where the "check password script" is used with %u and the samba-dcerpcd service is started as a system service.
A flaw was found in Samba’s certificate auto-enrollment Group Policy handling. When certificate auto-enrollment is enabled, Samba may retrieve a CA certificate over an unencrypted HTTP connection and install it into the local trust store without proper verification. An attacker with the ability to intercept or redirect network traffic could exploit this behavior to supply a malicious certificate authority certificate, potentially allowing interception or spoofing of trusted communications.
A flaw was found in Samba’s handling of NTFS-style reparse points on shares configured with read only = yes. Due to missing SMB-layer access checks, authenticated users with underlying filesystem write permissions may create or delete reparse point metadata through SMB operations even on read-only exports. This could allow modification of SMB-visible file behavior, including converting files into symbolic links or other reparse point types.
A flaw was found in Samba. It is susceptible to a vulnerability where multiple incompatible RPC listeners can be initiated, causing disruptions in the AD DC service. When Samba's RPC server experiences a high load or unresponsiveness, servers intended for non-AD DC purposes (for example, NT4-emulation "classic DCs") can erroneously start and compete for the same unix domain sockets. This issue leads to partial query responses from the AD DC, causing issues such as "The procedure number is out of range" when using tools like Active Directory Users. This flaw allows an attacker to disrupt AD DC services.
A delegated administrator who can create objects in Active Directory, can write to all attributes in that new object, including after the object is created because they own the object. This includes some security-sensitive attributes (less in Samba that in Windows).
Because these rights are due to there being no ACL at creation time and later being the nebulous 'creator owner', the implication that the delegated administrator retains significant rights may not be well understood.
Behaviour removing the implicit rights of creating users to write to all attributes is off by default in Samba and Windows (see CVE-2021-42291 )
(As mentioned in the bug, we developed some other protections for this that landed in the other CVEs, which is why this one didn't get the full security notice treatment).
The details of how to turn this protection on are at: https://support.microsoft.com/en-us/topic/kb5008383-active-directory-permissions-updates-cve-2021-42291-536d5555-ffba-4248-a60e-d6cbc849cde1
A flaw was found in Samba
Rejected reason: This CVE has been rejected by Upstream. Ref: https://bugzilla.samba.org/showbug.cgi?id=16047#c4