7.5
CWE
416 189 119
Advisory Published
CVE Published
Updated

CVE-2014-8157: Use After Free

First published: Tue Jan 06 2015(Updated: )

oCERT reports an issue in jasper discovered by pyddeh: """ jpc_dec.c:1204: dec->numhtiles = JPC_CEILDIV(dec->xend - dec->tilexoff, dec->tilewidth); dec->numvtiles = JPC_CEILDIV(dec->yend - dec->tileyoff, dec->tileheight); dec->numtiles = dec->numhtiles * dec->numvtiles; if (!(dec->tiles = jas_malloc(dec->numtiles * sizeof(jpc_dec_tile_t)))) { return -1; } the dec->XXX in JPC_CEILDIV 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 = jas_malloc(dec->numtiles * sizeof(jpc_dec_tile_t)))) { return -1; } """ Acknowledgement: Red Hat would like to thank oCERT for reporting this issue. oCERT acknowledges pyddeh as the original reporter.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/jasper<1.900.2
1.900.2
openSUSE=13.1
openSUSE=13.2
Debian Linux=7.0
Red Hat Enterprise Linux=6.0
Red Hat Enterprise Linux=7.0
Jasper Reports<=1.900.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • 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.

  • How do I fix CVE-2014-8157?

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

  • 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.

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203