Cloudanix VulnDB

CVE-2022-31650

Medium · 5.5

CVSS

5.5

EPSS

1.2%

Published

May 25, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in an audio tool can make the program crash when it tries to read certain sound files, interrupting any work that depends on that tool.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Denial of service
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Floating-point exception triggered in lsx_aiffstartwrite during AIFF header processing causes the libsox library to terminate abnormally.

Why it matters to the business

Audio processing workflows that rely on SoX become unavailable when handling certain malformed files, leading to operational interruptions and manual intervention.

How an attack unfolds

An attacker prepares a specially crafted AIFF audio file that triggers the floating-point exception on load and then convinces a user or automated process to run SoX against the file, resulting in a crash.

How to fix it

Upgrade to a SoX release that resolves the floating-point handling defect in aiff.c; until then, isolate SoX from untrusted inputs and consider alternative audio tools for high-risk workflows.

How to confirm the fix worked

Test affected SoX binary against a minimal reproducer AIFF file that previously triggered the exception and confirm the process no longer terminates; scan build logs or dependency manifests for the vulnerable 14.4.2 version string.

Typical attack path

  1. Craft AIFF file containing values that provoke division-by-zero or invalid float operation in lsx_aiffstartwrite
  2. Deliver file via email, web download, or shared storage
  3. Victim or script invokes SoX (or any linked application) on the file
  4. Library encounters exception and aborts

How to detect it

Review process crash logs, core dumps, or application event records for SoX invocations that end with floating-point exceptions; correlate file-access timestamps with user or script activity on AIFF inputs.

What your security team should do

  • Block or sandbox SoX execution against files originating outside trusted sources
  • Monitor upstream SoX releases for a corrective patch and schedule deployment
  • Replace SoX with maintained alternatives where AIFF handling is required in automated pipelines

The record

In SoX 14.4.2, there is a floating-point exception in lsx_aiffstartwrite in aiff.c in libsox.a.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 sox 0 14.4.2+git20190427-1+deb10u1
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
Mageia:8 sox 0 14.4.3-0.git20200117.3.1.mga8
SUSE:Package Hub 15 SP4 sox 0 14.4.2-bp154.2.3.1
SUSE:Package Hub 15 SP5 sox 0 14.4.2-bp155.3.3.1
Ubuntu:18.04:LTS sox 0 14.4.2-3ubuntu0.18.04.2
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
openSUSE:Leap 15.4 sox 0 14.4.2-bp154.2.3.1
openSUSE:Leap 15.5 sox 0 14.4.2-bp155.3.3.1
openSUSE:Tumbleweed sox 0 14.4.2-8.1

Related vulnerabilities