Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 838382 (CVE-2021-23159, CVE-2021-23172, CVE-2021-23210, CVE-2021-33844, CVE-2021-3643, CVE-2021-40426, CVE-2022-31650, CVE-2022-31651, CVE-2023-26590, CVE-2023-32627, CVE-2023-34318, CVE-2023-34432) - media-sound/sox: multiple vulnerabilities
Summary: media-sound/sox: multiple vulnerabilities
Status: CONFIRMED
Alias: CVE-2021-23159, CVE-2021-23172, CVE-2021-23210, CVE-2021-33844, CVE-2021-3643, CVE-2021-40426, CVE-2022-31650, CVE-2022-31651, CVE-2023-26590, CVE-2023-32627, CVE-2023-34318, CVE-2023-34432
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: https://talosintelligence.com/vulnera...
Whiteboard: B2 [??]
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-15 00:15 UTC by John Helmert III
Modified: 2023-11-27 20:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-04-15 00:15:28 UTC
CVE-2021-40426:

A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.

No link to upstream report, or patch, or anything, but sphere.c doesn't seem to have been touched since 2014.
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-05-03 00:25:02 UTC
CVE-2021-3643 (https://bugzilla.redhat.com/show_bug.cgi?id=1980626):

A flaw was found in sox 14.4.1. The lsx_adpcm_init function within libsox leads to a global-buffer-overflow. This flaw allows an attacker to input a malicious file, leading to the disclosure of sensitive information.

According to the Redhat bug, CVE-2021-23210 (a DoS) also affects Sox.
Comment 2 filip ambroz 2022-05-26 07:29:13 UTC
[CVE-2022-31650]
In SoX 14.4.2, there is a floating-point exception in lsx_aiffstartwrite in aiff.c in libsox.a.

[CVE-2022-31651]
In SoX 14.4.2, there is an assertion failure in rate_init in rate.c in libsox.a.

---
Found by fuzzing.
URL: https://sourceforge.net/p/sox/bugs/360/
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-08-26 15:58:19 UTC
CVE-2021-23210 (https://bugzilla.redhat.com/show_bug.cgi?id=1975670):

A floating point exception (divide-by-zero) issue was discovered in SoX in functon read_samples() of voc.c file. An attacker with a crafted file, could cause an application to crash.

Issue: https://sourceforge.net/p/sox/bugs/351/

CVE-2021-33844 (https://bugzilla.redhat.com/show_bug.cgi?id=1975664):

A floating point exception (divide-by-zero) issue was discovered in SoX in functon startread() of wav.c file. An attacker with a crafted wav file, could cause an application to crash.

Issue: https://sourceforge.net/p/sox/bugs/349/

No patches, RedHat closed them as notabug.
Comment 4 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-08-26 17:39:52 UTC
CVE-2021-23159:

A vulnerability was found in SoX, where a heap-buffer-overflow occurs in function lsx_read_w_buf() in formats_i.c file. The vulnerability is exploitable with a crafted file, that could cause an application to crash.

Issue: https://sourceforge.net/p/sox/bugs/352/
RedHat bug: https://bugzilla.redhat.com/show_bug.cgi?id=1975671

CVE-2021-23172:

A vulnerability was found in SoX, where a heap-buffer-overflow occurs in function startread() in hcom.c file. The vulnerability is exploitable with a crafted hcomn file, that could cause an application to crash.

Issue: https://sourceforge.net/p/sox/bugs/350/
RedHat bug: https://bugzilla.redhat.com/show_bug.cgi?id=1975666

No response from upstream, and RedHat's WONTFIXed their bugs without
explanation. Need to prod them, probably.
Comment 5 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-03-11 04:55:06 UTC
CVE-2022-31650 (https://sourceforge.net/p/sox/bugs/360/):

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

CVE-2022-31651 (https://sourceforge.net/p/sox/bugs/360/):

In SoX 14.4.2, there is an assertion failure in rate_init in rate.c in libsox.a.

Seems like potential patches (for these two and others) at:
http://www.openwall.com/lists/oss-security/2023/02/03/3
Comment 6 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-11-27 20:02:57 UTC
CVE-2023-34432 (https://bugzilla.redhat.com/show_bug.cgi?id=2212291):

A heap buffer overflow vulnerability was found in sox, in the lsx_readbuf function at sox/src/formats_i.c:98:16. This flaw can lead to a denial of service, code execution, or information disclosure.

Upstream report: https://sourceforge.net/p/sox/bugs/367/

CVE-2023-26590 (https://bugzilla.redhat.com/show_bug.cgi?id=2212279):

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.

Upstream report: https://sourceforge.net/p/sox/bugs/370/

CVE-2023-32627 (https://bugzilla.redhat.com/show_bug.cgi?id=2212282):

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.

Upstream report: https://sourceforge.net/p/sox/bugs/369/

CVE-2023-34318 (https://bugzilla.redhat.com/show_bug.cgi?id=2212283):

A heap buffer overflow vulnerability was found in sox, in the startread function at sox/src/hcom.c:160:41. This flaw can lead to a denial of service, code execution, or information disclosure.

Upstream report: https://sourceforge.net/p/sox/bugs/368/

According to comments in the upstream issues, it appears these have patches in Debian.