CVE-2025-34297 Details
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.
A heap buffer overflow vulnerability has been identified in KissFFT versions prior to the fix commit 1b083165. This issue arises in the `kiss_fft_alloc()` function within `kiss_fft.c`, specifically on platforms where `size_t` is 32-bit. The vulnerability is caused by an integer overflow in the `nfft` parameter, which is not properly validated before being used in a size calculation. When `nfft` is large, the calculation can wrap around to a small value, leading to `malloc()` allocating an undersized buffer. The subsequent initialization loop, which sets up twiddle factors, then writes an excessive number of elements into this small buffer, causing a heap buffer overflow. This vulnerability is present on all 32-bit architectures, including ARM32, x86 (i386/i686), MIPS32, and other 32-bit platforms. In contrast, 64-bit systems are not vulnerable as the size calculation does not overflow, allowing `malloc()` to receive the correct buffer size.
Users can update to KissFFT versions that include the fix for this vulnerability, specifically versions after the commit 1b083165.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 1, 2025CISA-ADP
Assessed Dec 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3 | [email protected] | Source CodeVendor |
| https://github.com/mborgerding/kissfft/issues/120 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.vulncheck.com/advisories/kissfft-integer-overflow-heap-buffer-overflow | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mborgerding kissfft | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jul 14, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 1, 2025 | New CVE Received | [email protected] |
Volerion