[Midnightbsd-cvs] src [12216] trunk/sys/compat/freebsd32/freebsd32_ioctl.c: Due to insufficient initialization of memory copied to userland in the
    laffer1 at midnightbsd.org 
    laffer1 at midnightbsd.org
       
    Wed Jul 24 18:54:42 EDT 2019
    
    
  
Revision: 12216
          http://svnweb.midnightbsd.org/src/?rev=12216
Author:   laffer1
Date:     2019-07-24 18:54:42 -0400 (Wed, 24 Jul 2019)
Log Message:
-----------
Due to insufficient initialization of memory copied to userland in the
components listed above small amounts of kernel memory may be disclosed
to userland processes.
Modified Paths:
--------------
    trunk/sys/compat/freebsd32/freebsd32_ioctl.c
Modified: trunk/sys/compat/freebsd32/freebsd32_ioctl.c
===================================================================
--- trunk/sys/compat/freebsd32/freebsd32_ioctl.c	2019-07-24 22:52:34 UTC (rev 12215)
+++ trunk/sys/compat/freebsd32/freebsd32_ioctl.c	2019-07-24 22:54:42 UTC (rev 12216)
@@ -263,6 +263,8 @@
 	vm_offset_t addr;
 	int error;
 
+	memset(&pmc, 0, sizeof(pmc));
+	memset(&pc32, 0, sizeof(pc32));
 	if ((error = copyin(uap->data, &pci32, sizeof(pci32))) != 0)
 		return (error);
 
    
    
More information about the Midnightbsd-cvs
mailing list