Bug 1601233 - one null pointer deference bug in stradd in fileutil.c
Summary: one null pointer deference bug in stradd in fileutil.c
Keywords:
Status: NEW
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: catdoc
Version: epel7
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-15 12:00 UTC by rookie
Modified: 2018-07-15 12:12 UTC (History)
2 users (show)

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


Attachments (Terms of Use)
poc to reproduce the crash (5.14 KB, application/zip)
2018-07-15 12:00 UTC, rookie
no flags Details

Description rookie 2018-07-15 12:00:33 UTC
Created attachment 1458982 [details]
poc to reproduce the crash

Description of problem:
There exists one null pointer deference bug in stradd in fileutil.c in catdoc0.95 which allows attacker to cause a denial-of-service via a crafted xls file.This bug can be triggered by the executable xls2csv.

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

How reproducible:
xls2csv $poc

Actual results:
ASan:
==38018==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f550749b746 bp 0x7ffd37a6f9c0 sp 0x7ffd37a6f158 T0)
    #0 0x7f550749b745 in strlen /build/glibc-Cl5G7W/glibc-2.23/string/../sysdeps/x86_64/strlen.S:76
    #1 0x436aac in __interceptor_strlen.part.45 asan_interceptors.cc.o
    #2 0x4f5447 in stradd /home/s2e/catdoc-0.95/src/fileutil.c:124
    #3 0x4f1287 in read_charset /home/s2e/catdoc-0.95/src/charsets.c:79
    #4 0x4edb6f in process_item /home/s2e/catdoc-0.95/src/xlsparse.c:159
    #5 0x4ed291 in do_table /home/s2e/catdoc-0.95/src/xlsparse.c:116
    #6 0x4eb211 in main /home/s2e/catdoc-0.95/src/xls2csv.c:167
    #7 0x7f550743082f in __libc_start_main /build/glibc-Cl5G7W/glibc-2.23/csu/../csu/libc-start.c:291
    #8 0x419048 in _start (/home/s2e/catdoc-0.95/src/xls2csv+0x419048)


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