Vulnerability · Published Aug 19, 2025 · Assigned by VulDB
CVE-2025-9165LibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leak
Low 2.5
In plain English
A low-severity memory leak in LibTIFF. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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".
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | tiff | 4.7.1-r0 | ALPINE-CVE-2025-9165 |
| Alpine:v3.22 | tiff | 4.7.1-r0 | ALPINE-CVE-2025-9165 |
| Alpine:v3.23 | tiff | 4.7.1-r0 | ALPINE-CVE-2025-9165 |
| Alpine:v3.24 | tiff | 4.7.1-r0 | ALPINE-CVE-2025-9165 |
| Debian:12 | tiff | no fix listed | DEBIAN-CVE-2025-9165 |
| Debian:13 | tiff | 4.7.0-3+deb13u1 | DEBIAN-CVE-2025-9165 |
| Debian:14 | tiff | 4.7.0-4 | DEBIAN-CVE-2025-9165 |
| Ubuntu:22.04:LTS | neuron | no fix listed | UBUNTU-CVE-2025-9165 |
| Ubuntu:25.10 | qtwebengine-opensource-src | no fix listed | UBUNTU-CVE-2025-9165 |
| Ubuntu:26.10 | qtwebengine-opensource-src | no fix listed | UBUNTU-CVE-2025-9165 |
| Ubuntu:25.10 | texmaker | no fix listed | UBUNTU-CVE-2025-9165 |
| Ubuntu:26.04:LTS | texmaker | no fix listed | UBUNTU-CVE-2025-9165 |
| Ubuntu:26.10 | texmaker | no fix listed | UBUNTU-CVE-2025-9165 |
| Ubuntu:22.04:LTS | tiff | 4.3.0-6ubuntu0.12 | USN-7783-1 |
| Ubuntu:22.04:LTS | tiff | 4.3.0-6ubuntu0.12 | UBUNTU-CVE-2025-9165 |
| Ubuntu:24.04:LTS | tiff | 4.5.1+git230720-4ubuntu2.4 | UBUNTU-CVE-2025-9165 |
| Ubuntu:24.04:LTS | tiff | 4.5.1+git230720-4ubuntu2.4 | USN-7783-1 |
| Ubuntu:25.10 | tiff | 4.7.0-3ubuntu3 | UBUNTU-CVE-2025-9165 |
| Ubuntu:26.04:LTS | tiff | 4.7.0-3ubuntu3 | UBUNTU-CVE-2025-9165 |
Affected products (as reported)
Weakness: CWE-401, CWE-404 · Vector: 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
References
- VDB-320543 | LibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leak vdb-entry, technical-description
- VDB-320543 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #630506 | libtiff tiffcmp 4.7.0+ (latest master branch) Memory Leak third-party-advisory
- Submit #630507 | libtiff tiffcmp 4.7.0+ (latest master branch) Memory Leak (Duplicate) third-party-advisory
- https://gitlab.com/libtiff/libtiff/-/issues/728 issue-tracking
- https://gitlab.com/libtiff/libtiff/-/merge_requests/747 patch
- https://drive.google.com/file/d/1FWhmkzksH8-qU0ZM6seBzGNB3aPnX3G8/view?usp=sharing exploit
- https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0 patch
- http://www.libtiff.org/ product
- https://gitlab.com/libtiff/libtiff/-/issues/728#note_2709263214