CVE-2025-9165LibTIFF tiffcmp tiffcmp.c InitCCITTFax3 memory leak
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".
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 26.10 | texmaker | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 26.04 | neuron | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 26.04 | texmaker | Under investigation | UBUNTU-CVE-2025-9165 | |
| Ubuntu 26.04 | tiff | Fixed | 4.7.0-3ubuntu3 | UBUNTU-CVE-2025-9165 |
| Ubuntu 25.10 | gdal | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | neuron | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | qtwebengine-opensource-src | Will not fix texmaker added an embedded copy of libtiff in bionic This is a memory leak in a command line tool, setting priority to low | UBUNTU-CVE-2025-9165 | |
| Ubuntu 25.10 | texmaker | Will not fix texmaker added an embedded copy of libtiff in bionic This is a memory leak in a command line tool, setting priority to low | UBUNTU-CVE-2025-9165 | |
| Ubuntu 25.10 | tiff | Fixed | 4.7.0-3ubuntu3 | UBUNTU-CVE-2025-9165 |
| Ubuntu 24.04 | neuron | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 24.04 | texmaker | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 24.04 | tiff | Fixed | 4.5.1+git230720-4ubuntu2.4 | UBUNTU-CVE-2025-9165 |
| Ubuntu 22.04 | neuron | Under investigation | UBUNTU-CVE-2025-9165 | |
| Ubuntu 22.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 22.04 | texmaker | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 22.04 | tiff | Fixed | 4.3.0-6ubuntu0.12 | UBUNTU-CVE-2025-9165 |
| Ubuntu 20.04 | neuron | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 20.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 20.04 | texmaker | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 20.04 | tiff | Fix pending | 4.1.0+git191117-2ubuntu0.20.04.14+esm2 (Ubuntu Pro) | UBUNTU-CVE-2025-9165 |
| Ubuntu 18.04 | neuron | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 18.04 | qtwebengine-opensource-src | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 18.04 | texmaker | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 18.04 | tiff | Fix pending | 4.0.9-5ubuntu0.10+esm9 (Ubuntu Pro) | UBUNTU-CVE-2025-9165 |
| Ubuntu 16.04 | gdal | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 16.04 | texmaker | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 16.04 | tiff | Fix pending | 4.0.6-1ubuntu0.8+esm19 (Ubuntu Pro) | UBUNTU-CVE-2025-9165 |
| Ubuntu 14.04 | gdal | Fix pending | UBUNTU-CVE-2025-9165 | |
| Ubuntu 14.04 | tiff | Fix pending | 4.0.3-7ubuntu0.11+esm16 (Ubuntu Pro) | UBUNTU-CVE-2025-9165 |
| Debian 14 | tiff | Fixed | 4.7.0-4 | DEBIAN-CVE-2025-9165 |
| Debian 13 | tiff | Fixed | 4.7.0-3+deb13u1 | DEBIAN-CVE-2025-9165 |
| Debian 12 | tiff | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2025-9165 | |
| Red Hat Enterprise Linux 10 | libtiff | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libtiff-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | libtiff-tools | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libtiff | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libtiff-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | libtiff-tools | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | compat-libtiff3 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libtiff | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libtiff-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | libtiff-tools | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw-libtiff | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw32-libtiff | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw32-libtiff-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw64-libtiff | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | mingw64-libtiff-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | compat-libtiff3 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libtiff | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libtiff-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libtiff-static | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | libtiff-tools | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libtiff | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libtiff-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | libtiff-static | Fix pending Fix deferred | ||
| Alpine Linux 3.24 | tiff | Fixed | 4.7.1-r0 | ALPINE-CVE-2025-9165 |
| Alpine Linux 3.23 | tiff | Fixed | 4.7.1-r0 | ALPINE-CVE-2025-9165 |
| Alpine Linux 3.22 | tiff | Fixed | 4.7.1-r0 | ALPINE-CVE-2025-9165 |
| Alpine Linux 3.21 | tiff | Fixed | 4.7.1-r0 | ALPINE-CVE-2025-9165 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- LibTIFF: affected: 4.7.0
Vendor advisories:
- https://gitlab.com/libtiff/libtiff/-/merge_requests/747 (patch)
- https://gitlab.com/libtiff/libtiff/-/commit/ed141286a37f6e5ddafb5069347ff5d587e7a4e0 (patch)
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/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.