Stack-based buffer overflow in LibTIFF - CVE-2025-8851
Published: August 21, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the readSeparateStripsetoBuffer() function in tools/tiffcrop.c. A remote attacker can pass a specially crafted image file to the tiffcrop binary, trigger a stack-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
Ubuntu
SUSE Package Hub 15
Basesystem Module
openSUSE Leap
openEuler
tiff (Ubuntu package)
tiff-debuginfo
tiff
tiff-debugsource
libtiff-devel
libtiff5-debuginfo
libtiff5-debuginfo-32bit
libtiff5-32bit
libtiff5
libtiff
libtiff-debuginfo
libtiff-debugsource
libtiff-help
libtiff-static
libtiff-tools
libtiff6-64bit
libtiff-devel-64bit
libtiff6-64bit-debuginfo
libtiff6-32bit
libtiff-devel-docs
tiff-docs
libtiff6-debuginfo
libtiff6
libtiff6-32bit-debuginfo
libtiff-devel-32bit
How to mitigate CVE-2025-8851
tiff (Ubuntu package) - addressed in versions 4.0.3-7ubuntu0.11+esm15, 4.0.6-1ubuntu0.8+esm18, 4.0.9-5ubuntu0.10+esm8, 4.1.0+git191117-2ubuntu0.20.04.14+esm1, 4.3.0-6ubuntu0.11, 4.5.1+git230720-4ubuntu2.3, 4.5.1+git230720-4ubuntu4.1
tiff-debuginfo - addressed in versions 4.0.9-44.106.1, 4.7.1-150600.3.23.1
tiff - addressed in versions 4.0.9-44.106.1, 4.7.1-150600.3.23.1
tiff-debugsource - addressed in versions 4.0.9-44.106.1, 4.7.1-150600.3.23.1
libtiff-devel - addressed in versions 4.0.9-44.106.1, 4.7.1-150600.3.23.1
libtiff5-debuginfo - update to 4.0.9-44.106.1
libtiff5-debuginfo-32bit - update to 4.0.9-44.106.1
libtiff5-32bit - update to 4.0.9-44.106.1
libtiff5 - update to 4.0.9-44.106.1
libtiff - addressed in versions 4.3.0-29, 4.3.0-42, 4.3.0-43
libtiff-debuginfo - addressed in versions 4.3.0-29, 4.3.0-42, 4.3.0-43
libtiff-debugsource - addressed in versions 4.3.0-29, 4.3.0-42, 4.3.0-43
libtiff-devel - addressed in versions 4.3.0-29, 4.3.0-42, 4.3.0-43
libtiff-help - addressed in versions 4.3.0-29, 4.3.0-42, 4.3.0-43
libtiff-static - addressed in versions 4.3.0-42, 4.3.0-43
libtiff-tools - addressed in versions 4.3.0-42, 4.3.0-43
libtiff6-64bit - update to 4.7.1-150600.3.23.1
libtiff-devel-64bit - update to 4.7.1-150600.3.23.1
libtiff6-64bit-debuginfo - update to 4.7.1-150600.3.23.1
libtiff6-32bit - update to 4.7.1-150600.3.23.1
libtiff-devel-docs - update to 4.7.1-150600.3.23.1
tiff-docs - update to 4.7.1-150600.3.23.1
libtiff6-debuginfo - update to 4.7.1-150600.3.23.1
libtiff6 - update to 4.7.1-150600.3.23.1
libtiff6-32bit-debuginfo - update to 4.7.1-150600.3.23.1
libtiff-devel-32bit - update to 4.7.1-150600.3.23.1