]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-crypto: fix NULL pointer dereference in virtio_crypto_free_request
authorMauro Matteo Cascella <mcascell@redhat.com>
Tue, 9 May 2023 07:53:17 +0000 (09:53 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 19 May 2023 14:30:46 +0000 (10:30 -0400)
commit3e69908907f8d3dd20d5753b0777a6e3824ba824
tree56754c07b193d6f6c7e34286cca1c8c1dde43561
parent1fac00f70b3261050af5564b20ca55c1b2a3059a
virtio-crypto: fix NULL pointer dereference in virtio_crypto_free_request

Ensure op_info is not NULL in case of QCRYPTODEV_BACKEND_ALG_SYM algtype.

Fixes: 0e660a6f90a ("crypto: Introduce RSA algorithm")
Signed-off-by: Mauro Matteo Cascella <mcascell@redhat.com>
Reported-by: Yiming Tao <taoym@zju.edu.cn>
Message-Id: <20230509075317.1132301-1-mcascell@redhat.com>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: zhenwei pi<pizhenwei@bytedance.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-crypto.c