Bug 1168715 (CVE-2014-8118) - CVE-2014-8118 rpm: integer overflow and stack overflow in CPIO header parsing
Summary: CVE-2014-8118 rpm: integer overflow and stack overflow in CPIO header parsing
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2014-8118
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1170036 1170037 1172125
Blocks: 1039813 1168704
TreeView+ depends on / blocked
 
Reported: 2014-11-27 16:07 UTC by Florian Weimer
Modified: 2023-05-12 06:33 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-19 04:47:21 UTC
Embargoed:


Attachments (Terms of Use)
rpm-4.12-CVE-2014-8118.patch (437 bytes, patch)
2014-11-27 16:12 UTC, Florian Weimer
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:1976 0 normal SHIPPED_LIVE Important: rpm security update 2014-12-10 00:50:38 UTC

Description Florian Weimer 2014-11-27 16:07:33 UTC
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 16:12:57 UTC
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 12:51:00 UTC
Created rpm tracking bugs for this issue:

Affects: fedora-all [bug 1172125]

Comment 7 errata-xmlrpc 2014-12-09 19:51:00 UTC
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-17 04:46:15 UTC
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-19 04:47:21 UTC
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 09:57:25 UTC
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.