Cloudanix VulnDB

CVE-2015-8668

Critical · 9.8

CVSS

9.8

EPSS

13.7%

Published

Jan 8, 2016

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in image handling software lets attackers take over computers or crash systems by sending specially crafted picture files.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability is a heap-based buffer overflow in the PackBitsPreEncode function triggered by a large width field in a BMP image, leading to arbitrary code execution or denial of service.

Why it matters to the business

Attackers can gain full control of affected systems or crash services that process untrusted BMP images using vulnerable libtiff versions, potentially leading to data theft or ransomware deployment on servers and workstations across Red Hat Enterprise Linux, Oracle Linux, and related products.

How an attack unfolds

An attacker creates a specially crafted BMP image with an oversized width value and delivers it to a target system where it is processed by bmp2tiff or other libtiff-dependent applications, triggering the overflow to execute malicious code.

How to fix it

Upgrade libtiff to a patched release in all affected products including Red Hat Enterprise Linux, Oracle Linux, and Oracle VM Server. Remove or disable the bmp2tiff utility where image conversion is unnecessary.

How to confirm the fix worked

Confirm updated libtiff packages are installed via package manager queries, recompile applications against fixed libraries, and test processing of BMP images with large width values to verify absence of crashes or memory errors.

Typical attack path

  1. Craft malicious BMP image with large width field
  2. Deliver image via email attachment, web download, or shared file
  3. Victim or automated process opens or converts the image using vulnerable bmp2tiff or libtiff library
  4. Buffer overflow occurs during PackBitsPreEncode handling
  5. Attacker achieves arbitrary code execution or denial of service

How to detect it

Monitor process logs and system events for bmp2tiff crashes or segmentation faults during BMP handling; inspect application error logs for memory allocation failures when processing images.

What your security team should do

  • Immediately update libtiff across all Red Hat Enterprise Linux, Oracle Linux, and dependent systems given the public exploit availability
  • Disable or restrict bmp2tiff usage in environments handling untrusted images
  • Implement input validation or sandboxing for image processing workflows
  • Review and restrict network-accessible services that rely on libtiff

The record

Heap-based buffer overflow in the PackBitsPreEncode function in tif_packbits.c in bmp2tiff in libtiff 4.0.6 and earlier allows remote attackers to execute arbitrary code or cause a denial of service via a large width field in a BMP image.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 tiff 0 4.0.6-3
Debian:12 tiff 0 4.0.6-3
Debian:13 tiff 0 4.0.6-3
Debian:7 tiff 0 4.0.2-6+deb7u7
Mageia:5 libtiff 0 4.0.6-1.4.mga5
Red Hat:enterprise_linux:6::client libtiff 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::client libtiff-debuginfo 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::client libtiff-devel 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::client libtiff-static 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::computenode libtiff 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::computenode libtiff-debuginfo 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::computenode libtiff-devel 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::computenode libtiff-static 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::server libtiff 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::server libtiff-debuginfo 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::server libtiff-devel 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::server libtiff-static 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::workstation libtiff 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::workstation libtiff-debuginfo 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::workstation libtiff-devel 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:6::workstation libtiff-static 0 0:3.9.4-18.el6_8
Red Hat:enterprise_linux:7::client libtiff 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::client libtiff-debuginfo 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::client libtiff-devel 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::client libtiff-static 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::client libtiff-tools 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::computenode libtiff 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::computenode libtiff-debuginfo 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::computenode libtiff-devel 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::computenode libtiff-static 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::computenode libtiff-tools 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::server libtiff 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::server libtiff-debuginfo 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::server libtiff-devel 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::server libtiff-static 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::server libtiff-tools 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::workstation libtiff 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::workstation libtiff-debuginfo 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::workstation libtiff-devel 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::workstation libtiff-static 0 0:4.0.3-25.el7_2
Red Hat:enterprise_linux:7::workstation libtiff-tools 0 0:4.0.3-25.el7_2
SUSE:Linux Enterprise Server 11 SP4 tiff 0 3.8.2-141.169.16.1
SUSE:Linux Enterprise Server 12 SP5 tiff 0 4.0.9-44.80.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 tiff 0 3.8.2-141.169.16.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP5 tiff 0 4.0.9-44.80.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 tiff 0 3.8.2-141.169.16.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 tiff 0 4.0.9-44.80.1
Ubuntu:14.04:LTS tiff 0 4.0.3-7ubuntu0.6
Ubuntu:16.04:LTS tiff 0 4.0.6-1ubuntu0.1

Related vulnerabilities