Tadeusz Struk 8c81c24758 tpm: fix use after free in tpm2_load_context()
If load context command returns with TPM2_RC_HANDLE or TPM2_RC_REFERENCE_H0
then we have use after free in line 114 and double free in 117.

Fixes: 4d57856a21ed2 ("tpm2: add session handle context saving and restoring to the space code")
Cc: stable@vger.kernel.org
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off--by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2018-05-14 13:56:06 +03:00
..
2018-02-06 09:59:40 -08:00
2018-03-14 19:13:47 +01:00
2017-08-28 17:11:28 +02:00
2018-04-04 20:07:20 -07:00
2018-03-26 15:56:35 +02:00
2016-01-22 18:04:28 -05:00