Advisory Details

April 18th, 2012

Samba GetAliasMembership SidArray Remote Code Execution Vulnerability

ZDI-12-068
ZDI-CAN-1503

CVE ID CVE-2012-1182
CVSS SCORE 10, (AV:N/AC:L/Au:N/C:C/I:C/A:C)
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 12198. For further product information on the TippingPoint IPS: http://www.tippingpoint.com
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 GetAliasMembership requests. When parsing the data send in the request Samba uses the field 'sids' to create a heap allocation but then uses another field, 'num_sids', to write data to the allocation. Because there is no check to see if 'num_sids' is smaller than 'sids' 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:
http://www.samba.org/samba/security/CVE-2012-1182
DISCLOSURE TIMELINE
  • 2012-03-14 - Vulnerability reported to vendor
  • 2012-04-18 - Coordinated public release of advisory
CREDIT Anonymous
BACK TO ADVISORIES