CVE-2023-26590
Medium · 5.5CVSS
5.5
EPSS
0.2%
Published
Jul 10, 2023
CISA due date
—
Cloudanix analysis
A bug in the sox audio tool can make it crash when it tries to handle certain sound files, interrupting any work that depends on converting or editing those files.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Floating point exception in lsx_aiffstartwrite at aiff.c:622 triggers a crash when processing certain AIFF inputs, resulting in denial of service.
Why it matters to the business
Audio conversion or processing pipelines that rely on sox can be disrupted by malformed AIFF files, causing unexpected downtime in media workflows; the issue affects widely used distributions including Fedora and Red Hat Enterprise Linux with no listed fixed versions available.
How an attack unfolds
An attacker crafts a malicious AIFF file that reaches the vulnerable floating-point operation inside lsx_aiffstartwrite; when sox is invoked on the file the exception occurs and the process terminates.
How to fix it
Upgrade sox to a patched release that resolves the floating-point exception; if no fixed package is yet available, replace sox with an alternative audio tool or restrict processing to trusted AIFF sources only.
How to confirm the fix worked
Test sox against both the original crashing AIFF sample and a set of known-good AIFF files after applying any update; confirm the process no longer terminates with a floating-point exception.
Typical attack path
- Create or obtain a specially malformed AIFF audio file
- Supply the file to sox via command line or automated workflow
- Trigger the lsx_aiffstartwrite function path that performs the invalid floating-point operation
- Cause the sox process to crash and produce a denial of service
How to detect it
Review system logs and application crash reports for sox processes that terminate with floating-point exceptions while handling AIFF files; correlate timestamps with file-processing jobs.
What your security team should do
- Inventory all systems running sox and prioritize patching where possible
- Add sox crash monitoring to existing audio-processing job alerts
- Block untrusted AIFF files from automated sox pipelines until a fix is deployed
The record
A floating point exception vulnerability was found in sox, in the lsx_aiffstartwrite function at sox/src/aiff.c:622:58. This flaw can lead to a denial of service.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | sox | 0 | 14.4.2+git20190427-2+deb11u1 |
| Debian:12 | sox | 0 | 14.4.2+git20190427-3.1 |
| Debian:13 | sox | 0 | 14.4.2+git20190427-3.1 |
| Ubuntu:20.04:LTS | sox | 0 | 14.4.2+git20190427-2+deb11u1build0.20.04.1 |
| Ubuntu:22.04:LTS | sox | 0 | 14.4.2+git20190427-2+deb11u1build0.22.04.1 |
| Ubuntu:Pro:14.04:LTS | sox | 0 | 14.4.1-3ubuntu1.1+esm2 |
| Ubuntu:Pro:16.04:LTS | sox | 0 | 14.4.1-5+deb8u4ubuntu0.1+esm1 |
Related vulnerabilities
- CVE-2023-32627 A floating point exception vulnerability was found in sox, in the read_samples function… Also affects sox
- CVE-2021-33844 A floating point exception (divide-by-zero) issue was discovered in SoX in functon… Also affects sox
- CVE-2022-31651 In SoX 14.4.2, there is an assertion failure in rate_init in rate.c in libsox.a. Also affects sox
- CVE-2022-31650 In SoX 14.4.2, there is a floating-point exception in lsx_aiffstartwrite in aiff.c in… Also affects sox
- CVE-2021-40426 A heap-based buffer overflow vulnerability exists in the sphere.c start_read()… Also affects sox
- CVE-2019-8354 An issue was discovered in SoX 14.4.2. Also affects sox
- CVE-2004-0557 Multiple buffer overflows in the st_wavstartread function in wav.c for Sound eXchange… Also affects sox
- CVE-2026-101913 ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in… CWE-697