linux-uconsole/arch/arm
Eric Biggers 69b9d32d51 crypto: arm/aes-neonbs - don't access already-freed walk.iv
commit 767f015ea0 upstream.

If the user-provided IV needs to be aligned to the algorithm's
alignmask, then skcipher_walk_virt() copies the IV into a new aligned
buffer walk.iv.  But skcipher_walk_virt() can fail afterwards, and then
if the caller unconditionally accesses walk.iv, it's a use-after-free.

arm32 xts-aes-neonbs doesn't set an alignmask, so currently it isn't
affected by this despite unconditionally accessing walk.iv.  However
this is more subtle than desired, and it was actually broken prior to
the alignmask being removed by commit cc477bf645 ("crypto: arm/aes -
replace bit-sliced OpenSSL NEON code").  Thus, update xts-aes-neonbs to
start checking the return value of skcipher_walk_virt().

Fixes: e4e7f10bfc ("ARM: add support for bit sliced AES using NEON instructions")
Cc: <stable@vger.kernel.org> # v3.13+
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-22 07:37:37 +02:00
..
boot ARM: dts: exynos: Fix audio (microphone) routing on Odroid XU3 2019-05-22 07:37:35 +02:00
common
configs ARM: imx_v6_v7_defconfig: Select CONFIG_TMPFS_POSIX_ACL 2018-11-21 09:19:09 +01:00
crypto crypto: arm/aes-neonbs - don't access already-freed walk.iv 2019-05-22 07:37:37 +02:00
firmware ARM: 32-bit SoC platform updates 2018-08-23 13:44:43 -07:00
include KVM: arm/arm64: vgic-its: Take the srcu lock when writing to guest memory 2019-05-04 09:20:13 +02:00
kernel ARM: 8856/1: NOMMU: Fix CCR register faulty initialization when MPU is disabled 2019-05-16 19:41:25 +02:00
kvm arm/arm64: KVM: Don't panic on failure to properly reset system registers 2019-03-23 20:09:43 +01:00
lib ARM: 8833/1: Ensure that NEON code always compiles with Clang 2019-04-05 22:33:08 +02:00
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 arm/mach-at91/pm : fix possible object reference leak 2019-05-08 07:21:49 +02:00
mach-axxia
mach-bcm
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: Fix writing to wrong PCI config registers after alignment 2019-02-06 17:30:11 +01:00
mach-davinci
mach-digicolor
mach-dove
mach-ebsa110
mach-efm32
mach-ep93xx
mach-exynos ARM: exynos: Fix a leaked reference by adding missing of_node_put 2019-05-22 07:37:35 +02:00
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-imx ARM: imx51: fix a leaked reference by adding missing of_node_put 2019-05-04 09:20:13 +02:00
mach-integrator gpio: pl061: handle failed allocations 2019-02-20 10:25:43 +01:00
mach-iop13xx ARM: iop: don't use using 64-bit DMA masks 2019-05-08 07:21:51 +02:00
mach-iop32x ARM: iop32x/n2100: fix PCI IRQ mapping 2019-02-15 08:10:12 +01:00
mach-iop33x
mach-ixp4xx
mach-keystone
mach-ks8695
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-mmp ARM: mmp/mmp2: fix cpu_is_mmp2() on mmp2-dt 2018-12-19 19:19:51 +01:00
mach-moxart
mach-mv78xx0
mach-mvebu
mach-mxs
mach-netx
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: OMAP1: ams-delta: Fix possible use of uninitialized field 2018-12-17 09:24:30 +01:00
mach-omap2 ARM: avoid Cortex-A9 livelock on tight dmb loops 2019-04-05 22:33:12 +02:00
mach-orion5x
mach-oxnas
mach-picoxcell
mach-prima2
mach-pxa ARM: pxa: avoid section mismatch warning 2019-02-12 19:47:09 +01:00
mach-qcom
mach-realview
mach-rockchip ARM: rockchip: Force CONFIG_PM on Rockchip systems 2018-08-24 08:50:23 -07:00
mach-rpc mm: do not initialize TLB stack vma's with vma_init() 2018-08-01 13:43:38 -07:00
mach-s3c24xx ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify 2019-03-23 20:10:08 +01:00
mach-s3c64xx
mach-s5pv210
mach-sa1100
mach-shmobile
mach-socfpga
mach-spear
mach-sti
mach-stm32
mach-sunxi
mach-tango ARM: tango: Improve ARCH_MULTIPLATFORM compatibility 2019-02-15 08:10:12 +01:00
mach-tegra
mach-u300
mach-uniphier ARM: uniphier: select RESET_CONTROLLER 2018-07-31 19:04:41 -07:00
mach-ux500
mach-versatile
mach-vexpress
mach-vt8500
mach-w90x900
mach-zx
mach-zynq
mm ARM: 8830/1: NOMMU: Toggle only bits in EXC_RETURN we are really care of 2019-04-05 22:33:12 +02:00
net
nwfpe
oprofile
plat-iop ARM: iop: don't use using 64-bit DMA masks 2019-05-08 07:21:51 +02:00
plat-omap
plat-orion ARM: orion: don't use using 64-bit DMA masks 2019-05-08 07:21:51 +02:00
plat-pxa ARM: pxa: ssp: unneeded to free devm_ allocated data 2019-03-13 14:02:34 -07:00
plat-samsung ARM: samsung: Limit SAMSUNG_PM_CHECK config option to non-Exynos platforms 2019-04-20 09:16:01 +02:00
plat-versatile
probes ARM: 8834/1: Fix: kprobes: optimized kprobes illegal instruction 2019-02-27 10:08:49 +01:00
tools ARM: 8787/1: wire up io_pgetevents syscall 2018-09-19 10:44:11 +01:00
vdso
vfp ARM: 8810/1: vfp: Fix wrong assignement to ufp_exc 2019-02-20 10:25:37 +01:00
xen
Kconfig ARM: davinci: fix build failure with allnoconfig 2019-05-04 09:20:20 +02:00
Kconfig-nommu
Kconfig.debug ARM: 32-bit SoC platform updates 2018-08-23 13:44:43 -07:00
Makefile Kbuild updates for v4.19 (2nd) 2018-08-25 13:40:38 -07:00