Bug 1583005 (CVE-2018-11504)
| Summary: | CVE-2018-11504 discount: Heap-based buffer-overflow in markdown.c:islist() allows for denial of service | ||
|---|---|---|---|
| Product: | [Other] Security Response | Reporter: | Sam Fowler <sfowler> |
| Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | unspecified | CC: | craigbarnes85, rhel8-maint |
| Target Milestone: | --- | Keywords: | Security |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-06-10 10:26:46 UTC | Type: | --- |
| 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: | 1583006, 1583007, 1583008 | ||
| Bug Blocks: | |||
|
Description
Sam Fowler
2018-05-28 04:27:59 UTC
Created discount tracking bugs for this issue: Affects: epel-7 [bug 1583008] Affects: fedora-all [bug 1583007] Reproduced on F27:
sh-4.4# rpm -q discount
discount-2.2.2-4.fc27.x86_64
sh-4.4# discount-mkd2html issue3_testcase
=================================================================
==76==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x602000000031 at pc 0x7f1ad5e6c2ca bp 0x7ffc68bb1ed0 sp 0x7ffc68bb1ec0
READ of size 1 at 0x602000000031 thread T0
#0 0x7f1ad5e6c2c9 (/lib64/libmarkdown.so.2+0xd2c9)
#1 0x7f1ad5e6d596 (/lib64/libmarkdown.so.2+0xe596)
#2 0x7f1ad5e70e6b in mkd_compile (/lib64/libmarkdown.so.2+0x11e6b)
#3 0x40127f (/usr/bin/discount-mkd2html+0x40127f)
#4 0x7f1ad5ac9f29 in __libc_start_main (/lib64/libc.so.6+0x20f29)
#5 0x401799 (/usr/bin/discount-mkd2html+0x401799)
0x602000000031 is located 0 bytes to the right of 1-byte region [0x602000000030,0x602000000031)
allocated by thread T0 here:
#0 0x7f1ad6173850 in malloc (/lib64/libasan.so.4+0xde850)
#1 0x7f1ad5e73b18 in mkd_compile (/lib64/libmarkdown.so.2+0x14b18)
SUMMARY: AddressSanitizer: heap-buffer-overflow (/lib64/libmarkdown.so.2+0xd2c9)
Shadow bytes around the buggy address:
0x0c047fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c047fff8000: fa fa 00 07 fa fa[01]fa fa fa fa fa fa fa fa fa
0x0c047fff8010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==76==ABORTING
|