Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559166 (CVE-2015-5221) - <media-libs/jasper-1.900.6: Use-after-free (and double-free)
Summary: <media-libs/jasper-1.900.6: Use-after-free (and double-free)
Status: RESOLVED FIXED
Alias: CVE-2015-5221
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: http://seclists.org/oss-sec/2015/q3/408
Whiteboard: B3 [noglsa cve]
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-30 14:08 UTC by Agostino Sarubbo
Modified: 2016-11-29 20:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2015-08-30 14:08:38 UTC
From ${URL} :

A new use-after-free was found in Jasper JPEG-200.

The use-after-free appears in the function mif_process_cmpt of the src/libjasper/mif/mif_cod.c file. Both tvp and 
tvp->buf are freed by jas_tvparser_destroy(tvp) (line 572), but if one of the two following branch conditions is taken 
(line 573/576), a second call to jas_tvparser_destroy(tvp) occurs (line 586). It is a use-after-free because before 
calling free in jas_tvparser_destroy there is a check to tvp->buf, while tvp could have been freed. Two double free 
take place just after this check (on tvp->buf and tvp). A simple fix  should be to move the first call of 
jas_tvparser_destroy after the two branch conditions (or set tvp to NULL after it has been freed in mif_process_cmpt).



@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Agostino Sarubbo gentoo-dev 2016-10-19 09:39:36 UTC
This is fixed in the latest jasper-1.900.6

We will stabilize it.
Comment 2 Aaron Bauman (RETIRED) gentoo-dev 2016-11-29 20:00:05 UTC
Bug rating for this package has been B.  Severity adjusted.

GLSA Vote: No