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


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

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

Add a New Comment (Rich Markup)

You are not logged in

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


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:

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)

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

    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.5