Round 3 Kyber1024 AVX2 implementation of poly_decompress reads out of bounds
jschanck opened this issue · 0 comments
jschanck commented
The _mm_loadu_si128 at line 204 of poly.c
Lines 203 to 204 in b5857a3
reads 16 bytes from a[150]. This will include 6 out-of-bounds bytes when unpack_ciphertext is called here in indcpa_dec
Lines 681 to 688 in b5857a3
Quick and dirty fix here: https://github.com/jschanck/package-pqclean/blob/88ee652a0dcc7c23da4f65b477905a193fc30e7a/kyber/patches/avx2_indcpa.c#L12-L25