Cloudanix VulnDB

CVE-2016-8692

Medium · 5.5

CVSS

5.5

EPSS

2.2%

Published

Feb 15, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A specially crafted picture file can crash programs that read images, interrupting any work that depends on those programs.

Exploit Available
Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Improper Input Validation
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The flaw permits a crafted BMP image containing a zero YRsiz value to reach the jpc_dec_process_siz function, triggering an integer division by zero that crashes the process.

Why it matters to the business

Attackers can cause image-processing applications and dependent services to crash on demand, interrupting workflows that ingest or display image files and forcing restarts or manual intervention.

How an attack unfolds

An attacker builds a minimal BMP file that embeds a JPEG2000 codestream with YRsiz set to zero, then supplies the file to any process that invokes the vulnerable JasPer decoder (for example via the imginfo command). When the decoder parses the size marker the division-by-zero occurs and the application terminates.

How to fix it

Upgrade JasPer to commit d8c2604cd438c41ec72aff52c16ebd8183068020 or later; for argo-cd-2.8 deployments update to version 2.8.16-r0. Rebuild and redeploy any containers or packages that statically link the library.

How to confirm the fix worked

Confirm the installed JasPer version or commit hash matches a fixed release, then attempt to process a test BMP carrying a zero YRsiz value and verify the decoder no longer crashes.

Typical attack path

  1. Create a BMP image containing a JPEG2000 codestream with YRsiz equal to zero
  2. Deliver the file to a target system or user
  3. Cause the vulnerable JasPer-based decoder to open or inspect the image
  4. Trigger the divide-by-zero crash in jpc_dec_process_siz

How to detect it

Search application and system logs for segmentation faults or arithmetic exceptions originating from jpc_dec_process_siz when BMP or JP2 files are processed; correlate crash timestamps with file-access events involving image decoders.

  • jpc_dec_process_siz
  • YRsiz
  • divide-by-zero
  • imginfo

What your security team should do

  • Apply the listed fixed versions to all instances of JasPer and argo-cd-2.8
  • Inventory image-processing pipelines for direct or transitive use of the vulnerable library
  • Block untrusted BMP/JP2 files from automated processing queues until patches are deployed

The record

The jpc_dec_process_siz function in libjasper/jpc/jpc_dec.c in JasPer before 1.900.4 allows remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted YRsiz value in a BMP image to the imginfo command.

Affected packages

Ecosystem Package Introduced Fixed
Debian:7 jasper 0 1.900.1-13+deb7u5
Debian:8 jasper 0 1.900.1-debian1-2.4+deb8u2
Mageia:5 jasper 0 1.900.23-1.mga5
Red Hat:enterprise_linux:6::client jasper 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::client jasper-debuginfo 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::client jasper-devel 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::client jasper-libs 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::client jasper-utils 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper-debuginfo 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper-devel 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper-libs 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::computenode jasper-utils 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper-debuginfo 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper-devel 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper-libs 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::server jasper-utils 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper-debuginfo 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper-devel 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper-libs 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:6::workstation jasper-utils 0 0:1.900.1-21.el6_9
Red Hat:enterprise_linux:7::client jasper 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::client jasper-debuginfo 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::client jasper-devel 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::client jasper-libs 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::client jasper-utils 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper-debuginfo 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper-devel 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper-libs 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::computenode jasper-utils 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper-debuginfo 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper-devel 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper-libs 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::server jasper-utils 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper-debuginfo 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper-devel 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper-libs 0 0:1.900.1-30.el7_3
Red Hat:enterprise_linux:7::workstation jasper-utils 0 0:1.900.1-30.el7_3
SUSE:Linux Enterprise Desktop 12 SP1 jasper 0 1.900.14-181.1
SUSE:Linux Enterprise Desktop 12 SP2 jasper 0 1.900.14-181.1
SUSE:Linux Enterprise Server 11 SP4 jasper 0 1.900.14-134.25.1
SUSE:Linux Enterprise Server 12 SP1 jasper 0 1.900.14-181.1
SUSE:Linux Enterprise Server 12 SP2 jasper 0 1.900.14-181.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 jasper 0 1.900.14-181.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 jasper 0 1.900.14-134.25.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 jasper 0 1.900.14-181.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 jasper 0 1.900.14-181.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 jasper 0 1.900.14-134.25.1
SUSE:Linux Enterprise Software Development Kit 12 SP1 jasper 0 1.900.14-181.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 jasper 0 1.900.14-181.1
Ubuntu:14.04:LTS jasper 0 1.900.1-14ubuntu3.4
Ubuntu:16.04:LTS jasper 0 1.900.1-debian1-2.4ubuntu1.1
openSUSE:Tumbleweed jasper 0 1.900.14-3.1

Related vulnerabilities