CVE-2025-9165
Description
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".
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2025-9165
Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2025-9165.html
Vendor advisory: af854a3a-2127-422b-91ae-364da2661108 — https://gitlab.com/libtiff/libtiff/-/issues/728#note_2709263214
Vendor advisory: cna@vuldb.com — https://gitlab.com/libtiff/libtiff/-/merge_requests/747
Vendor advisory: cna@vuldb.com — https://gitlab.com/libtiff/libtiff/-/issues/728
Vendor advisory: cna@vuldb.com — https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | bookworm | affected | |
| debian | bullseye | affected | |
| debian | forky | fixed | 4.7.0-4 |
| debian | sid | fixed | 4.7.0-4 |
| debian | trixie | fixed | 4.7.0-3+deb13u1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| libtiff | libtiff | 4.7.0 | |
References
- http://www.libtiff.org/
- https://drive.google.com/file/d/1FWhmkzksH8-qU0ZM6seBzGNB3aPnX3G8/view?usp=sharing
- https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0
- https://gitlab.com/libtiff/libtiff/-/issues/728
- https://gitlab.com/libtiff/libtiff/-/merge_requests/747
- https://vuldb.com/?ctiid.320543
- https://vuldb.com/?id.320543
- https://vuldb.com/?submit.630506
- https://vuldb.com/?submit.630507
- https://gitlab.com/libtiff/libtiff/-/issues/728#note_2709263214
- https://www.suse.com/security/cve/CVE-2025-9165.html
- https://security-tracker.debian.org/tracker/CVE-2025-9165
CWEs
CWE-401 CWE-404
Verify integrity in audit chain (admin only). AS-IS.