CVE-2025-34297

published 1 Dec 2025 · updated 16 Nov 2026

KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc

8.6HighCVSS 8.6EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1b08316582049c3716154caefc0deab8758506e3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
mborgerding/kissfft<1b08316582049c3716154caefc0deab8758506e31b08316582049c3716154caefc0deab8758506e3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-34297 severity on Zeptric[![CVE-2025-34297](https://zeptric.io/badge/cve/CVE-2025-34297.svg)](https://zeptric.io/cve/CVE-2025-34297)