[dpdk-dev] [PATCH] crypto/octeontx: fix heap use after free
Akhil Goyal
gakhil at marvell.com
Fri Jul 30 21:25:42 CEST 2021
> Subject: [PATCH] crypto/octeontx: fix heap use after free
>
> When the PMD is removed, rte_cryptodev_pmd_release_device
> is called which frees cryptodev->data, and then tries to free
> cryptodev->data->dev_private, which causes the heap use
> after free issue.
>
> A temporary pointer is set before the free of cryptodev->data,
> which can then be used afterwards to free dev_private.
>
> Fixes: bfe2ae495ee2 ("crypto/octeontx: add PMD skeleton")
> Cc: stable at dpdk.org
>
> Reported-by: ZhihongX Peng <zhihongx.peng at intel.com>
> Signed-off-by: Akhil Goyal <gakhil at marvell.com>
Applied to dpdk-next-crypto
More information about the dev
mailing list