Bug 1350280 (CVE-2016-5844)

Summary: CVE-2016-5844 libarchive: undefined behaviour (integer overflow) in iso 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: ndevos, praiskup, slawomir
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libarchive 3.2.1 Doc Type: If docs needed, set a value
Doc Text:
Undefined behavior (signed integer overflow) was discovered in libarchive, in the ISO parser. A crafted file could potentially cause denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 02:55:54 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-26 23:48:35 UTC
Hanno Böck has disclosed another Undefined Behaviour (signed integer 
overflow) on oss-security:

    http://seclists.org/oss-sec/2016/q2/591

Upstream ticket:

    https://github.com/libarchive/libarchive/issues/717

Upstream fix (released in libarchive-3.2.1):

    https://github.com/libarchive/libarchive/commit/3ad08e0

While the UB exists in 3.2.0, an earlier patch seems to mitigate against 
the issue:

    https://github.com/libarchive/libarchive/commit/e6c9668f

This function is called immediately after the overflow, and will 
immediately reject a negative skipsize with ARCHIVE_FATAL, skipping all 
further processing.

Previous releases up to and including 3.1.2 (including 2.8.3, 2.8.4) do 
not include the mitigation and are thus likely vulnerable.

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

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

Comment 3 errata-xmlrpc 2016-09-12 19:56:51 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 4 errata-xmlrpc 2016-09-12 20:15:09 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