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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by gray (Updated the item)
  • -unavailable- added by fweimer (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 Nov 2016 01:31:32 PM UTCgrayStatusNone=>Fixed
      Assigned toNone=>gray

    Back to the top

    Powered by Savane 3.1-cleanup1