commit | 926fd9f23b27ca6587492c3f58f4c7f4cd01dad5 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Thu Jan 13 11:44:38 2022 -0800 |
committer | Mimi Zohar <zohar@linux.ibm.com> | Mon Jan 24 18:37:36 2022 -0500 |
tree | a2ed3b06e4a78df0c6171b387c92b5d80d3c4ab5 | |
parent | e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 [diff] |
ima: fix reference leak in asymmetric_verify() Don't leak a reference to the key if its algorithm is unknown. Fixes: 947d70597236 ("ima: Support EC keys for signature verification") Cc: <stable@vger.kernel.org> # v5.13+ Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>