CVE-2025-9165 Details
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".
A memory leak vulnerability has been identified in LibTIFF version 4.7.0, specifically within the TIFFCMP utility. This issue arises in the functions '_TIFFmallocExt', '_TIFFCheckRealloc', 'TIFFHashSetNew', and 'InitCCITTFax3', located in 'tools/tiffcmp.c'. The vulnerability leads to a significant memory leak when TIFFCMP processes malformed TIFF files, particularly those with invalid directory structures or tag configurations. The leak accumulates as the program fails to release memory allocated during TIFF header parsing and CCITT Fax initialization, eventually causing the program to terminate with a SIGBUS signal, indicating an illegal instruction error. This vulnerability is present in the latest master branch of LibTIFF and can be exploited locally.
Users are advised to update to the patched version of LibTIFF, which is available on the official LibTIFF GitLab repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 19, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gitlab.com/libtiff/libtiff/-/issues/728#note_2709263214 | CVE | ExploitIssue TrackingVendor Advisory |
| https://drive.google.com/file/d/1FWhmkzksH8-qU0ZM6seBzGNB3aPnX3G8/view?usp=sharing | [email protected] | Exploit |
| https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0 | [email protected] | Patch |
| https://gitlab.com/libtiff/libtiff/-/issues/728 | [email protected] | ExploitIssue TrackingVendor Advisory |
| https://gitlab.com/libtiff/libtiff/-/merge_requests/747 | [email protected] | Issue TrackingPatchVendor Advisory |
| https://vuldb.com/?ctiid.320543 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.320543 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.630506 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.630507 | [email protected] | Third Party AdvisoryVDB Entry |
| http://www.libtiff.org/ | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
| CWE-404 | Improper Resource Shutdown or Release | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libtiff libtiff | 4.7.0 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Oct 1, 2025 | CVE Modified | [email protected] |
| Sep 11, 2025 | Initial Analysis | [email protected] |
| Aug 26, 2025 | CVE Modified | CVE |
| Aug 19, 2025 | New CVE Received | [email protected] |