{"id":"CVE-2025-34297","published":"2025-12-01T18:18:15Z","modified":"2026-07-14T22:25:55Z","title":"KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc","vendor":"mborgerding/kissfft","product":"mborgerding/kissfft","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00255,"percentile":0.10496,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3","tags":["patch"]},{"url":"https://github.com/mborgerding/kissfft/issues/120","tags":["issue-tracking"]},{"url":"https://www.vulncheck.com/advisories/kissfft-integer-overflow-heap-buffer-overflow","tags":["third-party-advisory"]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":2.1},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"mborgerding-kissfft","affectedVersions":[{"vendor":"mborgerding/kissfft","product":"mborgerding/kissfft","versions":["< 1b08316582049c3716154caefc0deab8758506e3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-12-01T18:36:15.952712Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-200096","exploited":false,"provenance":"source"}}