]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: octeontx2 - out of bounds access in otx2_cpt_dl_custom_egrp_delete()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 17 Dec 2021 07:12:32 +0000 (10:12 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Dec 2021 03:18:27 +0000 (14:18 +1100)
commitd2b6061ccfe8af73ddfdeebba9bf5e1c68ce4bb9
treea5de74a35f06f9e6efc56b5f720389152b03f5a3
parent0c9173e93427e3df1abdb3f9193d9c3e08da9d98
crypto: octeontx2 - out of bounds access in otx2_cpt_dl_custom_egrp_delete()

If "egrp" is negative then it is causes an out of bounds access in
eng_grps->grp[].

Fixes: 65ab435882ef ("crypto: octeontx2 - add apis for custom engine groups")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c