Vulnerability · Published Dec 1, 2025 · Assigned by VulnCheck
CVE-2025-34297KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc
High 8.6
In plain English
A high-severity integer overflow in mborgerding/kissfft from mborgerding/kissfft. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | kissfft | 131.1.0-4.1~deb12u1 | DEBIAN-CVE-2025-34297 |
| Debian:13 | kissfft | 131.1.0-4.1~deb13u1 | DEBIAN-CVE-2025-34297 |
| Debian:14 | kissfft | 131.1.0-4.1 | DEBIAN-CVE-2025-34297 |
| Ubuntu:25.10 | kissfft | no fix listed | UBUNTU-CVE-2025-34297 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| mborgerding/kissfft | mborgerding/kissfft | 0 – before 1b08316582049c3716154caefc0deab8758506e3 |
Weakness: CWE-190 · 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