https://www.samba.org/samba/security/CVE-2017-7494.html
The workaround is easy and is contained in the link above:
in your /etc/samba/smb.conf file, add the following in the [global] section:
nt pipe support = no
Then restart smbd with 'service smb restart'