linux/arch
Herbert Xu d68ac38895 crypto: s390/aes - Fix buffer overread in CTR mode
commit d07f951903 upstream.

When processing the last block, the s390 ctr code will always read
a whole block, even if there isn't a whole block of data left.  Fix
this by using the actual length left and copy it into a buffer first
for processing.

Fixes: 0200f3ecc1 ("crypto: s390 - add System z hardware support for CTR mode")
Cc: <stable@vger.kernel.org>
Reported-by: Guangwu Zhang <guazhang@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewd-by: Harald Freudenberger <freude@de.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-01-31 16:18:50 -08:00
..
alpha Kbuild updates for v6.6 2023-09-05 11:01:47 -07:00
arc ARC: fix smatch warning 2024-01-20 11:51:44 +01:00
arm ARM: 9330/1: davinci: also select PINCTRL 2024-01-25 15:35:49 -08:00
arm64 arm64: properly install vmlinuz.efi 2024-01-31 16:18:49 -08:00
csky csky: fix arch_jump_label_transform_static override 2024-01-25 15:35:18 -08:00
hexagon Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
ia64 cpu-hotplug: Provide prototypes for arch CPU registration 2023-10-11 14:27:37 +02:00
loongarch LoongArch: BPF: Prevent out-of-bounds memory access 2024-01-25 15:35:58 -08:00
m68k ata changes for 6.6 2023-09-05 12:37:28 -07:00
microblaze Microblaze patches for 6.6-rc1 2023-09-05 10:15:22 -07:00
mips MIPS: Alchemy: Fix an out-of-bound access in db1550_dev_setup() 2024-01-25 15:35:50 -08:00
nios2 Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
openrisc OpenRISC updates for 6.6 2023-09-05 10:09:31 -07:00
parisc parisc: Fix asm operand number out of range build error in bug table 2023-12-13 18:45:30 +01:00
powerpc powerpc/ps3_defconfig: Disable PPC64_BIG_ENDIAN_ELF_ABI_V2 2024-01-31 16:18:49 -08:00
riscv riscv: Fix an off-by-one in get_early_cmdline() 2024-01-31 16:18:48 -08:00
s390 crypto: s390/aes - Fix buffer overread in CTR mode 2024-01-31 16:18:50 -08:00
sh sh: ecovec24: Rename missed backlight field from fbdev to dev 2024-01-31 16:18:48 -08:00
sparc sparc32: fix a braino in fault handling in csum_and_copy_..._user() 2023-10-27 20:06:06 -04:00
um um: virt-pci: fix platform map offset 2024-01-25 15:35:50 -08:00
x86 KVM: x86/pmu: Reset the PMU, i.e. stop counters, before refreshing 2024-01-25 15:35:48 -08:00
xtensa xtensa: boot/lib: fix function prototypes 2023-09-20 05:03:30 -07:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig Add x86 shadow stack support 2023-08-31 12:20:12 -07:00