svn commit: r343260 - head/sys/compat/linux

Ed Maste emaste at FreeBSD.org
Mon Jan 21 16:19:03 UTC 2019


Author: emaste
Date: Mon Jan 21 16:19:02 2019
New Revision: 343260
URL: https://svnweb.freebsd.org/changeset/base/343260

Log:
  linuxulator: fix stack memory disclosure in linux_ioctl_v4l
  
  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 15:27:58 2019	(r343259)
+++ head/sys/compat/linux/linux_ioctl.c	Mon Jan 21 16:19:02 2019	(r343260)
@@ -2843,6 +2843,8 @@ linux_to_bsd_v4l_window(struct l_video_window *lvw, st
 static int
 bsd_to_linux_v4l_window(struct video_window *vw, struct l_video_window *lvw)
 {
+	memset(lvw, 0, sizeof(*lvw));
+
 	lvw->x = vw->x;
 	lvw->y = vw->y;
 	lvw->width = vw->width;


More information about the svn-src-head mailing list