Bug 1168715 - (CVE-2014-8118) CVE-2014-8118 rpm: integer overflow and stack overflow in CPIO header parsing
CVE-2014-8118 rpm: integer overflow and stack overflow in CPIO header parsing
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
high Severity high
: ---
: ---
Assigned To: Red Hat Product Security
impact=important,public=20141209,repo...
: Security
Depends On: 1170036 1170037 1172125
Blocks: 1039813 1168704
  Show dependency treegraph
 
Reported: 2014-11-27 11:07 EST by Florian Weimer
Modified: 2015-01-05 04:46 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-12-18 23:47:21 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)
rpm-4.12-CVE-2014-8118.patch (437 bytes, patch)
2014-11-27 11:12 EST, Florian Weimer
no flags Details | Diff

  None (edit)
Description Florian Weimer 2014-11-27 11:07:33 EST
IssueDescription:

It was found that RPM could encounter an integer overflow, leading to a stack-based overflow, while parsing a crafted CPIO header in the payload section of an RPM file.  This could allow an attacker to modify signed RPM files in such a way that they would execute code chosen by the attacker during package installation.

Acknowledgements:

This issue was discovered by Florian Weimer of Red Hat Product Security.
Comment 1 Florian Weimer 2014-11-27 11:12:57 EST
Created attachment 962159 [details]
rpm-4.12-CVE-2014-8118.patch

Proposed patch to limit the length of the file name to a reasonable value.
Comment 6 Huzaifa S. Sidhpurwala 2014-12-09 07:51:00 EST
Created rpm tracking bugs for this issue:

Affects: fedora-all [bug 1172125]
Comment 7 errata-xmlrpc 2014-12-09 14:51:00 EST
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2014:1976 https://rhn.redhat.com/errata/RHSA-2014-1976.html
Comment 8 Fedora Update System 2014-12-16 23:46:15 EST
rpm-4.12.0.1-4.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 10 Huzaifa S. Sidhpurwala 2014-12-18 23:47:21 EST
Statement:

This issue does not affect the version of rpm package as shipped with Red Hat Enterprise Linux 5 and 6.
Comment 11 Fedora Update System 2014-12-29 04:57:25 EST
rpm-4.11.3-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

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