Bug 909475 (CVE-2014-8138) - VUL-0: CVE-2014-8138: libjasper: heap overflow in jas_decode()
Summary: VUL-0: CVE-2014-8138: libjasper: heap overflow in jas_decode()
Status: RESOLVED FIXED
Alias: CVE-2014-8138
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Deadline: 2015-01-23
Assignee: Security Team bot
QA Contact: Security Team bot
URL:
Whiteboard: maint:released:sle11-sp1:60509 maint:...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-11 13:11 UTC by Alexander Bergmann
Modified: 2016-10-18 10:20 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
reproducer (1.63 KB, application/x-gzip)
2014-12-11 13:18 UTC, Alexander Bergmann
Details
jasper2.patch (600 bytes, patch)
2014-12-17 11:13 UTC, Vladimir Nadvornik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bergmann 2014-12-11 13:11:21 UTC
via distros:

CRD: 2014-12-18, 15:00 CET


Heap overflow in jas_decode()

This code in jas_decode doesn???t check for an upper bound on the value of
channo (in this case 0xFFFF):

          jas_image_setcmpttype(dec->image,

              dec->chantocmptlut[dec->cdef->data.cdef.ents[i].channo],

               jp2_getct(jas_image_clrspc(dec->image),

               dec->cdef->data.cdef.ents[i].type,
dec->cdef->data.cdef.ents[i].assoc));

This could be used via jas_image_setcmpttype (actually this is just
image->cmpts_[cmptno]->type_ = type), to do an arbitrary write since
there???s no bound check there either.

As in our recent libjasper report we would welcome a contributed patch as
well as CVE assignment.
Comment 2 Alexander Bergmann 2014-12-11 13:18:24 UTC
Created attachment 616747 [details]
reproducer
Comment 3 Swamp Workflow Management 2014-12-11 23:00:22 UTC
bugbot adjusting priority
Comment 4 Vladimir Nadvornik 2014-12-17 11:13:09 UTC
Created attachment 617650 [details]
jasper2.patch

this patch seems to fix it
Comment 5 Johannes Segitz 2014-12-18 15:44:30 UTC
public
Comment 6 Vladimir Nadvornik 2014-12-19 10:44:02 UTC
submitted for SLE and opensuse
Comment 7 Bernhard Wiedemann 2014-12-19 11:00:14 UTC
This is an autogenerated message for OBS integration:
This bug (909475) was mentioned in
https://build.opensuse.org/request/show/265905 Factory / jasper
Comment 9 Bernhard Wiedemann 2014-12-22 16:00:33 UTC
This is an autogenerated message for OBS integration:
This bug (909475) was mentioned in
https://build.opensuse.org/request/show/266163 13.1 / jasper
https://build.opensuse.org/request/show/266164 13.2 / jasper
https://build.opensuse.org/request/show/266165 12.3 / jasper
Comment 10 Swamp Workflow Management 2015-01-08 11:05:19 UTC
SUSE-SU-2015:0016-1: An update that solves two vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 906364,909474,909475
CVE References: CVE-2014-8137,CVE-2014-9029
Sources used:
SUSE Linux Enterprise Software Development Kit 12 (src):    jasper-1.900.1-166.1
SUSE Linux Enterprise Server 12 (src):    jasper-1.900.1-166.1
SUSE Linux Enterprise Desktop 12 (src):    jasper-1.900.1-166.1
Comment 11 Swamp Workflow Management 2015-01-09 09:34:07 UTC
An update workflow for this issue was started.
This issue was rated as moderate.
Please submit fixed packages until 2015-01-23.
When done, reassign the bug to security-team@suse.de.
https://swamp.suse.de/webswamp/wf/60167
Comment 12 Swamp Workflow Management 2015-01-14 14:05:24 UTC
openSUSE-SU-2015:0038-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 909474,909475
CVE References: CVE-2014-8137
Sources used:
openSUSE 13.2 (src):    jasper-1.900.1-163.9.1
Comment 13 Swamp Workflow Management 2015-01-14 14:05:49 UTC
openSUSE-SU-2015:0039-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 909474,909475
CVE References: CVE-2014-8137
Sources used:
openSUSE 12.3 (src):    jasper-1.900.1-156.9.1
Comment 14 Swamp Workflow Management 2015-01-14 14:06:29 UTC
openSUSE-SU-2015:0042-1: An update that solves one vulnerability and has one errata is now available.

Category: security (moderate)
Bug References: 909474,909475
CVE References: CVE-2014-8137
Sources used:
openSUSE 13.1 (src):    jasper-1.900.1-160.9.1
Comment 15 Swamp Workflow Management 2015-02-12 00:05:12 UTC
SUSE-SU-2015:0258-1: An update that solves two vulnerabilities and has one errata is now available.

Category: security (moderate)
Bug References: 909474,909475,911837
CVE References: CVE-2014-8137,CVE-2014-8138
Sources used:
SUSE Linux Enterprise Software Development Kit 11 SP3 (src):    jasper-1.900.1-134.17.1
SUSE Linux Enterprise Server 11 SP3 for VMware (src):    jasper-1.900.1-134.17.1
SUSE Linux Enterprise Server 11 SP3 (src):    jasper-1.900.1-134.17.1
SUSE Linux Enterprise Desktop 11 SP3 (src):    jasper-1.900.1-134.17.1
Comment 16 Marcus Meissner 2015-03-17 16:04:18 UTC
released