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

 
 

bug #47892: heap-buffer-overflow in cid_parser_new

Submitted by:  Kostya Serebryany <kcc>
Submitted on:  Tue 10 May 2016 08:29:34 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.6.4

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Fixed in git, thanks!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by kcc (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 May 2016 05:45:34 PM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.6.4
    Tue 10 May 2016 08:29:34 PM UTCkccAttached File-=>Added fuzz-3-freetype2_fuzzer, #37123

    Back to the top


    Powered by Savane 3.1-cleanup1