# CVE-2025-9165: LibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leak

- Priority: **Routine**
- Reason: Not severe (CVSS 2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-19 · Modified: 2025-10-01
- Aliases: ALPINE-CVE-2025-9165, UBUNTU-CVE-2025-9165, DEBIAN-CVE-2025-9165, CGA-qj8v-hj7j-4fmm, CGA-v55m-9cc2-r6fc
- Record: https://cvemate.com/vulnerability/CVE-2025-9165 · JSON: https://cvemate.com/vulnerability/CVE-2025-9165/json

## Description

```text
A flaw has been found in LibTIFF 4.7.0. This affects the function _TIFFmallocExt/_TIFFCheckRealloc/TIFFHashSetNew/InitCCITTFax3 of the file tools/tiffcmp.c of the component tiffcmp. Executing manipulation can lead to memory leak. The attack is restricted to local execution. This attack is characterized by high complexity. It is indicated that the exploitability is difficult. The exploit has been published and may be used. There is ongoing doubt regarding the real existence of this vulnerability. This patch is called ed141286a37f6e5ddafb5069347ff5d587e7a4e0. It is best practice to apply a patch to resolve this issue. A researcher disputes the security impact of this issue, because "this is a memory leak on a command line tool that is about to exit anyway". In the reply the project maintainer declares this issue as "a simple 'bug' when leaving the command line tool and (...) not a security issue at all".
```

## Signals

- CVSS: 2.5 low (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C
- EPSS: 0.267%, percentile 19.977%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 3 (reference)

## Affected

- alpine tiff (Alpine Linux): \< 4.7.1-r0
- chainguard tiff (Chainguard): \< 4.7.0-r6
- wolfi tiff (Wolfi): \< 4.7.0-r6
- debian tiff (Debian): All versions (No fix recorded) \| \< 4.7.0-3+deb13u1 \| \< 4.7.0-4
- ubuntu gdal (Ubuntu): All versions (No fix recorded)
- ubuntu neuron (Ubuntu): All versions (No fix recorded)
- ubuntu qtwebengine-opensource-src (Ubuntu): All versions (No fix recorded)
- ubuntu texmaker (Ubuntu): All versions (No fix recorded)
- ubuntu tiff (Ubuntu): \< 4.0.3-7ubuntu0.11+esm16 \| \< 4.0.6-1ubuntu0.8+esm19 \| \< 4.0.9-5ubuntu0.10+esm9 \| \< 4.1.0+git191117-2ubuntu0.20.04.14+esm2 \| \< 4.3.0-6ubuntu0.12 \| \< 4.5.1+git230720-4ubuntu2.4 \| \< 4.7.0-3ubuntu3
- libtiff libtiff: 4.7.0

## References

- <https://vuldb.com/?id.320543>
- <https://vuldb.com/?ctiid.320543>
- <https://vuldb.com/?submit.630506>
- <https://vuldb.com/?submit.630507>
- <https://gitlab.com/libtiff/libtiff/-/issues/728>
- <https://gitlab.com/libtiff/libtiff/-/merge_requests/747>
- <https://drive.google.com/file/d/1FWhmkzksH8-qU0ZM6seBzGNB3aPnX3G8/view?usp=sharing>
- <https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0>
- <http://www.libtiff.org/>
- <https://gitlab.com/libtiff/libtiff/-/issues/728#note_2709263214>
- <https://security.alpinelinux.org/vuln/CVE-2025-9165>
- <https://ubuntu.com/security/CVE-2025-9165>
- <https://www.cve.org/CVERecord?id=CVE-2025-9165>
- <https://ubuntu.com/security/notices/USN-7783-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-9165>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9165.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-9165>

---

Data as of 2026-12-05T02:49:51.400Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
