{"id":"UBUNTU-CVE-2021-23172","details":"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.","modified":"2026-04-22T14:35:56.502977Z","published":"2022-08-25T20:15:00Z","related":["USN-5904-1"],"upstream":["CVE-2021-23172"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-23172"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1975666"},{"type":"REPORT","url":"https://sourceforge.net/p/sox/bugs/350/"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2021-23172"},{"type":"REPORT","url":"https://security.archlinux.org/CVE-2021-23172"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5904-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-23172"}],"affected":[{"package":{"name":"sox","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/sox@14.4.1-3ubuntu1.1+esm2?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.4.1-3ubuntu1.1+esm2"}]}],"versions":["14.4.1-3","14.4.1-3ubuntu1","14.4.1-3ubuntu1.1","14.4.1-3ubuntu1.1+esm1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"libsox-fmt-all","binary_version":"14.4.1-3ubuntu1.1+esm2"},{"binary_name":"libsox-fmt-alsa","binary_version":"14.4.1-3ubuntu1.1+esm2"},{"binary_name":"libsox-fmt-ao","binary_version":"14.4.1-3ubuntu1.1+esm2"},{"binary_name":"libsox-fmt-base","binary_version":"14.4.1-3ubuntu1.1+esm2"},{"binary_name":"libsox-fmt-mp3","binary_version":"14.4.1-3ubuntu1.1+esm2"},{"binary_name":"libsox-fmt-oss","binary_version":"14.4.1-3ubuntu1.1+esm2"},{"binary_name":"libsox-fmt-pulse","binary_version":"14.4.1-3ubuntu1.1+esm2"},{"binary_name":"libsox2","binary_version":"14.4.1-3ubuntu1.1+esm2"},{"binary_name":"sox","binary_version":"14.4.1-3ubuntu1.1+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23172.json"}},{"package":{"name":"sox","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/sox@14.4.1-5+deb8u4ubuntu0.1+esm1?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.4.1-5+deb8u4ubuntu0.1+esm1"}]}],"versions":["14.4.1-5","14.4.1-5ubuntu0.1","14.4.1-5ubuntu0.1+esm1","14.4.1-5+deb8u4ubuntu0.1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"libsox-fmt-all","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm1"},{"binary_name":"libsox-fmt-alsa","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm1"},{"binary_name":"libsox-fmt-ao","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm1"},{"binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm1","binary_name":"libsox-fmt-base"},{"binary_name":"libsox-fmt-mp3","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm1"},{"binary_name":"libsox-fmt-oss","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm1"},{"binary_name":"libsox-fmt-pulse","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm1"},{"binary_name":"libsox2","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm1"},{"binary_name":"sox","binary_version":"14.4.1-5+deb8u4ubuntu0.1+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23172.json"}},{"package":{"name":"sox","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/sox@14.4.2-3ubuntu0.18.04.2?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.4.2-3ubuntu0.18.04.2"}]}],"versions":["14.4.1-5build1","14.4.2-2","14.4.2-3","14.4.2-3ubuntu0.18.04.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libsox-fmt-all","binary_version":"14.4.2-3ubuntu0.18.04.2"},{"binary_name":"libsox-fmt-alsa","binary_version":"14.4.2-3ubuntu0.18.04.2"},{"binary_version":"14.4.2-3ubuntu0.18.04.2","binary_name":"libsox-fmt-ao"},{"binary_name":"libsox-fmt-base","binary_version":"14.4.2-3ubuntu0.18.04.2"},{"binary_name":"libsox-fmt-mp3","binary_version":"14.4.2-3ubuntu0.18.04.2"},{"binary_name":"libsox-fmt-oss","binary_version":"14.4.2-3ubuntu0.18.04.2"},{"binary_name":"libsox-fmt-pulse","binary_version":"14.4.2-3ubuntu0.18.04.2"},{"binary_name":"libsox3","binary_version":"14.4.2-3ubuntu0.18.04.2"},{"binary_name":"sox","binary_version":"14.4.2-3ubuntu0.18.04.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23172.json"}},{"package":{"name":"sox","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/sox@14.4.2+git20190427-2+deb11u1build0.20.04.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.4.2+git20190427-2+deb11u1build0.20.04.1"}]}],"versions":["14.4.2+git20190427-1build1","14.4.2+git20190427-2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libsox-fmt-all","binary_version":"14.4.2+git20190427-2+deb11u1build0.20.04.1"},{"binary_version":"14.4.2+git20190427-2+deb11u1build0.20.04.1","binary_name":"libsox-fmt-alsa"},{"binary_name":"libsox-fmt-ao","binary_version":"14.4.2+git20190427-2+deb11u1build0.20.04.1"},{"binary_name":"libsox-fmt-base","binary_version":"14.4.2+git20190427-2+deb11u1build0.20.04.1"},{"binary_name":"libsox-fmt-mp3","binary_version":"14.4.2+git20190427-2+deb11u1build0.20.04.1"},{"binary_name":"libsox-fmt-oss","binary_version":"14.4.2+git20190427-2+deb11u1build0.20.04.1"},{"binary_name":"libsox-fmt-pulse","binary_version":"14.4.2+git20190427-2+deb11u1build0.20.04.1"},{"binary_name":"libsox3","binary_version":"14.4.2+git20190427-2+deb11u1build0.20.04.1"},{"binary_name":"sox","binary_version":"14.4.2+git20190427-2+deb11u1build0.20.04.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23172.json"}},{"package":{"name":"sox","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/sox@14.4.2+git20190427-2+deb11u1build0.22.04.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.4.2+git20190427-2+deb11u1build0.22.04.1"}]}],"versions":["14.4.2+git20190427-2"],"ecosystem_specific":{"binaries":[{"binary_version":"14.4.2+git20190427-2+deb11u1build0.22.04.1","binary_name":"libsox-fmt-all"},{"binary_name":"libsox-fmt-alsa","binary_version":"14.4.2+git20190427-2+deb11u1build0.22.04.1"},{"binary_name":"libsox-fmt-ao","binary_version":"14.4.2+git20190427-2+deb11u1build0.22.04.1"},{"binary_name":"libsox-fmt-base","binary_version":"14.4.2+git20190427-2+deb11u1build0.22.04.1"},{"binary_name":"libsox-fmt-mp3","binary_version":"14.4.2+git20190427-2+deb11u1build0.22.04.1"},{"binary_name":"libsox-fmt-oss","binary_version":"14.4.2+git20190427-2+deb11u1build0.22.04.1"},{"binary_name":"libsox-fmt-pulse","binary_version":"14.4.2+git20190427-2+deb11u1build0.22.04.1"},{"binary_name":"libsox3","binary_version":"14.4.2+git20190427-2+deb11u1build0.22.04.1"},{"binary_name":"sox","binary_version":"14.4.2+git20190427-2+deb11u1build0.22.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-23172.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}