Bug 1485287
Summary: | There are lots of memory leaks in JasPer which is trigged in function jas_strdup(). | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | owl337 <v.owl337> | ||||
Component: | jasper | Assignee: | Josef Ridky <jridky> | ||||
Status: | CLOSED WONTFIX | QA Contact: | Desktop QE <desktop-qa-list> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.5-Alt | Keywords: | Security | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-02-28 10:28:58 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1488961 | ||||||
Attachments: |
|
Thank you for taking the time to report this issue to us. We appreciate the feedback and use reports such as this one to guide our efforts at improving our products. That being said, this bug tracking system is not a mechanism for requesting support, and we are not able to guarantee the timeliness or suitability of a resolution. If this issue is critical or in any way time sensitive, please raise a ticket through the regular Red Hat support channels to ensure it receives the proper attention and prioritization to assure a timely resolution. For information on how to contact the Red Hat production support team, please visit: https://www.redhat.com/support/process/production/#howto For proper identification of issue are required properly filled following information: - Description of problem - Version-Release number of selected component (if applicable) - Steps to Reproduce - Actual results - Expected results - Additional info jas_strdup() is red herring and irrelevant, see upstream bug for more info: https://github.com/mdadams/jasper/issues/168 This vulnerability was evaluated by the sub-system, taking into account the kind of the component, and its use cases. It was not considered as a priority for the next release, so it's being closed now as WONTFIX. Feel free to re-open the bug if there is a business reason to deliver a fix for this issue, and contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL: https://access.redhat.com |
Created attachment 1318072 [details] Triggered by "./imginfo -f POC9" Description of problem: There are lots of memory leaks in JasPer which is trigged in function jas_strdup(). Version-Release number of selected component (if applicable): <= latest version How reproducible: ./imginfo -f POC9 Steps to Reproduce: Description: The gdb debugging information is listed below: (gdb) set args POC9 (gdb) r warning: ignoring unknown marker segment (0xff76) type = 0xff76 (UNKNOWN); len = 20;10 40 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 RCT requires all components have the same domain error: cannot decode code stream cannot load image ================================================================= ==104593==ERROR: LeakSanitizer: detected memory leaks Direct leak of 16512 byte(s) in 86 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f40793576db (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e6db) Direct leak of 184 byte(s) in 1 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f4079357353 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e353) #2 0x7f40793bd4d2 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xe44d2) Direct leak of 48 byte(s) in 1 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f4079357353 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e353) Indirect leak of 10922744 byte(s) in 15458 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f40793576db (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e6db) Indirect leak of 905976 byte(s) in 10296 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f4079357353 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e353) Indirect leak of 417584 byte(s) in 73 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f40793576db (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e6db) #2 0x7f40793bd4d2 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xe44d2) Indirect leak of 246144 byte(s) in 34 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f40793576db (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e6db) #2 0x7f40793b005f (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xd705f) #3 0x7f40793bd4d2 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xe44d2) Indirect leak of 246144 byte(s) in 34 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f40793576db (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e6db) #2 0x7f40793afff5 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xd6ff5) #3 0x7f40793bd4d2 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xe44d2) Indirect leak of 816 byte(s) in 34 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f4079357353 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e353) #2 0x7f40793afff5 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xd6ff5) #3 0x7f40793bd4d2 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xe44d2) Indirect leak of 816 byte(s) in 34 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f4079357353 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e353) #2 0x7f40793b005f (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xd705f) #3 0x7f40793bd4d2 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xe44d2) Indirect leak of 48 byte(s) in 3 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f4079464228 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x18b228) #2 0x7f40793bd4d2 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xe44d2) Indirect leak of 16 byte(s) in 1 object(s) allocated from: #0 0x4b9278 (/home/icy/secreal/jasper/install_asan/bin/imginfo+0x4b9278) #1 0x7f4079357353 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0x7e353) #2 0x7f40793bd4d2 (/home/icy/secreal/jasper/install_asan/lib/libjasper.so.4+0xe44d2) SUMMARY: AddressSanitizer: 12757032 byte(s) leaked in 26055 allocation(s). Trigged in: jas_strdup (s=0x7ffff7ba0600 <.str.1> "My Image Format (MIF)") at /home/icy/secreal/jasper/src/libjasper/base/jas_string.c:91 91 if (!(p = jas_malloc(n))) { The programmer has applied for the memory but has not been released. Actual results: crash Expected results: crash Additional info: Credits: Credits: This vulnerability is detected by team OWL337, with our custom fuzzer collAFL. Please contact ganshuitao and chaoz.cn if you need more info about the team, the tool or the vulnerability.