WSL2-Linux-Kernel/drivers/crypto
Dan Carpenter 172c8a24fc crypto: cavium - prevent integer overflow loading firmware
[ Upstream commit 2526d6bf27 ]

The "code_length" value comes from the firmware file.  If your firmware
is untrusted realistically there is probably very little you can do to
protect yourself.  Still we try to limit the damage as much as possible.
Also Smatch marks any data read from the filesystem as untrusted and
prints warnings if it not capped correctly.

The "ntohl(ucode->code_length) * 2" multiplication can have an
integer overflow.

Fixes: 9e2c7d9994 ("crypto: cavium - Add Support for Octeon-tx CPT Engine")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 12:35:28 +02:00
..
allwinner crypto: sun8i-ss - fix infinite loop in sun8i_ss_setup_ivs() 2022-08-17 14:23:20 +02:00
amcc
amlogic crypto: amlogic - call finalize with bh disabled 2022-04-08 14:23:08 +02:00
axis
bcm
caam crypto: caam - fix i.MX6SX entropy delay value 2022-06-06 08:43:39 +02:00
cavium crypto: cavium - prevent integer overflow loading firmware 2022-10-26 12:35:28 +02:00
ccp crypto: ccp - Release dma channels before dmaengine unrgister 2022-10-26 12:35:25 +02:00
ccree crypto: ccree - use fine grained DMA mapping dir 2022-06-09 10:22:41 +02:00
chelsio
gemini crypto: gemini - call finalize with bh disabled 2022-04-08 14:23:08 +02:00
hisilicon crypto: hisilicon/qm - fix missing put dfx access 2022-10-26 12:35:25 +02:00
inside-secure crypto: inside-secure - Change swab to swab32 2022-10-26 12:35:26 +02:00
keembay
marvell crypto: marvell/octeontx - prevent integer overflows 2022-10-26 12:35:27 +02:00
nx powerpc/powernv/vas: Assign real address to rx_fifo in vas_rx_win_attr 2022-06-09 10:22:43 +02:00
qat crypto: qat - fix DMA transfer direction 2022-10-26 12:35:26 +02:00
qce crypto: qce - fix uaf on qce_skcipher_register_one 2022-01-27 11:03:14 +01:00
rockchip crypto: rockchip - ECB does not need IV 2022-04-08 14:23:06 +02:00
stm32 crypto: stm32 - fix reference leak in stm32_crc_remove 2022-05-25 09:57:24 +02:00
ux500
virtio
vmx crypto: vmx - add missing dependencies 2022-04-08 14:23:08 +02:00
xilinx
Kconfig
Makefile
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
mxs-dcp.c crypto: mxs-dcp - Fix scatterlist processing 2022-04-08 14:23:05 +02:00
n2_asm.S
n2_core.c
n2_core.h
omap-aes-gcm.c
omap-aes.c crypto: omap-aes - Fix broken pm_runtime_and_get() usage 2022-01-27 11:05:06 +01:00
omap-aes.h
omap-crypto.c
omap-crypto.h
omap-des.c
omap-sham.c
padlock-aes.c
padlock-sha.c
qcom-rng.c crypto: qcom-rng - fix infinite loop on requests not multiple of WORD_SZ 2022-05-25 09:57:28 +02:00
s5p-sss.c
sa2ul.c
sa2ul.h
sahara.c crypto: sahara - don't sleep when in softirq 2022-10-26 12:35:23 +02:00
talitos.c
talitos.h