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.

Severity (CVSS 4.0)8.6High
Exploit odds (30 days)0.2%top 92.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12kissfft131.1.0-4.1~deb12u1DEBIAN-CVE-2025-34297
Debian:13kissfft131.1.0-4.1~deb13u1DEBIAN-CVE-2025-34297
Debian:14kissfft131.1.0-4.1DEBIAN-CVE-2025-34297
Ubuntu:25.10kissfftno fix listedUBUNTU-CVE-2025-34297

Affected products (as reported)

VendorProductVersions
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

References