bugGNU cpio - Bugs: bug #43709, Out-of-bounds write in...

 
 

bug #43709: Out-of-bounds write in process_copy_in (CVE-2014-9112)

Submitter:  Florian Weimer <fweimer>
Submitted:  Thu 27 Nov 2014 08:43:38 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  gray
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 27 Nov 2014 08:43:38 AM UTC, original submission:  

It was reported that in process_copy_in has an out-of-bounds heap write:

    646       link_name = (char *) xmalloc ((unsigned int) file_hdr->c_filesize + 1);
    647       link_name[file_hdr->c_filesize] = '\0';

file_hdr->c_filesize can be (unsigned) -1, so it wraps around 0, and the subsequent assignment writes outside the allocated memory area.

(Via <http://thread.gmane.org/gmane.comp.security.fulldisclosure/1238>.)

This has been assigned CVE-2014-9112.

Florian Weimer <fweimer>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gray (Updated the item)
  • -email is unavailable- added by fweimer (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
    2016-11-10 gray StatusNone Fixed
        Assigned toNone gray
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code