{"id":"CVE-2026-111157","summary":"SoX through 14.4.2 Heap Out-of-Bounds Write via MS ADPCM WAV Decoding","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-17T02:46:44.131229567Z","published":"2026-10-15T18:57:46.205Z","database_specific":{"cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111157.json","cna_assigner":"VulnCheck"},"references":[{"type":"WEB","url":"https://sourceforge.net/projects/sox/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111157.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-111157"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/sox-through-14.4.2-heap-out-of-bounds-write-via-ms-adpcm-wav-decoding"},{"type":"PACKAGE","url":"https://github.com/chirlu/sox"},{"type":"ARTICLE","url":"https://github.com/chirlu/sox/blob/42b3557e13e0fe01a83465b672d89faddbe65f49/src/adpcm.c#L144-L166"},{"type":"ARTICLE","url":"https://github.com/chirlu/sox/blob/42b3557e13e0fe01a83465b672d89faddbe65f49/src/wav.c#L250-L251"},{"type":"EVIDENCE","url":"https://hackmd.io/@haind-pwn/sox-wav-ms-adpcm-samplesperblock-oob-write"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/chirlu/sox","events":[{"introduced":"0"},{"fixed":"45b161d73ec087a8e003747b1aed07cd33589bca"}],"database_specific":{"source":["AFFECTED_FIELD","DESCRIPTION"],"extracted_events":[{"introduced":"0"},{"last_affected":"14.4.2"},{"fixed":"14.4.2"}]}}],"versions":["sox-14.4.2rc2","sox-14.4.2rc1","sox-14.4.0","sox-14.4.0rc3","sox-14.4.0rc2","sox-14.4.0rc1","sox-14.3.2","sox-14.3.2rc2","sox-14.3.2rc1","sox-14.3.1","sox-14.3.0","sox-14.3.0rc3","sox-14.3.0rc2","sox-14.3.0rc1","sox-14.2.0","sox-14.2.0rc2","sox-14.2.0rc1","sox-14.1.0","sox-14.0.1","sox-14.0.1rc2","sox-14.0.1rc1","sox-14.0.0","sox-13.0.0","sox-12.99.10","sox-12.18.2","sox-12.18.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-111157.json"}}],"schema_version":"1.9.0","severity":[{"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"}]}