]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TPM: Zero buffer after copying to userspace
authorPeter Huewe <huewe.external.infineon@googlemail.com>
Thu, 15 Sep 2011 17:47:42 +0000 (14:47 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 7 Nov 2011 21:47:00 +0000 (13:47 -0800)
commit2f9b9c0646cee4981675be4b5735a3835a85b7b2
tree9e39ec4baf19b0f4908996d641319f7c27b36a13
parent4e5edd963b99b4dd54338857a116afea3b99cc74
TPM: Zero buffer after copying to userspace

commit 3321c07ae5068568cd61ac9f4ba749006a7185c9 upstream.

Since the buffer might contain security related data it might be a good idea to
zero the buffer after we have copied it to userspace.

This got assigned CVE-2011-1162.

Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tpm/tpm.c