[Bug 228354] mount_smbfs - long hostname causes stack overflow

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 20 18:29:35 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228354

--- Comment #7 from Brooks Davis <brooks at FreeBSD.org> ---
This problem here appears to be unchecked copies from a larger array into a
17-byte array in struct nb_name.  I've attached a compiled, but untested patch
to check the size of the hostname before copying.

This restriction seems dumb and it looks like struct nb_name isn't used in
kernel so it may be that we can just increase NB_NAMELEN in
sys/netsmb/netbios.h.  I don't know and am not a position to test.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list