svn commit: r343261 - head/sys/compat/linux
Ed Maste
emaste at FreeBSD.org
Mon Jan 21 16:21:04 UTC 2019
Author: emaste
Date: Mon Jan 21 16:21:03 2019
New Revision: 343261
URL: https://svnweb.freebsd.org/changeset/base/343261
Log:
linuxulator: fix stack memory disclosure in linux_ioctl_termio
admbugs: 765
Reported by: Vlad Tsyrklevich <vlad at tsyrklevich.net>
Reviewed by: andrew
MFC after: 1 day
Security: Kernel stack memory disclosure
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/compat/linux/linux_ioctl.c
Modified: head/sys/compat/linux/linux_ioctl.c
==============================================================================
--- head/sys/compat/linux/linux_ioctl.c Mon Jan 21 16:19:02 2019 (r343260)
+++ head/sys/compat/linux/linux_ioctl.c Mon Jan 21 16:21:03 2019 (r343261)
@@ -686,6 +686,7 @@ bsd_to_linux_termio(struct termios *bios, struct linux
{
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;
More information about the svn-src-all
mailing list