Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2018 18:29:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 228354] mount_smbfs - long hostname causes stack overflow
Message-ID:  <bug-228354-3630-I5s8ojzSxf@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-228354-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-228354-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228354

--- Comment #7 from Brooks Davis <brooks@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 pa=
tch
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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228354-3630-I5s8ojzSxf>