diff options
| author | Jiangshan Yi <yijiangshan@kylinos.cn> | 2026-09-02 15:48:39 +0800 |
|---|---|---|
| committer | Jarkko Sakkinen <jarkko@kernel.org> | 2026-09-29 22:15:21 +0300 |
| commit | 1e2f9a611b334ce6ed1dc4a9e1587c7a11d2be30 (patch) | |
| tree | cceec95ef3cc58ce9d9034305853cc4866ca4143 /tools/lib/python | |
| parent | 1a70f0b71826fb764e8490dda55bb1b853e0d1de (diff) | |
| download | linux-next-1e2f9a611b334ce6ed1dc4a9e1587c7a11d2be30.tar.gz linux-next-1e2f9a611b334ce6ed1dc4a9e1587c7a11d2be30.zip | |
tpm: Fix auth session leak in tpm2_get_random() error path
When tpm_buf_fill_hmac_session() fails in tpm2_get_random(), the error
path returns without calling tpm2_end_auth_session(), leaking the auth
session. All other error paths in the function handle this correctly.
Fixes: 3d9e043dab0a ("tpm-buf: Memory-safe allocations")
Cc: stable@vger.kernel.orga # v6.12+
Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn>
Link: https://lore.kernel.org/r/20260902074839.417419-1-yijiangshan@kylinos.cn
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
