CVE-2025-34297 KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc
An integer overflow in KissFFT's allocation function on 32-bit systems leads to a heap buffer overflow, potentially allowing code execution or crashes.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-34297?
CVE-2025-34297 is a high-severity vulnerability in mborgerding/kissfft, published on 1 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-190
Which versions are affected by CVE-2025-34297?
How do I fix CVE-2025-34297?
Apply the vendor's patch.
Is CVE-2025-34297 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-34297 exists.
Sources
Also known as DEBIAN-CVE-2025-34297, GHSA-4q9h-j8g6-f49h, UBUNTU-CVE-2025-34297.