Integer Overflow or Wraparound Affecting kissfft package, versions <131.1.0-4.1~deb13u1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-KISSFFT-22587042
  • published18 Nov 2026
  • disclosed1 Dec 2025

Introduced: 1 Dec 2025

CVE-2025-34297  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Echo:latest kissfft to version 131.1.0-4.1~deb13u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kissfft package and not the kissfft package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1