Skip to content
OpenAdvisories
High · 8.6 CVE-2025-34297 EUVD-2025-200096GHSA-4q9h-j8g6-f49h

KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc

Published Dec 1, 2025 · Updated Jul 14, 2026 · 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.

Affected products

VendorProductAffectedFixed
mborgerding/kissfft mborgerding/kissfft — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 kissfft 131.1.0-4.1 —
Debian 13 kissfft 131.1.0-4.1~deb13u1 —
Debian 12 kissfft 131.1.0-4.1~deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 25.10 kissfft No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS kissfft 131.1.0-4ubuntu0.1~esm1 USN-8745-1
Ubuntu Pro 24.04 LTS kissfft 131.1.0-3ubuntu0.1~esm1 USN-8745-1
Ubuntu Pro 22.04 LTS kissfft 131.1.0-2ubuntu0.1~esm1 USN-8745-1

Advisories 1

References