[Bug 1547865] Re: Double free in libjasper jas_icc.c
Tyler Hicks
tyhicks at canonical.com
Thu Mar 3 14:01:20 UTC 2016
** Changed in: jasper (Ubuntu)
Status: Confirmed => In Progress
** Changed in: jasper (Ubuntu)
Importance: Undecided => Medium
** Changed in: jasper (Ubuntu)
Assignee: (unassigned) => Tyler Hicks (tyhicks)
** Information type changed from Private Security to Public Security
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to jasper in Ubuntu.
https://bugs.launchpad.net/bugs/1547865
Title:
Double free in libjasper jas_icc.c
Status in jasper package in Ubuntu:
Fix Released
Bug description:
A malformed JPEG2000 image being processed by libjasper can lead to a
double free in jas_icc.c:jas_iccprof_load(). Specifically, the
variable "attrval" is freed via a call to jas_iccattrval_destroy on
line 302 and then, if the program moves to the error label before
attrval gets assigned a new value at 328, "attrval" gets freed again
at line 357.
To reproduce the double free is fairly simple using the libjasper-
runtime program 'imginfo':
test at ubuntu:~$ imginfo -f ~/test/bad.jp2
Attached is an image to reproduce this bug. A quick note about the
image, it appears to also exercise Bug #555238 which is a stack
exhaustion bug in nautilus. Therefore, don't be surprised when the
image crashes nautilus. Also attached is output from valgrind and a
backtrace from gdb.
lsb_release -rd output:
test at ubuntu:~$ lsb_release -rd
Description: Ubuntu 14.04.3 LTS
Release: 14.04
apt-cache output:
test at ubuntu:~$ apt-cache policy libjasper1
libjasper1:
Installed: 1.900.1-14ubuntu3.2
Candidate: 1.900.1-14ubuntu3.2
Version table:
*** 1.900.1-14ubuntu3.2 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
1.900.1-14ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
test at ubuntu:~$ apt-cache policy libjasper-runtime
libjasper-runtime:
Installed: 1.900.1-14ubuntu3.2
Candidate: 1.900.1-14ubuntu3.2
Version table:
*** 1.900.1-14ubuntu3.2 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/universe amd64 Packages
100 /var/lib/dpkg/status
1.900.1-14ubuntu3 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/jasper/+bug/1547865/+subscriptions
More information about the foundations-bugs
mailing list