Project: liblouis (liblouis/liblouis), language: c++
Vulnerability instance: liblouis.cve-2017-13743
Sanitizer: address

================= Bug Report (1/1) ==================
## Source: Red Hat Bugzilla
## URL: https://bugzilla.redhat.com/show_bug.cgi?id=1484335
## Description:
Bugzilla ID: 1484335
Title: There is a heap overflow in liblouis which is triggered at function _lou_showString().

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   and chaoz.cn if you need more info about the team, the tool or the vulnerability.


Comments:
Comment 4
RHEL Program Management 2021-01-15 07:41:27 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Attachments:
Attachment 1317031: Triggered by "./lou_checktable POC6" [Link: https://bugzilla.redhat.com/attachment.cgi?id=1317031]

Build script:
#!/bin/bash
# Default build script template for C/C++ projects
set -eu

# Define configuration options
CONFIG_OPTS="--disable-shared"
CMAKE_OPTS="-DCMAKE_BUILD_TYPE=Debug"
MAKE_OPTS="-j$(nproc)"
BUILD_DIR="build"

# 1. Run build preparation scripts if they exist
for prep_script in buildconf autogen.sh bootstrap; do
  if [ -x "$prep_script" ]; then
    echo "Running $prep_script..."
    ./$prep_script
    break
  elif [ -f "$prep_script" ]; then
    echo "Found $prep_script but it's not executable, setting permissions..."
    chmod +x $prep_script
    ./$prep_script
    break
  fi
done

# 2. Handle different build systems
if [ -f "configure" ]; then
  echo "Found configure script, running with options: $CONFIG_OPTS"
  ./configure $CONFIG_OPTS

  echo "Building with make $MAKE_OPTS"
  make $MAKE_OPTS
elif [ -f "CMakeLists.txt" ]; then
  echo "Found CMakeLists.txt, using CMake build system"
  mkdir -p $BUILD_DIR
  cd $BUILD_DIR
  cmake $CMAKE_OPTS ..
  make $MAKE_OPTS
elif [ -f "Makefile" ] || [ -f "makefile" ]; then
  echo "Found Makefile, building with make $MAKE_OPTS"
  make $MAKE_OPTS
elif [ -f "meson.build" ]; then
  echo "Found meson.build, using Meson build system"
  mkdir -p $BUILD_DIR
  meson setup $BUILD_DIR .
  cd $BUILD_DIR
  ninja
elif [ -f "GNUmakefile" ]; then
  echo "Found GNUmakefile, building with make $MAKE_OPTS"
  make $MAKE_OPTS
elif [ -d ".git" ] && [ -f "Makefile.am" ]; then
  echo "Found Makefile.am, running autoreconf"
  autoreconf -i
  ./configure $CONFIG_OPTS
  make $MAKE_OPTS
else
  echo "WARNING: No recognized build system found!"
  echo "Trying generic approach:"
  
  # Try to detect common source patterns and compile them
  if ls *.c >/dev/null 2>&1 || ls *.cpp >/dev/null 2>&1 || ls *.cc >/dev/null 2>&1; then
    echo "Found C/C++ source files, attempting direct compilation"
    if ls *.cpp >/dev/null 2>&1 || ls *.cc >/dev/null 2>&1; then
      CXX=${CXX:-g++}
      echo "Compiling C++ sources with $CXX"
      $CXX -g -O1 -fsanitize=address -fno-omit-frame-pointer -o main *.cpp *.cc 2>/dev/null || true
    elif ls *.c >/dev/null 2>&1; then
      CC=${CC:-gcc}
      echo "Compiling C sources with $CC"
      $CC -g -O1 -fsanitize=address -fno-omit-frame-pointer -o main *.c 2>/dev/null || true
    fi
  fi
fi

Dockerfile:
FROM hwiwonlee/secb.base:latest
RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config zlib1g-dev libpci-dev
RUN git clone https://github.com/liblouis/liblouis liblouis
RUN git -C liblouis checkout d1998f27ca0ca37c13343c6d22baf075919f4a0d
WORKDIR $SRC/liblouis
COPY build.sh $SRC/

Additional files: