Affected versions
Ubuntu20.04:LTS/sox
- Affected versions
- * || =14.4.2+git20190427-1build1 || =14.4.2+git20190427-2 || =14.4.2+git20190427-2+deb11u1build0.20.04.1 || =14.4.2+git20190427-2+deb11u2build0.20.04.1 || =14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1
- Fixed version
- Not reported
Ubuntu22.04:LTS/sox
- Affected versions
- * || =14.4.2+git20190427-2 || =14.4.2+git20190427-2+deb11u1build0.22.04.1 || =14.4.2+git20190427-2+deb11u2build0.22.04.1 || =14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1
- Fixed version
- Not reported
Ubuntu24.04:LTS/sox
- Affected versions
- * || =14.4.2+git20190427-3.5 || =14.4.2+git20190427-4 || =14.4.2+git20190427-4build2 || =14.4.2+git20190427-4build3 || =14.4.2+git20190427-4build4
- Fixed version
- Not reported
UbuntuPro:14.04:LTS/sox
- Affected versions
- * || =14.4.1-3 || =14.4.1-3ubuntu1 || =14.4.1-3ubuntu1.1 || =14.4.1-3ubuntu1.1+esm1 || =14.4.1-3ubuntu1.1+esm2 || =14.4.1-3ubuntu1.1+esm3 || =14.4.1-3ubuntu1.1+esm4
- Fixed version
- Not reported
UbuntuPro:16.04:LTS/sox
- Affected versions
- * || =14.4.1-5 || =14.4.1-5ubuntu0.1 || =14.4.1-5ubuntu0.1+esm1 || =14.4.1-5+deb8u4ubuntu0.1 || =14.4.1-5+deb8u4ubuntu0.1+esm1 || =14.4.1-5+deb8u4ubuntu0.1+esm2 || =14.4.1-5+deb8u4ubuntu0.1+esm3
- Fixed version
- Not reported
UbuntuPro:18.04:LTS/sox
- Affected versions
- Unknown
- Fixed version
- Not reported
Description
SoX through 14.4.2 contains a heap out-of-bounds write vulnerability in lsx_ms_adpcm_block_expand_i() in src/adpcm.c, triggered by an odd samplesPerBlock value in the WAV fmt chunk. Attackers can supply a crafted MS ADPCM WAV file to sox or any libsox consumer to write a partially controlled 16-bit sample past the heap buffer allocated by wav_ms_adpcm_fmt().
Links
- https://github.com/chirlu/sox/blob/42b3557e13e0fe01a83465b672d89faddbe65f49/src/adpcm.c#L144-L166
- https://github.com/chirlu/sox/blob/42b3557e13e0fe01a83465b672d89faddbe65f49/src/wav.c#L250-L251
- https://hackmd.io/@haind-pwn/sox-wav-ms-adpcm-samplesperblock-oob-write
- https://sourceforge.net/projects/sox/
- https://ubuntu.com/security/CVE-2026-111157
- https://www.cve.org/CVERecord?id=CVE-2026-111157
- https://www.vulncheck.com/advisories/sox-through-14.4.2-heap-out-of-bounds-write-via-ms-adpcm-wav-decoding

