{"id":"UBUNTU-CVE-2021-32614","details":"A flaw was found in dmg2img through 20170502. fill_mishblk() does not check the length of the read buffer, and copy 0xCC bytes from it. The length of the buffer is controlled by an attacker. By providing a length smaller than 0xCC, memcpy reaches out of the malloc'ed bound. This possibly leads to memory layout information leaking in the data. This might be used in a chain of vulnerability in order to reach code execution.","modified":"2026-05-20T16:04:58.939186707Z","published":"2021-05-26T22:15:00Z","upstream":["CVE-2021-32614"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-32614"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-32614"}],"affected":[{"package":{"name":"dmg2img","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.5-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.5-1","binary_name":"dmg2img"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.5-1.1","1.6.7-1","1.6.7-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.7-1build1","binary_name":"dmg2img"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1build1","1.6.7-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1build2","1.6.7-1build3","1.6.7-1build4"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7-1build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7-1build4","1.6.7+git20201227.a3e4134-0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.7+git20201227.a3e4134-0.1","binary_name":"dmg2img"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.json"}},{"package":{"name":"dmg2img","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/dmg2img?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.7+git20201227.a3e4134-0.1","1.6.7+git20201227.a3e4134-0.1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"dmg2img","binary_version":"1.6.7+git20201227.a3e4134-0.1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32614.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:H/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}