bugicoutils - Bugs: bug #53323, wrestool out of bounds read in...

 
 

bug #53323: wrestool out of bounds read in read_library()

Submitter:  Hanno Boeck <hanno>
Submitted:  Sun 11 Mar 2018 03:57:16 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 15 Mar 2018 03:09:56 PM UTC, comment #1: 

Fixed in git repo.

F R <res>
Group administrator
Sun 11 Mar 2018 03:57:16 PM UTC, original submission:  

The attached file causes a heap out of bounds read access in wrestool -l, detectable with address sanitizer.

Stack trace:

==14305==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6040000000cc at pc 0x00000051bc63 bp 0x7ffcd6e0b660 sp 0x7ffcd6e0b658
READ of size 4 at 0x6040000000cc thread T0
    #0 0x51bc62 in read_library /f/icoutils/icoutils-0.32.3/wrestool/restable.c:488:21
    #1 0x517170 in main /f/icoutils/icoutils-0.32.3/wrestool/main.c:322:8
    #2 0x7f315fe52f85 in __libc_start_main (/lib64/libc.so.6+0x20f85)
    #3 0x419ee9 in _start (/r/icoutils/wrestool+0x419ee9)

0x6040000000cc is located 12 bytes to the right of 48-byte region [0x604000000090,0x6040000000c0)
allocated by thread T0 here:
    #0 0x4d9730 in realloc (/r/icoutils/wrestool+0x4d9730)
    #1 0x52c14c in xrealloc /f/icoutils/icoutils-0.32.3/lib/xmalloc.c:61:7
    #2 0x7b2b0b40  (<unknown module>)


Hanno Boeck <hanno>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #43515:  oob.exe added by hanno (536B - application/x-ms-dos-executable)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by res (Posted a comment)
  • -email is unavailable- added by hanno (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.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-15 res StatusNone Fixed
        Open/ClosedOpen Closed
    2018-03-11 hanno Attached File- Added oob.exe, #43515

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code