{"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-07-08T12:06:38.095302Z","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":"8a37c8e244de3457283b54986d09a8db4d24381c"},{"last_affected":"8a37c8e244de3457283b54986d09a8db4d24381c"},{"fixed":"5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"}],"database_specific":{"cpe":"cpe:2.3:a:libtiff:libtiff:4.0.6:*:*:*:*:*:*:*","source":["CPE_STRING","REFERENCES"],"extracted_events":[{"introduced":"4.0.6"},{"last_affected":"4.0.6"}]}}],"versions":["4.0.6","Release-v4-0-6"],"database_specific":{"vanir_signatures":[{"signature_type":"Function","digest":{"length":1112,"function_hash":"207524068906828631989641842792468108303"},"deprecated":false,"signature_version":"v1","id":"CVE-2016-9540-14ce97fd","target":{"file":"tools/tiffcp.c","function":"DECLAREreadFunc"},"source":"https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"},{"signature_type":"Function","digest":{"length":1114,"function_hash":"195565821341471143227011566239408712014"},"deprecated":false,"signature_version":"v1","id":"CVE-2016-9540-6dbdf5a6","target":{"file":"tools/tiffcp.c","function":"DECLAREwriteFunc"},"source":"https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"},{"signature_type":"Line","digest":{"line_hashes":["34526652489744293167320693439694332065","65740507902341232373190466765183987449","154738245544947738771589024196496874484","184235936083252003010603516386408026816","34526652489744293167320693439694332065","322474512737234513158984885363131714047","48270571887375478153307819412452982050","18898764740452236580005303907312585781"],"threshold":0.9},"deprecated":false,"signature_version":"v1","id":"CVE-2016-9540-92bc6797","target":{"file":"tools/tiffcp.c"},"source":"https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9540.json","vanir_signatures_modified":"2026-07-08T12:06:38Z"}},{"ranges":[{"type":"GIT","repo":"https://gitlab.com/libtiff/libtiff","events":[{"introduced":"5612707c086cda76319552a0a2afeddcfa67d1b3"},{"last_affected":"5612707c086cda76319552a0a2afeddcfa67d1b3"}],"database_specific":{"cpe":"cpe:2.3:a:libtiff:libtiff:4.0.6:*:*:*:*:*:*:*","source":"CPE_STRING","extracted_events":[{"introduced":"4.0.6"},{"last_affected":"4.0.6"}]}}],"versions":["4.0.6","v4.0.6"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9540.json"}}],"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"}]}