# CVE-2025-34297: KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc

- Severity: High 8.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2025-12-01T18:18:15.156Z
- Modified: 2026-10-18T20:10:00.110Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- mborgerding/kissfft mborgerding/kissfft: before 1b08316582049c3716154caefc0deab8758506e3

## References

- <https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3> (patch)
- <https://github.com/mborgerding/kissfft/issues/120> (issue-tracking)
- <https://www.vulncheck.com/advisories/kissfft-integer-overflow-heap-buffer-overflow> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-34297](https://www.cve.org/CVERecord?id=CVE-2025-34297), CVE Terms of Use, modified 2026-07-14
- NVD: [CVE-2025-34297](https://nvd.nist.gov/vuln/detail/CVE-2025-34297), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-34297 · Whole record: https://cve.day/CVE-2025-34297.json · Rebuilt by cve.day 2026-11-25T22:59:08.134Z
