After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 750864 - Use-after-free in mstyle.c:2229 on a fuzzed xlsx file
Use-after-free in mstyle.c:2229 on a fuzzed xlsx file
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
git master
Other Linux
: Normal critical
: ---
Assigned To: Jody Goldberg
Jody Goldberg
http://jutaky.com/fuzzing/gnumeric_ca...
Depends on:
Blocks:
 
 
Reported: 2015-06-12 15:06 UTC by jutaky
Modified: 2015-06-12 18:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jutaky 2015-06-12 15:06:17 UTC
Git versions of glib, goffice, gnumeric, libgsf and libxml2.

Test case: http://jutaky.com/fuzzing/gnumeric_case_3637_3264.xlsx

$ ssconvert gnumeric_case_3637_3264.xlsx /tmp/out.gnumeric

==27442==ERROR: AddressSanitizer: heap-use-after-free on address 0x603000066e20 at pc 0x7f664dbf268c bp 0x7ffc6577a4d0 sp 0x7ffc6577a4c8
READ of size 4 at 0x603000066e20 thread T0
    #0 0x7f664dbf268b in gnm_style_dump_border gnumeric/gnumeric/src/mstyle.c:2229:23
    #1 0x7f664dbefeb3 in gnm_style_dump gnumeric/gnumeric/src/mstyle.c:2247:4
    #2 0x7f664dbf298d in cb_gnm_style_pool_leak gnumeric/gnumeric/src/mstyle.c:2334:2
    #3 0x7f66475f3abc in g_slist_foreach gnumeric/glib/glib/gslist.c:878
    #4 0x7f664cee8e47 in go_mem_chunk_foreach_leak gnumeric/goffice/goffice/utils/go-glib-extras.c:722:2
    #5 0x7f664dbf276a in gnm_style_shutdown gnumeric/gnumeric/src/mstyle.c:2342:2
    #6 0x7f664daba16a in gnm_shutdown gnumeric/gnumeric/src/libgnumeric.c:396:2
    #7 0x4dee28 in main gnumeric/gnumeric/src/ssconvert.c:913:2
    #8 0x7f6646bd078f in __libc_start_main (/usr/lib/libc.so.6+0x2078f)
    #9 0x437b98 in _start (apps/bin/ssconvert+0x437b98)

ASAN:SIGSEGV
==27442==AddressSanitizer: while reporting a bug found another one. Ignoring.

--
Juha Kylmänen
Comment 1 Morten Welinder 2015-06-12 18:26:11 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.