Home

Description

KissFFT versions prior to the fix commit 1b083165 contain an integer overflow in kiss_fft_alloc() in kiss_fft.c on platforms where size_t is 32-bit. The nfft parameter is not validated before being used in a size calculation (sizeof(kiss_fft_cpx) * (nfft - 1)), which can wrap to a small value when nfft is large. As a result, malloc() allocates an undersized buffer and the subsequent twiddle-factor initialization loop writes nfft elements, causing a heap buffer overflow. This vulnerability only affects 32-bit architectures.

PUBLISHED Reserved 2025-04-15 | Published 2025-12-01 | Updated 2025-12-01 | Assigner VulnCheck




HIGH: 8.6CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Problem types

CWE-190 Integer Overflow or Wraparound

Product status

Default status
unaffected

Any version before commit 1b083165
affected

Credits

Sajeeb Lohani of Bugcrowd Security Innovation Lab finder

References

github.com/...ommit/1b08316582049c3716154caefc0deab8758506e3 patch

github.com/mborgerding/kissfft/issues/120 issue-tracking

www.vulncheck.com/...t-integer-overflow-heap-buffer-overflow third-party-advisory

cve.org (CVE-2025-34297)

nvd.nist.gov (CVE-2025-34297)

Download JSON