CVE Vulnerabilities

CVE-2026-37555

Integer Overflow or Wraparound

Published: Apr 29, 2026 | Modified: May 01, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
8.2 IMPORTANT
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

An issue was discovered in libsndfile 1.2.2 IMA ADPCM codec. The AIFF code path (line 241) was fixed with (sf_count_t) cast, but the WAV code path (line 235) and close path (line 167) were not. When samplesperblock (int) * blocks (int) exceeds INT_MAX, the 32-bit multiplication overflows before being assigned to sf.frames (sf_count_t/int64). With samplesperblock=50000 and blocks=50000, the product 2500000000 overflows to -1794967296. This causes incorrect frame count leading to heap buffer overflow or denial of service. Both values come from the WAV file header and are attacker-controlled. This issue was discovered after an incomplete fix for CVE-2022-33065.

Weakness

The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

Affected Software

NameVendorStart VersionEnd Version
LibsndfileLibsndfile_project1.2.2 (including)1.2.2 (including)
Red Hat Enterprise Linux 10RedHatlibsndfile-0:1.2.2-6.el10_2.1*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatlibsndfile-0:1.2.2-5.el10_0.1*
Red Hat Enterprise Linux 8RedHatlibsndfile-0:1.0.28-17.el8_10*
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportRedHatlibsndfile-0:1.0.28-10.el8_4.2*
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnRedHatlibsndfile-0:1.0.28-10.el8_4.2*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatlibsndfile-0:1.0.28-13.el8_6*
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-OnRedHatlibsndfile-0:1.0.28-13.el8_6*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatlibsndfile-0:1.0.28-14.el8_8*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatlibsndfile-0:1.0.28-14.el8_8*
Red Hat Enterprise Linux 9RedHatlibsndfile-0:1.0.31-9.el9_8.1*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatlibsndfile-0:1.0.31-7.el9_2.1*
Red Hat Enterprise Linux 9.4 Update Services for SAP SolutionsRedHatlibsndfile-0:1.0.31-8.el9_4.2*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatlibsndfile-0:1.0.31-9.el9_6.1*
LibsndfileUbuntuesm-infra/xenial*

Potential Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • If possible, choose a language or compiler that performs automatic bounds checking.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].
  • Use libraries or frameworks that make it easier to handle numbers without unexpected consequences.
  • Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++). [REF-106]
  • Perform input validation on any numeric input by ensuring that it is within the expected range. Enforce that the input meets both the minimum and maximum requirements for the expected range.
  • Use unsigned integers where possible. This makes it easier to perform validation for integer overflows. When signed integers are required, ensure that the range check includes minimum values as well as maximum values.
  • Understand the programming language’s underlying representation and how it interacts with numeric calculation (CWE-681). Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, “not-a-number” calculations, and how the language handles numbers that are too large or too small for its underlying representation. [REF-7]
  • Also be careful to account for 32-bit, 64-bit, and other potential differences that may affect the numeric representation.

References