kernel_samsung_a53x/drivers/crypto
Herbert Xu ed6b38f5b4 crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak
commit d3b17c6d9dddc2db3670bc9be628b122416a3d26 upstream.

Using completion_done to determine whether the caller has gone
away only works after a complete call.  Furthermore it's still
possible that the caller has not yet called wait_for_completion,
resulting in another potential UAF.

Fix this by making the caller use cancel_work_sync and then freeing
the memory safely.

Fixes: 7d42e097607c ("crypto: qat - resolve race condition during AER recovery")
Cc: <stable@vger.kernel.org> #6.8+
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 12:27:18 +01:00
..
allwinner
amcc
amlogic
axis
bcm crypto: bcm - Fix pointer arithmetic 2024-11-19 12:26:52 +01:00
caam crypto: caam/jr - fix Chacha20 + Poly1305 self test failure 2024-11-18 11:43:03 +01:00
cavium
ccp crypto: ccp - drop platform ifdef checks 2024-11-19 12:26:52 +01:00
ccree
chelsio
fmp drivers: fmp: remove failing command 2024-06-15 16:28:48 -03:00
fmp_simulator
hisilicon crypto: hisilicon/hpre - Fix a erroneous check after snprintf() 2024-11-18 11:43:02 +01:00
inside-secure
marvell
mediatek
nx
qat crypto: qat - Fix ADF_DEV_RESET_SYNC memory leak 2024-11-19 12:27:18 +01:00
qce
rockchip
stm32 crypto: stm32/crc32 - fix parsing list of devices 2024-11-18 12:13:10 +01:00
ux500
virtio crypto: virtio/akcipher - Fix stack overflow on memcpy 2024-11-18 23:18:28 +01:00
vmx
xilinx crypto: xilinx - call finalize with bh disabled 2024-11-19 08:44:52 +01:00
atmel-aes-regs.h
atmel-aes.c
atmel-authenc.h
atmel-ecc.c
atmel-i2c.c
atmel-i2c.h
atmel-sha-regs.h
atmel-sha.c
atmel-sha204a.c
atmel-tdes-regs.h
atmel-tdes.c
exynos-rng.c
geode-aes.c
geode-aes.h
hifn_795x.c
img-hash.c
ixp4xx_crypto.c
Kconfig
Makefile
mxs-dcp.c
n2_asm.S
n2_core.c
n2_core.h
omap-aes-gcm.c
omap-aes.c
omap-aes.h
omap-crypto.c
omap-crypto.h
omap-des.c
omap-sham.c
padlock-aes.c
padlock-sha.c
picoxcell_crypto.c
picoxcell_crypto_regs.h
qcom-rng.c
s5p-sss.c
sa2ul.c crypto: sa2ul - Return crypto_aead_setkey to transfer the error 2024-11-18 12:12:26 +01:00
sa2ul.h
sahara.c crypto: sahara - do not resize req->src when doing hash operations 2024-11-18 12:12:27 +01:00
talitos.c
talitos.h