jasper: add security fixes for CVE-2014-8157/8158
PATCH 1/1 jasper: add security fixes for CVE-2014-8157/8158
Fixes:
CVE-2014-8157 - dec->numtiles off-by-one check in jpc_dec_process_sot() CVE-2014-8158 - unrestricted stack memory use in jpc_qmfb.c
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/jasper/0005-fix-CVE-2014-8157.patch | 17 ++ package/jasper/0006-fix-CVE-2014-8158.patch | 334 ++++++++++++++++++++++++++++ 2 files changed, 351 insertions(+) create mode 100644 package/jasper/0005-fix-CVE-2014-8157.patch create mode 100644 package/jasper/0006-fix-CVE-2014-8158.patch
package/jasper/0005-fix-CVE-2014-8157.patch new file +17 -0
@@ -0,0 +1,17 @@ +Fix CVE-2014-8157 - dec->numtiles off-by-one check in jpc_dec_process_sot() +From https://bugzilla.redhat.com/show_bug.cgi?id=1179282 + +Signed-off-by: Gustavo Zacarias <[email protected]> + +diff -up jasper-1.900.1/src/libjasper/jpc/jpc_dec.c.CVE-2014-8157 jasper-1.900.1/src/libjasper/jpc/jpc_dec.c +--- jasper-1.900.1/src/libjasper/jpc/jpc_dec.c.CVE-2014-8157 2015-01-19 16:59:36.000000000 +0100 ++++ jasper-1.900.1/src/libjasper/jpc/jpc_dec.c 2015-01-19 17:07:41.609863268 +0100 +@@ -489,7 +489,7 @@ static int jpc_dec_process_sot(jpc_dec_t + dec->curtileendoff = 0; + } + +- if (JAS_CAST(int, sot->tileno) > dec->numtiles) { ++ if (JAS_CAST(int, sot->tileno) >= dec->numtiles) { + jas_eprintf("invalid tile number in SOT marker segment\n"); + return -1; + }
package/jasper/0006-fix-CVE-2014-8158.patch new file +334 -0
334 lines not on this page · raw message
Signature · 1 line
2.0.5
PATCH 1/1 jasper: add security fixes for CVE-2014-8157/8158
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Fixes:
CVE-2014-8157 -dec->numtilesoff-by-one check injpc_dec_process_sot()CVE-2014-8158 - unrestricted stack memory use injpc_qmfb.cSigned-off-by Gustavo Zacarias <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard