lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1462308150-6083-1-git-send-email-kjlu@gatech.edu>
Date:	Tue,  3 May 2016 16:42:30 -0400
From:	Kangjie Lu <kangjielu@...il.com>
To:	akpm@...ux-foundation.org
Cc:	oleg@...hat.com, peterz@...radead.org, amanieu@...il.com,
	linux-kernel@...r.kernel.org, taesoo@...ech.edu, insu@...ech.edu,
	Kangjie Lu <kjlu@...ech.edu>
Subject: [PATCH] infoleak fix1 in signal

The stack object “info” has a total size of 128 bytes; however,
only 28 bytes are initialized. The remaining uninitialized bytes
are sent to userland via send_signal.

Signed-off-by: Kangjie Lu <kjlu@...ech.edu>
---
 kernel/signal.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/signal.c b/kernel/signal.c
index aa9bf00..f40f0b3 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1594,6 +1594,7 @@ bool do_notify_parent(struct task_struct *tsk, int sig)
 			sig = SIGCHLD;
 	}
 
+	memset(&info, 0, sizeof(info));
 	info.si_signo = sig;
 	info.si_errno = 0;
 	/*
-- 
1.9.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ