Bug 1484335 - There is a heap overflow in liblouis which is triggered at function _lou_showString().
Summary: There is a heap overflow in liblouis which is triggered at function _lou_sho...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: liblouis
Version: 7.5-Alt
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Matthias Clasen
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-23 09:42 UTC by owl337
Modified: 2019-08-01 18:04 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)
Triggered by "./lou_checktable POC6" (2.42 KB, application/x-rar)
2017-08-23 09:42 UTC, owl337
no flags Details

Description owl337 2017-08-23 09:42:59 UTC
Created attachment 1317031 [details]
Triggered by "./lou_checktable POC6"

Description of problem:

There is a heap overflow in liblouis which is triggered at function  _lou_showString().

Version-Release number of selected component (if applicable):

<= latest version

How reproducible:

./lou_checktable POC6

Steps to Reproduce:

$ ./lou_checktable POC6
...
POC24:420: error: opcode ':' not defined.
POC24:421: error: opcode 'imc\x0085ude' not defined.
Cannot resolve table 'eesI]t'
POC24:423: error: opcode 'Jnclude' not defined.
POC24:424: error: opcode 'iLGP\x00ffv2re:' not defined.
POC24:429: error: opcode 'cludincluder-\x00ffame:' not defined.
POC24:430: error: opcode 'contLGP]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]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]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
POC24:435: error: opcode ']]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]cpion:fMiel' not defined.
*** Error in `./../../../lou_checktable': free(): invalid next size (normal): 0x000000000180ab50 ***
Aborted


The GDB && ASAN debugging information is as follows:

gdb-peda$ r
...
Breakpoint 27, _lou_showString (chars=<optimized out>, length=<optimized out>) at utils.c:150
150	      if (chars[charPos] >= 32 && chars[charPos] < 127)
gdb-peda$ c 4703 
Will ignore next 4702 crossings of breakpoint 27.  Continuing.
...

Legend: code, data, rodata, value
150	      if (chars[charPos] >= 32 && chars[charPos] < 127)
gdb-peda$ bt 
#0  _lou_showString (chars=<optimized out>, length=<optimized out>) at utils.c:150
#1  0x00007ffff7b39e28 in getOpcode (nested=<optimized out>, token=<optimized out>, opcodeLengths=<optimized out>)
    at compileTranslationTable.c:1285
#2  0x00007ffff7b1f171 in compileRule (nested=<optimized out>, characterClasses=<optimized out>, 
    characterClassAttribute=<optimized out>, opcodeLengths=<optimized out>, newRuleOffset=<optimized out>, 
    newRule=<optimized out>, ruleNames=<optimized out>) at compileTranslationTable.c:3827
#3  0x00007ffff7b5e548 in compileFile (fileName=<optimized out>, characterClasses=<optimized out>, 
    characterClassAttribute=<optimized out>, opcodeLengths=<optimized out>, newRuleOffset=<optimized out>, 
    newRule=<optimized out>, ruleNames=<optimized out>) at compileTranslationTable.c:5208
#4  0x00007ffff7b1a80e in compileTranslationTable (tableList=<optimized out>, characterClasses=<optimized out>, 
    characterClassAttribute=<optimized out>, opcodeLengths=<optimized out>, newRuleOffset=<optimized out>, 
    newRule=<optimized out>, ruleNames=<optimized out>) at compileTranslationTable.c:5316
#5  lou_getTable (tableList=<optimized out>) at compileTranslationTable.c:5419
#6  0x00000000004dbcb0 in main (argc=<optimized out>, argv=<optimized out>, argv@entry=0x7fffffffe568)
    at lou_checktable.c:121
#7  0x00007ffff6c10ac0 in __libc_start_main (main=0x4dbb00 <main>, argc=0x2, argv=0x7fffffffe568, init=<optimized out>, 
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe558) at libc-start.c:289
#8  0x0000000000435749 in _start ()
gdb-peda$ n

[----------------------------------registers-----------------------------------]
RAX: 0x3d ('=')
RBX: 0x7ffffffebde8 --> 0x5d005d005d005d (']')
RCX: 0xe785 
RDX: 0x137a910 --> 0x0 
RSI: 0x7ffff7fd9778 --> 0x6f99 
RDI: 0x7ffff7dc78d0 --> 0x1 
RBP: 0x7ffffff7d750 --> 0x0 
RSP: 0x7ffffff7d640 --> 0x45e0360e 
RIP: 0x7ffff7bbaa48 (<_lou_showString+376>:	data16 lea rdi,[rip+0x20ce80]        # 0x7ffff7dc78d0)
R8 : 0x7ffff7fd9778 --> 0x6f99 
R9 : 0x0 
R10: 0xf2f2f2f2f2f2 
R11: 0x7ffffffeae00 --> 0x1 
R12: 0x705c30 --> 0x137a910 --> 0x0 
R13: 0x800 
R14: 0x705c30 --> 0x137a910 --> 0x0 
R15: 0x5d (']')
EFLAGS: 0x293 (CARRY parity ADJUST zero SIGN trap INTERRUPT direction overflow)
[-------------------------------------code-------------------------------------]
   0x7ffff7bbaa40 <_lou_showString+368>:	movzx  eax,ax
   0x7ffff7bbaa43 <_lou_showString+371>:	cmp    eax,0x5e
   0x7ffff7bbaa46 <_lou_showString+374>:	ja     0x7ffff7bbaab0 <_lou_showString+480>
=> 0x7ffff7bbaa48 <_lou_showString+376>:	data16 lea rdi,[rip+0x20ce80]        # 0x7ffff7dc78d0
   0x7ffff7bbaa50 <_lou_showString+384>:	data16 data16 call 0x7ffff7b12ce0 <__tls_get_addr@plt>
   0x7ffff7bbaa58 <_lou_showString+392>:	movsxd rcx,DWORD PTR [rax]
   0x7ffff7bbaa5b <_lou_showString+395>:	mov    rdx,QWORD PTR [r12]
   0x7ffff7bbaa5f <_lou_showString+399>:	mov    r14,r12
[------------------------------------stack-------------------------------------]
0000| 0x7ffffff7d640 --> 0x45e0360e 
0008| 0x7ffffff7d648 --> 0x7ffff7bc3bea ("1 32 24 4 argp")
0016| 0x7ffffff7d650 --> 0x7ffffff7d6a0 --> 0x41b58ab3 
0024| 0x7ffffff7d658 --> 0x0 
0032| 0x7ffffff7d660 --> 0xffffffefad4 --> 0x0 
0040| 0x7ffffff7d668 --> 0x1 
0048| 0x7ffffff7d670 --> 0x7ffffff7d6c0 --> 0x3000006666 --> 0x0 
0056| 0x7ffffff7d678 --> 0x2 
[------------------------------------------------------------------------------]
Legend: code, data, rodata, value
151		scratchBuf[bufPos++] = (char) chars[charPos];
gdb-peda$ n
=================================================================
==34114==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7ffff7dd6e80 at pc 0x7ffff7bbaedf bp 0x7ffffff7d630 sp 0x7ffffff7d628
WRITE of size 1 at 0x7ffff7dd6e80 thread T0
    #0 0x7ffff7bbaede  (/home/icy/secreal/liblouis/install_asan/lib/liblouis.so.14+0xb7ede)
    #1 0x7ffff7b39e27  (/home/icy/secreal/liblouis/install_asan/lib/liblouis.so.14+0x36e27)
    #2 0x7ffff7b1f170  (/home/icy/secreal/liblouis/install_asan/lib/liblouis.so.14+0x1c170)
    #3 0x7ffff7b5e547  (/home/icy/secreal/liblouis/install_asan/lib/liblouis.so.14+0x5b547)
    #4 0x7ffff7b1a80d  (/home/icy/secreal/liblouis/install_asan/lib/liblouis.so.14+0x1780d)
    #5 0x4dbcaf  (/home/icy/secreal/liblouis/install_asan/bin/lou_checktable+0x4dbcaf)
    #6 0x7ffff6c10abf  (/lib/x86_64-linux-gnu/libc.so.6+0x20abf)
    #7 0x435748  (/home/icy/secreal/liblouis/install_asan/bin/lou_checktable+0x435748)

0x7ffff7dd6e80 is located 0 bytes to the right of global variable 'scratchBuf' defined in 'utils.c:146:15' (0x7ffff7dd6680) of size 2048
Shadow bytes around the buggy address:
  0x10007efb2d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10007efb2d90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10007efb2da0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10007efb2db0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10007efb2dc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10007efb2dd0:[f9]f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x10007efb2de0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x10007efb2df0: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x10007efb2e00: f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9 f9
  0x10007efb2e10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x10007efb2e20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
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
  Heap right redzone:      fb
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack partial redzone:   f4
  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
==34114==ABORTING
[Inferior 1 (process 34114) exited with code 01]
Warning: not running or target is remote

The vulnerability was triggered in function:
Breakpoint 27, _lou_showString (chars=<optimized out>, length=<optimized out>) at utils.c:151
145	  int bufPos = 0;
146	  static char scratchBuf[MAXSTRING];
147	  scratchBuf[bufPos++] = '\'';
148	  for (charPos = 0; charPos < length; charPos++)
149	    {
150	      if (chars[charPos] >= 32 && chars[charPos] < 127)
151		scratchBuf[bufPos++] = (char) chars[charPos];
152	      else
153		{
154		  char hexbuf[20];



Actual results:

crash

Expected results:

crash

Additional info:
Credits:

This vulnerability is detected by team OWL337, with our custom fuzzer collAFL. Please contact ganshuitao@gmail.com   and chaoz@tsinghua.edu.cn if you need more info about the team, the tool or the vulnerability.


Note You need to log in before you can comment on or make changes to this bug.