{"id":"CVE-2016-9540","details":"tools/tiffcp.c in libtiff 4.0.6 has an out-of-bounds write on tiled images with odd tile width versus image width. Reported as MSVR 35103, aka \"cpStripToTile heap-buffer-overflow.\"","modified":"2026-04-11T03:56:42.215004Z","published":"2016-11-22T19:59:08.840Z","related":["SUSE-SU-2018:1835-1"],"references":[{"type":"WEB","url":"http://www.securityfocus.com/bid/94747"},{"type":"ADVISORY","url":"http://rhn.redhat.com/errata/RHSA-2017-0225.html"},{"type":"ADVISORY","url":"http://www.debian.org/security/2017/dsa-3762"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/94484"},{"type":"FIX","url":"https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vadz/libtiff","events":[{"introduced":"0"},{"last_affected":"8a37c8e244de3457283b54986d09a8db4d24381c"},{"fixed":"5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"4.0.6"}]}}],"versions":["Pre360","Release-","Release-3-7-0","Release-v3-5-","Release-v3-5-4","Release-v3-5-5","Release-v3-5-7","Release-v3-6-0","Release-v3-6-0beta2","Release-v3-6-1","Release-v3-7-0-alpha","Release-v3-7-0beta","Release-v3-7-0beta2","Release-v3-7-1","Release-v3-7-2","Release-v3-7-3","Release-v3-7-4","Release-v3-8-0","Release-v3-8-1","Release-v3-8-2","Release-v4-0-0","Release-v4-0-0alpha","Release-v4-0-0alpha4","Release-v4-0-0alpha5","Release-v4-0-0alpha6","Release-v4-0-0beta7","Release-v4-0-1","Release-v4-0-2","Release-v4-0-3","Release-v4-0-4","Release-v4-0-4beta","Release-v4-0-5","Release-v4-0-6"],"database_specific":{"vanir_signatures":[{"signature_version":"v1","source":"https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3","id":"CVE-2016-9540-14ce97fd","digest":{"length":1112,"function_hash":"207524068906828631989641842792468108303"},"deprecated":false,"target":{"function":"DECLAREreadFunc","file":"tools/tiffcp.c"},"signature_type":"Function"},{"signature_version":"v1","source":"https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3","id":"CVE-2016-9540-6dbdf5a6","digest":{"length":1114,"function_hash":"195565821341471143227011566239408712014"},"deprecated":false,"target":{"function":"DECLAREwriteFunc","file":"tools/tiffcp.c"},"signature_type":"Function"},{"signature_version":"v1","source":"https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3","id":"CVE-2016-9540-92bc6797","digest":{"threshold":0.9,"line_hashes":["34526652489744293167320693439694332065","65740507902341232373190466765183987449","154738245544947738771589024196496874484","184235936083252003010603516386408026816","34526652489744293167320693439694332065","322474512737234513158984885363131714047","48270571887375478153307819412452982050","18898764740452236580005303907312585781"]},"deprecated":false,"target":{"file":"tools/tiffcp.c"},"signature_type":"Line"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9540.json","vanir_signatures_modified":"2026-04-11T03:56:42Z"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}