Bug 1348772 (CVE-2015-8921)

Summary: CVE-2015-8921 libarchive: Global out of bounds read in mtree parser
Product: [Other] Security Response Reporter: Doran Moppert <dmoppert>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: jrusnack, ndevos, praiskup, slawomir
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libarchive 3.2.0 Doc Type: Bug Fix
Doc Text:
A vulnerability was found in libarchive. A specially crafted mtree file could cause libarchive to read beyond a statically declared structure, potentially disclosing application memory.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-12 13:04:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1352775, 1352776, 1353065, 1353066, 1353067, 1353068    
Bug Blocks: 1334215    

Description Doran Moppert 2016-06-22 03:31:42 UTC
An out of bounds read was discovered in the mtree parser.  A specially
crafted mtree file could cause libarchive to read beyond a statically
declared structure.  The read was using memcmp(), so data could not
be directly exfiltrated by an attacker.

The vulnerable code appears to be reachable through other paths in
libarchive-2.8, though the reproducer in the upstream ticket fails
to generate a warning.

Upstream bug:
    https://github.com/libarchive/libarchive/issues/512

Upstream fix:
    https://github.com/libarchive/libarchive/commit/1cbc76f

Comment 2 Doran Moppert 2016-07-05 04:38:01 UTC
Created libarchive tracking bugs for this issue:

Affects: fedora-all [bug 1352776]
Affects: epel-5 [bug 1352775]

Comment 4 Pavel Raiskup 2016-07-08 07:23:25 UTC
(In reply to Doran Moppert from comment #0)
> Upstream fix:
>     https://github.com/libarchive/libarchive/commit/1cbc76f

For myself: that is incomplete fix, there are follow-up patches.

Comment 5 errata-xmlrpc 2016-09-12 19:56:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2016:1850 https://rhn.redhat.com/errata/RHSA-2016-1850.html

Comment 6 errata-xmlrpc 2016-09-12 20:14:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2016:1844 https://rhn.redhat.com/errata/RHSA-2016-1844.html

Comment 7 Product Security DevOps Team 2019-07-12 13:04:16 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2015-8921