REDHAT-BUG-2585340: Medium severity Samba Samba vulnerability

Published Nov 27, 2026
·
Updated

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.

Affected Software

1 affected component
Samba Samba>=4.0.0alpha18

Event History

Nov 27, 2026
Data Sourced
via Red Hat·08:04 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which record operation reaches the unsafe HINFO serialization path?

Adding an HINFO record reaches dnsserver_db_add_record(), where the request record is converted and later serialized. The affected flow proceeds when the zone SOA modification is allowed.

2

Do HINFO record updates and deletions follow the same path?

No. Although updates and deletions call dns_to_dnsp_convert(), dns_record_match() returns false for HINFO without reading the cpu or os fields, causing those paths to return before the record-push operations described for an add.

3

Which DNS server interfaces invoke the affected update logic?

DnssrvUpdateRecord() and DnssrvUpdateRecord2() call dnsserver_update_record(), which can reach the affected add-record path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203