TippingPoint Zero Day Initiative
 

Samba NDR Parsing ndr_pull_dnsp_name Heap-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-17-053: January 20th, 2017

CVE ID

CVSS Score

Affected Vendors

    Samba

Affected Products

    4.x

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 handling of NDR data. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code under the context of current process.

Vendor Response

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

Disclosure Timeline

    2016-11-04 - Vulnerability reported to vendor
    2017-01-20 - Coordinated public release of advisory

Credit

This vulnerability was discovered by:
    c4c1234757b4f1e468a29d480d78f21b
    Frederic Besler
    c692f9f0933f03c265e4c9e2bcc3bb28