After the WannaCry attack on Windows it was the question if the open source implementation SAMBA may have a similar vulnerability and in fact it has as currently reported: CVE-2017-7494 Affected are all versions from version 3.5.0 onwards. Patches are available and every distribution should have an update ready in their repos. A workaround is to add the parameter
nt pipe support = no
to the [global] section of the smb.conf file.