{"id":"CVE-2017-14636","aliases":["DLA-1127-1","EUVD-2017-6136","GHSA-mcv7-hmm4-fr3m","MGASA-2020-0459","UBUNTU-CVE-2017-14636"],"status":"published","title":"Because of an integer overflow in sam2p 0.49.3, a loop executes 0xffffffff times, ending with an...","description":"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.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.01232,"percentile":0.69149,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2017-09-22T07:00:00Z","modified":"2026-10-20T10:48:12Z","fixes":[{"ecosystem":"Ubuntu:14.04:LTS","package":"sam2p","fixed_in":["0.49.2-3+deb8u3build0.14.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"sam2p","fixed_in":["0.49.2-3+deb8u3build0.16.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:7","package":"sam2p","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.1-1+deb7u1"}]}],"versions":["0.49.1-1"],"bundled":6},{"source":"osv","ecosystem":"Mageia:7","package":"sam2p","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.3-2.1.mga7"}]}],"bundled":13},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"sam2p","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.2-3+deb8u3build0.14.04.1"}]}],"versions":["0.49.1-1","0.49.2-2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sam2p","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.49.2-3+deb8u3build0.16.04.1"}]}],"versions":["0.49.2-3"]}],"products":[{"vendor":"sam2p_project","product":"sam2p"}],"references":[{"url":"https://github.com/pts/sam2p/issues/14","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-14636"},{"url":"https://github.com/advisories/GHSA-mcv7-hmm4-fr3m"},{"url":"https://advisories.mageia.org/MGASA-2020-0459.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=27746","tags":["report"]},{"url":"https://www.debian.org/lts/security/2017/dla-1127","tags":["web"]},{"url":"https://www.debian.org/lts/security/2017/dla-1185","tags":["web"]},{"url":"https://www.debian.org/lts/security/2018/dla-1340","tags":["web"]},{"url":"https://www.debian.org/lts/security/2018/dla-1463","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2017-14636","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-14636","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2017-14636","description":"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.","status":"published","published":"2017-09-22T07:00:00Z","modified":"2024-08-05T19:34:39.551Z","updated_at":"2026-11-02T14:33:12.267141Z"}],"euvd":[{"id":"EUVD-2017-6136","description":"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.","status":"published","published":"2017-09-22T07:00:00Z","modified":"2024-08-05T19:34:39Z","updated_at":"2026-11-03T02:23:16.177631Z"}],"ghsa":[{"id":"GHSA-mcv7-hmm4-fr3m","title":"Because of an integer overflow in sam2p 0.49.3, a loop executes 0xffffffff times, ending with an...","description":"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.","status":"published","published":"2022-05-17T00:47:59Z","modified":"2023-02-03T05:02:30Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:53:11.198373Z"}],"nvd":[{"id":"CVE-2017-14636","description":"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.","status":"published","published":"2017-09-22T07:29:00.207Z","modified":"2026-06-17T01:06:31.98Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:03:59.716532Z"}],"osv":[{"id":"CVE-2017-14636","description":"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.","status":"published","published":"2017-09-22T07:29:00.207Z","modified":"2026-10-20T10:48:12.418026234Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:04.572713Z"},{"id":"UBUNTU-CVE-2017-14636","description":"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.","status":"published","published":"2017-09-22T07:29:00Z","modified":"2025-09-08T16:44:26Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:14.563448Z"},{"id":"DLA-1127-1","title":"sam2p - security update","status":"published","published":"2017-10-08T00:00:00Z","modified":"2026-03-09T01:01:38.498623Z","updated_at":"2026-11-02T15:46:09.336894Z"},{"id":"MGASA-2020-0459","title":"Updated sam2p package fixes security vulnerabilities","description":"In sam2p 0.49.3, a heap-based buffer overflow exists in the pcxLoadImage24\nfunction of the file in_pcx.cpp. (CVE-2017-14628).\n\nIn sam2p 0.49.3, the in_xpm_reader function in in_xpm.cpp has an integer\nsignedness error, leading to a crash when writing to an out-of-bounds array\nelement. (CVE-2017-14629).\n\nIn sam2p 0.49.3, an integer overflow exists in the pcxLoadImage24 function\nof the file in_pcx.cpp, leading to an invalid write operation.\n(CVE-2017-14630).\n\nIn sam2p 0.49.3, the pcxLoadRaster function in in_pcx.cpp has an integer\nsignedness error leading to a heap-based buffer overflow. (CVE-2017-14631).\n\nBecause of an integer overflow in sam2p 0.49.3, a loop executes 0xffffffff\ntimes, ending with an invalid read of size 1 in the Image::Indexed::sortPal\nfunction in image.cpp. However, this also causes memory corruption becaus\nof an attempted write to the invalid d[0xfffffffe] array element.\n(CVE-2017-14636).\n\nIn sam2p 0.49.3, there is an invalid read of size 2 in the parse_rgb function\nin in_xpm.cpp. However, this can also cause a write to an illegal address.\n(CVE-2017-14637).\n\nIn sam2p 0.49.4, there are integer overflows (with resultant heap-based buffer\noverflows) in input-bmp.ci in the function ReadImage, because \"width * height\"\nmultiplications occur unsafely. (CVE-2017-16663).\n\nThere is a heap-based buffer overflow in the LoadPCX function of in_pcx.cpp\nin sam2p 0.49.4. A Crafted input will lead to a denial of service or possibly\nunspecified other impact. (CVE-2018-7487).\n\nThere is an invalid free in MiniPS::delete0 in minips.cpp that leads to a\nSegmentation fault in sam2p 0.49.4. A crafted input will lead to a denial of\nservice or possibly unspecified other impact. (CVE-2018-7551).\n\nThere is a heap-based buffer overflow in the pcxLoadRaster function of\nin_pcx.cpp in sam2p 0.49.4. A crafted input will lead to a denial of service\nor possibly unspecified other impact. (CVE-2018-7553).\n\nThere is an invalid free in ReadImage in input-bmp.ci that leads to a\nSegmentation fault in sam2p 0.49.4. A crafted input will lead to a denial of\nservice or possibly unspecified other impact. (CVE-2018-7554).\n\nThere is a heap-based buffer overflow in bmp_compress1_row in appliers.cpp\nin sam2p 0.49.4 that leads to a denial of service or possibly unspecified\nother impact. (CVE-2018-12578).\n\nThere is a heap-based buffer overflow in ReadImage in input-tga.ci in sam2p\n0.49.4 that leads to a denial of service or possibly unspecified other impact.\n(CVE-2018-12601).\n","status":"published","published":"2020-12-17T13:10:41Z","modified":"2026-04-16T04:43:51.985431021Z","updated_at":"2026-11-02T15:49:41.509337Z"}]}}
