1
linux/drivers/char/tpm
Peter Huewe 6b07d30aca TPM: Call tpm_transmit with correct size
This patch changes the call of tpm_transmit by supplying the size of the
userspace buffer instead of TPM_BUFSIZE.

This got assigned CVE-2011-1161.

[The first hunk didn't make sense given one could expect
 way less data than TPM_BUFSIZE, so added tpm_transmit boundary
 check over bufsiz instead
 The last parameter of tpm_transmit() reflects the amount
 of data expected from the device, and not the buffer size
 being supplied to it. It isn't ideal to parse it directly,
 so we just set it to the maximum the input buffer can handle
 and let the userspace API to do such job.]

Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Cc: Stable Kernel <stable@kernel.org>
Signed-off-by: James Morris <jmorris@namei.org>
2011-09-23 09:46:29 +10:00
..
Kconfig TPM: TCG_ATMEL should depend on HAS_IOPORT 2011-09-23 09:45:57 +10:00
Makefile
tpm_atmel.c
tpm_atmel.h
tpm_bios.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
tpm_infineon.c Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
tpm_nsc.c TPM: tpm_nsc: Fix a double free of pdev in cleanup_nsc 2011-09-23 09:46:17 +10:00
tpm_tis.c tpm_tis: fix build when ACPI is not enabled 2011-08-03 14:25:21 -10:00
tpm.c TPM: Call tpm_transmit with correct size 2011-09-23 09:46:29 +10:00
tpm.h tpm_tis: Fix the probing for interrupts 2011-07-12 18:53:08 -03:00