As reported in the upstream advisory and bugzilla [1]: All current versions of Samba 4.x.x are vulnerable to a remote code execution vulnerability in the nmbd NetBIOS name services daemon. A malicious browser can send packets that may overwrite the heap of the target nmbd NetBIOS name services daemon. It may be possible to use this to generate a remote code execution vulnerability as the superuser (root). Patches are available for 4.1.x [2] and 4.0.x [3]. [1] https://bugzilla.samba.org/show_bug.cgi?id=10735 [2] https://git.samba.org/?p=samba.git;a=commitdiff;h=e6a848630da3ba958c442438ea131c99fa088605 [3] https://git.samba.org/?p=samba.git;a=commitdiff;h=fb1d325d96dfe9bc2e9c4ec46ad4c55e8f18f4a2 External References: https://www.samba.org/samba/security/CVE-2014-3560 Statement: This issue did not affect the versions of samba or samba3x as shipped with Red Hat Enterprise Linux 5, and the versions of samba as shipped with Red Hat Enterprise Linux 6, as it only affected Samba 4.0.0 and higher.
Created samba tracking bugs for this issue: Affects: fedora-all [bug 1126015]
We are rating this issue as Important. To exploit this issue the following conditions must be met: nmbd must be running on the target host and listening to the network. An attacker must have local network access. An attacker must be able to run a fake SMB master on the network. If a host is running nmbd on the public internet, this cannot be exploited by network traffic from a different subnet.
This issue was introduced via the following upstream commit: https://git.samba.org/?p=samba.git;a=commitdiff;h=d25370fb477dd733fae6c1ee1a67e32a78236779
Note that the commit linked in comment 6 introduced the same bug in both unstrcpy() and nstrcpy() macros. Only unstrcpy() was corrected by patches linked in comment 0. The nstrcpy() bug has not security impact, as that macro is not used anywhere in the Samba source code.
(In reply to Tomas Hoger from comment #7) > Note that the commit linked in comment 6 introduced the same bug in both > unstrcpy() and nstrcpy() macros. Only unstrcpy() was corrected by patches > linked in comment 0. The nstrcpy() bug has not security impact, as that > macro is not used anywhere in the Samba source code. nstrcpy() was removed upstream via: https://git.samba.org/?p=samba.git;a=commitdiff;h=fb9d8c402614556d7a36f9e9efb72b3f4afe838a
IssueDescription: A heap-based buffer overflow flaw was found in Samba's NetBIOS message block daemon (nmbd). An attacker on the local network could use this flaw to send specially crafted packets that, when processed by nmbd, could possibly lead to arbitrary code execution with root privileges.
This issue has been addressed in following products: Red Hat Enterprise Linux 6 Via RHSA-2014:1009 https://rhn.redhat.com/errata/RHSA-2014-1009.html
This issue has been addressed in following products: Red Hat Enterprise Linux 7 Via RHSA-2014:1008 https://rhn.redhat.com/errata/RHSA-2014-1008.html