CVE-2014-8157: Use After Free

Published Jan 6, 2015
·
Updated

oCERT reports an issue in jasper discovered by pyddeh:

"""

jpcdec.c:1204:

dec->numhtiles = JPCCEILDIV(dec->xend - dec->tilexoff, dec->tilewidth); dec->numvtiles = JPCCEILDIV(dec->yend - dec->tileyoff, dec->tileheight); dec->numtiles = dec->numhtiles dec->numvtiles; if (!(dec->tiles = jasmalloc(dec->numtiles sizeof(jpcdectilet)))) { return -1; }

the dec->XXX in JPCCEILDIV are all directly from the codestream, so dec->numtiles can be 0. In that case, the minimum-sized chunk returned by malloc can, depending on the code stream, be used later. I think this can cause the same problems as a use after free. Fix proposal:

if ( dec->numtiles == 0 || !(dec->tiles = jasmalloc(dec->numtiles sizeof(jpcdectilet)))) { return -1; }

"""

Acknowledgement:

Red Hat would like to thank oCERT for reporting this issue. oCERT acknowledges pyddeh as the original reporter.

Other sources

Off-by-one error in the jpcdecprocesssot function in JasPer 1.900.1 and earlier allows remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via a crafted JPEG 2000 image, which triggers a heap-based buffer overflow.

MITRE

Affected Software

7 affected componentsFixes available
redhat/jasper<1.900.2
1.900.2
openSUSE openSUSE=13.1
openSUSE openSUSE=13.2
Debian Debian Linux=7.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
Jasper Project Jasper<=1.900.1

Event History

Jan 26, 2015
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2014-8157?

CVE-2014-8157 is considered a security vulnerability with potential implications for system integrity and data confidentiality.

2

How do I fix CVE-2014-8157?

To resolve CVE-2014-8157, upgrade the Jasper package to version 1.900.2 or later.

3

Which software is affected by CVE-2014-8157?

CVE-2014-8157 affects the Jasper library on various Linux distributions including specific versions of Red Hat, Debian, and openSUSE.

4

What are the potential impacts of CVE-2014-8157?

CVE-2014-8157 may lead to denial of service or arbitrary code execution if exploited.

5

What is the first step I should take after identifying CVE-2014-8157 on my system?

Immediately apply security patches or update the affected Jasper package to the recommended version to mitigate risks.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203