bugThe FreeType Project - Bugs: bug #47892, heap-buffer-overflow in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #47892: heap-buffer-overflow in cid_parser_new

Submitter:  Kostya Serebryany <kcc>
Submitted:  Tue 10 May 2016 08:29:34 PM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  2.6.4

Mon 16 May 2016 05:45:34 PM UTC, comment #1: 

Fixed in git, thanks!

Werner LEMBERG <wl>
Group administrator
Tue 10 May 2016 08:29:34 PM UTC, original submission:  

Found by libFuzzer+AddressSanitizer on a yet-non-public fuzzing bot.
Reproducer attached.

==38440==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x610000007cfa at pc 0x00000042b201 bp 0x7ffcee9467b0 sp 0x7ffcee945f68
READ of size 3 at 0x610000007cfa thread T0
    #0 0x42b200 in __interceptor_strncmp /usr/local/google/home/kcc/llvm/projects/compiler-rt/lib/asan/../sanitizer_common/sanitizer_common_interceptors.inc:307:3
    #1 0x60ec52 in cid_parser_new src/cid/cidparse.c:194:34
    #2 0x60ec52 in cid_face_open src/cid/cidload.c:705
    #3 0x60ec52 in cid_face_init src/cid/cidobjs.c:327
    #4 0x533fbc in open_face src/base/ftobjs.c:1177:15
    #5 0x5314eb in FT_Open_Face src/base/ftobjs.c:2177:19
    #6 0x5339e0 in FT_New_Memory_Face src/base/ftobjs.c:1267:12
    #7 0x4e64d1 in LLVMFuzzerTestOneInput src/tools/ftfuzzer/ftfuzzer.cc:196:10


0x610000007cfa is located 0 bytes to the right of 186-byte region [0x610000007c40,0x610000007cfa)
allocated by thread T0 here:
...
    #11 0x4e7ccc in parse_data(unsigned char const*, unsigned long) src/tools/ftfuzzer/ftfuzzer.cc:136:7
    #12 0x4e63c4 in LLVMFuzzerTestOneInput src/tools/ftfuzzer/ftfuzzer.cc:180:45

Kostya Serebryany <kcc>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #37123:  fuzz-3-freetype2_fuzzer added by kcc (186B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by kcc (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-16 wl StatusNone Fixed
        Assigned toNone wl
        Open/ClosedOpen Closed
        Planned ReleaseNone 2.6.4
    2016-05-10 kcc Attached File- Added fuzz-3-freetype2_fuzzer, #37123

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code