{"id":"UBUNTU-CVE-2026-111157","details":"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().","modified":"2026-10-17T12:58:04.013059400Z","published":"2026-10-16T00:00:00Z","upstream":["CVE-2026-111157"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-111157"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-111157"},{"type":"REPORT","url":"https://github.com/chirlu/sox/blob/42b3557e13e0fe01a83465b672d89faddbe65f49/src/adpcm.c#L144-L166"},{"type":"REPORT","url":"https://github.com/chirlu/sox/blob/42b3557e13e0fe01a83465b672d89faddbe65f49/src/wav.c#L250-L251"},{"type":"REPORT","url":"https://hackmd.io/@haind-pwn/sox-wav-ms-adpcm-samplesperblock-oob-write"},{"type":"REPORT","url":"https://sourceforge.net/projects/sox/"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/sox-through-14.4.2-heap-out-of-bounds-write-via-ms-adpcm-wav-decoding"}],"affected":[{"package":{"name":"sox","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/sox?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_version":"14.4.1-3ubuntu1.1+esm4","binary_name":"libsox-fmt-all"},{"binary_version":"14.4.1-3ubuntu1.1+esm4","binary_name":"libsox-fmt-alsa"},{"binary_name":"libsox-fmt-ao","binary_version":"14.4.1-3ubuntu1.1+esm4"},{"binary_name":"libsox-fmt-base","binary_version":"14.4.1-3ubuntu1.1+esm4"},{"binary_version":"14.4.1-3ubuntu1.1+esm4","binary_name":"libsox-fmt-mp3"},{"binary_version":"14.4.1-3ubuntu1.1+esm4","binary_name":"libsox-fmt-oss"},{"binary_name":"libsox-fmt-pulse","binary_version":"14.4.1-3ubuntu1.1+esm4"},{"binary_name":"libsox2","binary_version":"14.4.1-3ubuntu1.1+esm4"},{"binary_name":"sox","binary_version":"14.4.1-3ubuntu1.1+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111157.json"}},{"package":{"name":"sox","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/sox?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libsox-fmt-all","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm3"},{"binary_name":"libsox-fmt-alsa","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm3"},{"binary_name":"libsox-fmt-ao","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm3"},{"binary_name":"libsox-fmt-base","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm3"},{"binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm3","binary_name":"libsox-fmt-mp3"},{"binary_name":"libsox-fmt-oss","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm3"},{"binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm3","binary_name":"libsox-fmt-pulse"},{"binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm3","binary_name":"libsox2"},{"binary_name":"sox","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111157.json"}},{"package":{"name":"sox","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/sox?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["14.4.1-5build1","14.4.2-2","14.4.2-3","14.4.2-3ubuntu0.1~esm1","14.4.2-3ubuntu0.18.04.1","14.4.2-3ubuntu0.18.04.2","14.4.2-3ubuntu0.18.04.3","14.4.2-3ubuntu0.18.04.3+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libsox-fmt-all","binary_version":"14.4.2-3ubuntu0.18.04.3+esm1"},{"binary_name":"libsox-fmt-alsa","binary_version":"14.4.2-3ubuntu0.18.04.3+esm1"},{"binary_name":"libsox-fmt-ao","binary_version":"14.4.2-3ubuntu0.18.04.3+esm1"},{"binary_version":"14.4.2-3ubuntu0.18.04.3+esm1","binary_name":"libsox-fmt-base"},{"binary_name":"libsox-fmt-mp3","binary_version":"14.4.2-3ubuntu0.18.04.3+esm1"},{"binary_version":"14.4.2-3ubuntu0.18.04.3+esm1","binary_name":"libsox-fmt-oss"},{"binary_version":"14.4.2-3ubuntu0.18.04.3+esm1","binary_name":"libsox-fmt-pulse"},{"binary_name":"libsox3","binary_version":"14.4.2-3ubuntu0.18.04.3+esm1"},{"binary_name":"sox","binary_version":"14.4.2-3ubuntu0.18.04.3+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111157.json"}},{"package":{"name":"sox","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/sox?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libsox-fmt-all","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1"},{"binary_name":"libsox-fmt-alsa","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1"},{"binary_name":"libsox-fmt-ao","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1"},{"binary_name":"libsox-fmt-base","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1"},{"binary_name":"libsox-fmt-mp3","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1"},{"binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1","binary_name":"libsox-fmt-oss"},{"binary_name":"libsox-fmt-pulse","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1"},{"binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1","binary_name":"libsox3"},{"binary_name":"sox","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.20.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111157.json"}},{"package":{"name":"sox","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/sox?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libsox-fmt-all","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1"},{"binary_name":"libsox-fmt-alsa","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1"},{"binary_name":"libsox-fmt-ao","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1"},{"binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1","binary_name":"libsox-fmt-base"},{"binary_name":"libsox-fmt-mp3","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1"},{"binary_name":"libsox-fmt-oss","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1"},{"binary_name":"libsox-fmt-pulse","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1"},{"binary_name":"libsox3","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1"},{"binary_name":"sox","binary_version":"14.4.2+git20190427-2+deb11u2ubuntu0.22.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111157.json"}},{"package":{"name":"sox","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/sox?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libsox-fmt-all","binary_version":"14.4.2+git20190427-4build4"},{"binary_version":"14.4.2+git20190427-4build4","binary_name":"libsox-fmt-alsa"},{"binary_version":"14.4.2+git20190427-4build4","binary_name":"libsox-fmt-ao"},{"binary_name":"libsox-fmt-base","binary_version":"14.4.2+git20190427-4build4"},{"binary_name":"libsox-fmt-mp3","binary_version":"14.4.2+git20190427-4build4"},{"binary_name":"libsox-fmt-oss","binary_version":"14.4.2+git20190427-4build4"},{"binary_version":"14.4.2+git20190427-4build4","binary_name":"libsox-fmt-pulse"},{"binary_version":"14.4.2+git20190427-4build4","binary_name":"libsox3"},{"binary_version":"14.4.2+git20190427-4build4","binary_name":"sox"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-111157.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}