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


CVSS Score

Affected Vendors


Affected Products


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


This vulnerability was discovered by:
    Frederic Besler