]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r332042: Fix kernel memory disclosure in linux_ioctl_socket
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Apr 2018 12:54:10 +0000 (12:54 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Apr 2018 12:54:10 +0000 (12:54 +0000)
commit2b0bae6a42252a243ed2f9745a99384842bc8313
treea55ceb74c70c92ad7d007228fadb53fd90425749
parent230c18c02fe1ba4aa3b09545611c0ef7c5a56693
MFC r332042: Fix kernel memory disclosure in linux_ioctl_socket

strlcpy is used to copy a string into a buffer to be copied to userland,
previously leaving uninitialized data after the terminating NUL.  Zero
the buffer first to avoid a kernel memory disclosure.

admbugs: 765, 811
Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Reported by: Vlad Tsyrklevich
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@332064 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/compat/linux/linux_ioctl.c