---
id: CVE-2025-34297
title: >-
  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
summary: >-
  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…
severity: none
cwe:
  - CWE-190
published: '2025-12-01'
updated: '2026-07-14'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-34297'
references:
  - url: >-
      https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3
    label: disclosure@vulncheck.com
  - url: 'https://github.com/mborgerding/kissfft/issues/120'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/kissfft-integer-overflow-heap-buffer-overflow
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00165
epssPercentile: 0.05128
ingestedAt: '2026-07-15T13:44:03.525Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
