Description
KissFFT before commit 8a8e66e contains an integer overflow vulnerability in the kiss_fftndr_alloc() function in kiss_fftndr.c where the allocation size calculation dimOther*(dimReal+2)*sizeof(kiss_fft_scalar) overflows signed 32-bit integer arithmetic before being widened to size_t, causing malloc() to allocate an undersized buffer. Attackers can trigger heap buffer overflow by providing crafted dimensions that cause the multiplication to exceed INT_MAX, allowing writes beyond the allocated buffer region when kiss_fftndr() processes the data.
Problem types
CWE-190 Integer Overflow or Wraparound
CWE-122 Heap-based Buffer Overflow
Product status
Any version before 8a8e66e33d692bad1376fe7904d87d767730537f
Credits
Sajeeb Lohani
VulnCheck
References
github.com/...ommit/8a8e66e33d692bad1376fe7904d87d767730537f
www.vulncheck.com/...p-buffer-overflow-via-kiss-fftndr-alloc