Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1167571 - (CVE-2014-9112) CVE-2014-9112 cpio: heap-based buffer overflow flaw in list_file()
CVE-2014-9112 cpio: heap-based buffer overflow flaw in list_file()
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20141123,repor...
: Security
Depends On: 1167573 1195575 1195576 1195577 1195578
Blocks: 1167574 1210268
  Show dependency treegraph
 
Reported: 2014-11-25 00:32 EST by Murray McAllister
Modified: 2016-06-13 07:14 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A heap-based buffer overflow flaw was found in cpio's list_file() function. An attacker could provide a specially crafted archive that, when processed by cpio, would crash cpio, or potentially lead to arbitrary code execution.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-20 00:23:54 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
GNU Savannah 43709 None None None Never
Red Hat Product Errata RHSA-2015:2108 normal SHIPPED_LIVE Moderate: cpio security and bug fix update 2015-11-19 04:10:50 EST

  None (edit)
Description Murray McAllister 2014-11-25 00:32:47 EST
A heap-based buffer overflow flaw was reported in cpio's list_file() function. Attempting to extract a malicious cpio archive could cause cpio to crash or, potentially, execute arbitrary code.

As noted in the original report, this issue could be trigger via other utilities, such as when running "less".

A patch is not yet available.

Original report:

http://seclists.org/fulldisclosure/2014/Nov/74
Comment 1 Murray McAllister 2014-11-25 00:36:39 EST
Created cpio tracking bugs for this issue:

Affects: fedora-all [bug 1167573]
Comment 2 Murray McAllister 2014-11-25 00:36:56 EST
CVE request: http://www.openwall.com/lists/oss-security/2014/11/25/2
Comment 4 Murray McAllister 2014-11-26 20:58:03 EST
MITRE assigned CVE-2014-9112 to this issue:

http://www.openwall.com/lists/oss-security/2014/11/26/20
Comment 9 David Walser 2014-12-10 13:42:46 EST
There appear to be issues with the fix on i*86.  As I wrote in the F20 update candidate on admin.fedoraproject.org:
Testing the i686 package on Fedora 20 with the PoC: http://lcamtuf.coredump.cx/afl/vulns/lesspipe-cpio-bad-write.cpio With cpio-2.11-24.fc20 it actually does not segfault, but with cpio-2.11-28.fc20 it does, which is the opposite of what was supposed to happen.

Also, I've added the same patches that Fedora has for this update in the Mageia cpio package.  Our bug is here:
https://bugs.mageia.org/show_bug.cgi?id=14765

As you can see, one of our QA members confirmed the vulnerability and fix on x86_64, but when I tested on i586, it segfaults both before and after the update.  However, the package does have "make check" enabled, which passed when the package was built, so there may be something that was in the PoC that's missing from what has been added to the upstream testsuite in these patches.
Comment 10 Pavel Raiskup 2014-12-11 02:40:51 EST
David, thanks for catching this and letting us know!  I have reported that
issue upstream [1].

The remaining issue does not seem to be security anymore, and, for correct
archives does not hurt (note that the tested cpio archive is broken
intentionally, so the segfault is not _so bad_ now).  If there is no
disagreement, I would treat this as a separate issue/bug.

[1] http://www.mail-archive.com/bug-cpio@gnu.org/msg00507.html

Pavel
Comment 11 David Walser 2014-12-11 17:55:49 EST
Thanks Pavel!

I've synced the upstream changes:
http://svnweb.mageia.org/packages?view=revision&revision=802713

It's working fine with the PoC now.
Comment 12 Fedora Update System 2014-12-18 01:06:24 EST
cpio-2.11-33.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 14 Fedora Update System 2015-01-06 01:09:38 EST
cpio-2.11-28.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 17 errata-xmlrpc 2015-11-19 03:57:07 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:2108 https://rhn.redhat.com/errata/RHSA-2015-2108.html

Note You need to log in before you can comment on or make changes to this bug.