TippingPoint Zero Day Initiative
 

Samba ndr_ValidatePassword heap overflow Remote Code Execution Vulnerability

ZDI-12-071: April 18th, 2012

CVE ID

CVSS Score

Affected Vendors

    Samba

Affected Products

    3.6.x

TippingPoint™ IPS Customer Protection

TippingPoint IPS customers are protected against this vulnerability by Digital Vaccine protection filter ID 12201. For further product information on the TippingPoint IPS:

Vulnerability Details


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 ndr_ValidatePassword requests. When parsing the data send in the request Samba uses the field 'pwd_history' to create a heap allocation but then uses another field, 'pwd_history_len', to write data to the allocation. Because there is no check to see if 'pwd_history_len' is smaller than 'pwd_history' this could result in a heap buffer overflow that could lead to remote code execution.

Vendor Response

Samba has issued an update to correct this vulnerability. More details can be found at:

Disclosure Timeline

    2012-03-14 - Vulnerability reported to vendor
    2012-04-18 - Coordinated public release of advisory

Credit

This vulnerability was discovered by:
    Anonymous