{"id":"UBUNTU-CVE-2017-14636","details":"Because of an integer overflow in sam2p 0.49.3, a loop executes 0xffffffff times, ending with an invalid read of size 1 in the Image::Indexed::sortPal function in image.cpp. However, this also causes memory corruption because of an attempted write to the invalid d[0xfffffffe] array element.","modified":"2025-09-08T16:44:26Z","published":"2017-09-22T07:29:00Z","upstream":["CVE-2017-14636"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-14636"},{"type":"REPORT","url":"https://github.com/pts/sam2p/issues/14"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-14636"}],"affected":[{"package":{"name":"sam2p","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/sam2p@0.49.2-3+deb8u3build0.14.04.1?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.2-3+deb8u3build0.14.04.1"}]}],"versions":["0.49.1-1","0.49.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"sam2p","binary_version":"0.49.2-3+deb8u3build0.14.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-14636.json"}},{"package":{"name":"sam2p","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sam2p@0.49.2-3+deb8u3build0.16.04.1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.2-3+deb8u3build0.16.04.1"}]}],"versions":["0.49.2-3"],"ecosystem_specific":{"binaries":[{"binary_name":"sam2p","binary_version":"0.49.2-3+deb8u3build0.16.04.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-14636.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}