CVE Vulnerabilities

CVE-2023-32627

Floating Point Comparison with Incorrect Operator

Published: Jul 10, 2023 | Modified: Jun 27, 2025
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
6.2 LOW
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A floating point exception vulnerability was found in sox, in the read_samples function at sox/src/voc.c:334:18. This flaw can lead to a denial of service.

Weakness

The code performs a comparison such as an equality test between two float (floating point) values, but it uses comparison operators that do not account for the possibility of loss of precision.

Affected Software

NameVendorStart VersionEnd Version
Sound_exchangeSound_exchange_project14.4.3 (including)14.4.3 (including)
SoxUbuntubionic*
SoxUbuntuesm-apps/bionic*
SoxUbuntuesm-apps/focal*
SoxUbuntuesm-apps/jammy*
SoxUbuntuesm-apps/noble*
SoxUbuntuesm-apps/xenial*
SoxUbuntuesm-infra-legacy/trusty*
SoxUbuntufocal*
SoxUbuntujammy*
SoxUbuntukinetic*
SoxUbuntulunar*
SoxUbuntumantic*
SoxUbuntunoble*
SoxUbuntutrusty*
SoxUbuntutrusty/esm*
SoxUbuntuupstream*
SoxUbuntuxenial*

Extended Description

Numeric calculation using floating point values can generate imprecise results because of rounding errors. As a result, two different calculations might generate numbers that are mathematically equal, but have slightly different bit representations that do not translate to the same mathematically-equal values. As a result, an equality test or other comparison might produce unexpected results.

References