An out-of-bounds read flaw has been found in the process_host_announce() function in source3/nmbd/nmbd_incomingdgrams.c of the NetBIOS browse handling in the Samba package. The function reads the announcement comment without checking that the comment is inside the datagram. The read continues until it finds a zero byte. The same missing check applies to a local master announcement. A network attacker or user who can reach nmbd can send one datagram to UDP port 138 and nmbd can stop and stay stopped until it is started again, leading to a denial of service.
Disable nmbd where it is not required, or to filter UDP port 138 so the datagram cannot reach nmbd.
Not running nmbd, or dropping UDP port 138 before it reaches nmbd, stops the datagram from reaching process_dgram(). The disable netbios setting does not do this. nmbd does not consult that setting.