diff options
| author | Jarkko Sakkinen <jarkko@kernel.org> | 2025-10-18 13:30:36 +0300 |
|---|---|---|
| committer | Jarkko Sakkinen <jarkko@kernel.org> | 2025-11-29 22:57:30 +0200 |
| commit | 62cd5d480b9762ce70d720a81fa5b373052ae05f (patch) | |
| tree | fb0e00f7dc6020e8e835bd5720b9d0abf0fb4956 /rust/kernel/alloc/kvec/errors.rs | |
| parent | KEYS: trusted: Replace a redundant instance of tpm2_hash_map (diff) | |
| download | linux-62cd5d480b9762ce70d720a81fa5b373052ae05f.tar.gz linux-62cd5d480b9762ce70d720a81fa5b373052ae05f.zip | |
KEYS: trusted: Fix a memory leak in tpm2_load_cmd
'tpm2_load_cmd' allocates a tempoary blob indirectly via 'tpm2_key_decode'
but it is not freed in the failure paths. Address this by wrapping the blob
into with a cleanup helper.
Cc: stable@vger.kernel.org # v5.13+
Fixes: f2219745250f ("security: keys: trusted: use ASN.1 TPM2 key format for the blobs")
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
