JasPer: User-assisted execution of arbitrary code — GLSA 201201-10

Multiple memory management errors in JasPer could result in execution of arbitrary code or a Denial of Service.

Affected packages

media-libs/jasper on all architectures
Affected versions < 1.900.1-r4
Unaffected versions >= 1.900.1-r4

Background

The JasPer Project is an open-source initiative to provide a free software-based reference implementation of the codec specified in the JPEG-2000 Part-1 (jpeg2k) standard.

Description

Two vulnerabilities have been found in JasPer:

  • The jpc_cox_getcompparms function in libjasper/jpc/jpc_cs.c contains an error that could overwrite certain callback pointers, possibly causing a heap-based buffer overflow (CVE-2011-4516).
  • The jpc_crg_getparms function in libjasper/jpc/jpc_cs.c uses an incorrect data type, possibly causing a heap-based buffer overflow (CVE-2011-4517).

Impact

A remote attacker could entice a user or automated system to process specially crafted JPEG-2000 files with an application using JasPer, possibly resulting in the execution of arbitrary code with the privileges of the application, or a Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All JasPer users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=media-libs/jasper-1.900.1-r4"
 

References

Release date
January 23, 2012

Latest revision
January 23, 2012: 1

Severity
normal

Exploitable
remote

Bugzilla entries