Heap-based Buffer Overflow Affecting kissfft package, versions <131.2.0_git20260422-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.29% (24th 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-ALPINE323-KISSFFT-16879883
  • published27 May 2026
  • disclosed20 Apr 2026

Introduced: 20 Apr 2026

CVE-2026-41445  (opens in a new tab)
CWE-122  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Alpine:3.23 kissfft to version 131.2.0_git20260422-r0 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 Alpine. See How to fix? for Alpine:3.23 relevant fixed versions and status.

KissFFT before commit 8a8e66e contains an integer overflow vulnerability in the kiss_fftndr_alloc() function in kiss_fftndr.c where the allocation size calculation dimOther*(dimReal+2)*sizeof(kiss_fft_scalar) overflows signed 32-bit integer arithmetic before being widened to size_t, causing malloc() to allocate an undersized buffer. Attackers can trigger heap buffer overflow by providing crafted dimensions that cause the multiplication to exceed INT_MAX, allowing writes beyond the allocated buffer region when kiss_fftndr() processes the data.

CVSS Base Scores

version 3.1