CVE-2016-9540

Source
https://nvd.nist.gov/vuln/detail/CVE-2016-9540
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-9540.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-9540
Downstream
Related
Published
2016-11-22T19:59:08Z
Modified
2025-10-14T15:54:42.842139Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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."

References

Affected packages

Git / github.com/vadz/libtiff

Affected ranges

Type
GIT
Repo
https://github.com/vadz/libtiff
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
GIT
Repo
https://gitlab.com/libtiff/libtiff
Events
Introduced
0 Unknown introduced commit / All previous commits are affected

Affected versions

Other

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",
            "signature_type": "Function",
            "target": {
                "file": "tools/tiffcp.c",
                "function": "DECLAREreadFunc"
            },
            "deprecated": false,
            "digest": {
                "length": 1112.0,
                "function_hash": "207524068906828631989641842792468108303"
            },
            "id": "CVE-2016-9540-14ce97fd",
            "source": "https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"
        },
        {
            "signature_version": "v1",
            "signature_type": "Function",
            "target": {
                "file": "tools/tiffcp.c",
                "function": "DECLAREwriteFunc"
            },
            "deprecated": false,
            "digest": {
                "length": 1114.0,
                "function_hash": "195565821341471143227011566239408712014"
            },
            "id": "CVE-2016-9540-6dbdf5a6",
            "source": "https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"
        },
        {
            "signature_version": "v1",
            "signature_type": "Line",
            "target": {
                "file": "tools/tiffcp.c"
            },
            "deprecated": false,
            "digest": {
                "line_hashes": [
                    "34526652489744293167320693439694332065",
                    "65740507902341232373190466765183987449",
                    "154738245544947738771589024196496874484",
                    "184235936083252003010603516386408026816",
                    "34526652489744293167320693439694332065",
                    "322474512737234513158984885363131714047",
                    "48270571887375478153307819412452982050",
                    "18898764740452236580005303907312585781"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2016-9540-92bc6797",
            "source": "https://github.com/vadz/libtiff/commit/5ad9d8016fbb60109302d558f7edb2cb2a3bb8e3"
        }
    ]
}