Dan Carpenter
584561e942
crypto: cavium - prevent integer overflow loading firmware
...
[ Upstream commit 2526d6bf27d15054bb0778b2f7bc6625fd934905 ]
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 <[email protected] >
Signed-off-by: Herbert Xu <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2022-10-26 13:22:46 +02:00
..
amcc
axis
bcm
caam
crypto: caam - replace this_cpu_ptr with raw_cpu_ptr
2022-01-27 09:19:49 +01:00
cavium
crypto: cavium - prevent integer overflow loading firmware
2022-10-26 13:22:46 +02:00
ccp
crypto: ccp - Release dma channels before dmaengine unrgister
2022-10-26 13:22:46 +02:00
ccree
crypto: ccree - don't attempt 0 len DMA mappings
2022-04-15 14:18:04 +02:00
chelsio
tcp: Fix data-races around sysctl knobs related to SYN option.
2022-07-29 17:14:14 +02:00
hisilicon
crypto: hisilicon - Kunpeng916 crypto driver don't sleep when in softirq
2022-08-25 11:17:42 +02:00
inside-secure
crypto: inside-secure - Add missing MODULE_DEVICE_TABLE for of
2022-08-25 11:17:48 +02:00
marvell
crypto: marvell/cesa - ECB does not IV
2022-06-14 18:11:40 +02:00
mediatek
nx
qat
crypto: qat - disable registration of algorithms
2022-03-28 08:46:47 +02:00
qce
crypto: qce - fix uaf on qce_ahash_register_one
2022-01-27 09:19:30 +01:00
rockchip
stm32
crypto: stm32 - fix reference leak in stm32_crc_remove
2022-05-25 09:14:32 +02:00
sunxi-ss
ux500
virtio
vmx
crypto: vmx - add missing dependencies
2022-04-15 14:18:05 +02: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
crypto: mxs-dcp - Fix scatterlist processing
2022-04-15 14:18:04 +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 09:19:49 +01:00
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
crypto: qcom-rng - fix infinite loop on requests not multiple of WORD_SZ
2022-05-25 09:14:34 +02:00
s5p-sss.c
crypto: s5p-sss - Add error handling in s5p_aes_probe()
2021-11-17 09:48:17 +01:00
sahara.c
talitos.c
talitos.h