Samba lsa_LookupNames Heap Overflow Remote Code Execution VulnerabilityZDI-12-070: April 18th, 2012
TippingPoint™ IPS Customer ProtectionTippingPoint IPS customers are protected against this vulnerability by Digital Vaccine protection filter ID 12200. For further product information on the TippingPoint IPS:
This vulnerability allows remote attackers to execute arbitrary code on vulnerable installations of Samba. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the way Samba handles lsa_LookupNames requests. When parsing the data send in the request Samba uses the field 'names' to create a heap allocation but then uses another field, 'num_names', to write data to the allocation. Because there is no check to see if 'num_names' is smaller than 'names' this could result in a heap buffer overflow that could lead to remote code execution.
Vendor ResponseSamba has issued an update to correct this vulnerability. More details can be found at:
2012-03-14 - Vulnerability reported to vendor
2012-04-18 - Coordinated public release of advisory
CreditThis vulnerability was discovered by: