Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2019 16:25:41 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343262 - head/sys/amd64/linux
Message-ID:  <201901211625.x0LGPfBd047017@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Jan 21 16:25:40 2019
New Revision: 343262
URL: https://svnweb.freebsd.org/changeset/base/343262

Log:
  linuxulator: fix stack memory disclosure in linux_sigaltstack
  
  admbugs:	765
  Reported by:	Vlad Tsyrklevich <vlad@tsyrklevich.net>
  Reviewed by:	andrew
  MFC after:	1 day
  Security:	Kernel memory disclosure
  Sponsored by:   The FreeBSD Foundation

Modified:
  head/sys/amd64/linux/linux_machdep.c

Modified: head/sys/amd64/linux/linux_machdep.c
==============================================================================
--- head/sys/amd64/linux/linux_machdep.c	Mon Jan 21 16:21:03 2019	(r343261)
+++ head/sys/amd64/linux/linux_machdep.c	Mon Jan 21 16:25:40 2019	(r343262)
@@ -201,6 +201,7 @@ linux_sigaltstack(struct thread *td, struct linux_siga
 	l_stack_t lss;
 	int error;
 
+	memset(&lss, 0, sizeof(lss));
 	LINUX_CTR2(sigaltstack, "%p, %p", uap->uss, uap->uoss);
 
 	if (uap->uss != NULL) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901211625.x0LGPfBd047017>