From 9866e7bbaec148efdcee48bfa0ba16e62a8a6de6 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 21 Jan 2019 16:21:03 +0000 Subject: [PATCH] linuxulator: fix stack memory disclosure in linux_ioctl_termio admbugs: 765 Reported by: Vlad Tsyrklevich Reviewed by: andrew MFC after: 1 day Security: Kernel stack memory disclosure Sponsored by: The FreeBSD Foundation --- sys/compat/linux/linux_ioctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 93a3edad846..adcd9d13775 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -686,6 +686,7 @@ bsd_to_linux_termio(struct termios *bios, struct linux_termio *lio) { struct linux_termios lios; + memset(lio, 0, sizeof(*lio)); bsd_to_linux_termios(bios, &lios); lio->c_iflag = lios.c_iflag; lio->c_oflag = lios.c_oflag;