CVE-2021-40426: sound_exchange_project sound_exchange Heap-based Buffer Overflow
Vulnerability summary
CVE-2021-40426 is a critical (CVSS 10.0) Heap-based Buffer Overflow vulnerability in sound_exchange_project sound_exchange. EPSS estimates a 2.21% chance of exploitation in the next 30 days, higher than 82.4% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 7 · Related 4Timeline
- 14-04-2022PublishedVulnerability first disclosed.
- 15-04-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 4 sources · 3 versions- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated10.0CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
- NVDNIST10.0CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
2.21%
Chance of exploitation in the next 30 days
Percentile
82%
Versus all other CVEs
30-day change
0.00 pp
From 2.21% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (talosintelligence.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Debian1 product
- sox< 14.4.2+git20190427-3.1
Sound exchange1 product
- libsox14.4.2 | master commit 42b3557e
Sound_exchange_project1 product
- sound_exchange14.4.2
Ubuntu1 product
- sox< 14.4.1-3ubuntu1.1+esm2 | < 14.4.1-5+deb8u4ubuntu0.1+esm1 | < 14.4.2-3ubuntu0.18.04.2 | < 14.4.2+git20190427-2+deb11u1build0.20.04.1 | < 14.4.2+git20190427-2+deb11u1build0.22.04.1
4 vendors · 4 products
References
8 links- www.openwall.com/lists/oss-security/2023/02/03/3Mailing List
- www.debian.org/security/2023/dsa-5356Vendor Advisory