Cloudanix VulnDB

CVE-2015-5221

Medium · 5.5

CVSS

5.5

EPSS

2.2%

Published

Jul 25, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in image-handling software can make programs crash when they try to open certain specially made picture files.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Use After Free
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Use-after-free in mif_process_cmpt during processing of crafted JPEG-2000 image data leads to memory corruption and application crash.

Why it matters to the business

Applications that render or process JPEG-2000 images may unexpectedly terminate, interrupting workflows that rely on image handling and requiring restarts or manual intervention.

How an attack unfolds

An attacker supplies a specially crafted JPEG-2000 file that triggers the use-after-free condition inside the JasPer library when the image is opened or decoded by any affected application.

How to fix it

Upgrade the JasPer library to version 1.900.2 or newer on all affected systems; rebuild and redeploy any dependent applications after the upgrade.

How to confirm the fix worked

Confirm the installed JasPer version is 1.900.2 or later; test that the application no longer crashes when opening the originally triggering image file.

Typical attack path

  1. Attacker prepares a malicious JPEG-2000 image file containing malformed component data.
  2. Victim or automated process opens the file with an application linked against the vulnerable JasPer library.
  3. Library function mif_process_cmpt accesses freed memory, causing a crash.

How to detect it

Review application crash logs and core dumps for references to libjasper or mif_cod.c around the time of image processing failures; correlate with file-access events involving JPEG-2000 files.

What your security team should do

  • Identify all systems and packages that ship or depend on JasPer and schedule upgrades to 1.900.2 or later.
  • Add library version checks to vulnerability scanning and build pipelines.
  • Monitor for new image-processing crashes in applications that handle JPEG-2000 files.

The record

Use-after-free vulnerability in the mif_process_cmpt function in libjasper/mif/mif_cod.c in the JasPer JPEG-2000 library before 1.900.2 allows remote attackers to cause a denial of service (crash) via a crafted JPEG 2000 image file.

Affected packages

Ecosystem Package Introduced Fixed
Debian:8 jasper 0 1.900.1-debian1-2.4+deb8u4
Mageia:5 jasper 0 1.900.1-20.5.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.5
Ubuntu:16.04:LTS jasper 0 1.900.1-debian1-2.4ubuntu1.2
openSUSE:Tumbleweed jasper 0 1.900.14-3.1

Related vulnerabilities