HomeFreeBSD

Fix kernel memory disclosure in tcp_ctloutput

Description

Fix kernel memory disclosure in tcp_ctloutput

strcpy was used to copy a string into a buffer copied to userland, which
left uninitialized data after the terminating 0-byte. Use the same
approach as in tcp_subr.c: strncpy and explicit '\0'.

admbugs: 765, 822
MFC after: 1 day
Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com>
Reported by: Vlad Tsyrklevich
Security: Kernel memory disclosure
Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on
Parents
rS332044: MFC r331005-r331006
Branches
Unknown
Tags
Unknown