Bug 1385659

Summary: libarchive: Stack based buffer overflow in bsdtar_expand_char
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: anto.trande, besser82, dmoppert, mike, ndevos, praiskup, trepik
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-18 04:30: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: 1378666, 1385673    
Bug Blocks: 1385672    

Description Adam Mariš 2016-10-17 13:02:19 UTC
Stack based buffer overflow vulnerability was found in bsdtar_expand_char in util.c by invoking bsdtar on crafted file. It occurs when trying to format a non-printable multibyte character that overflows 20-byte buffer in safe_fprintf.

Upstream patch:

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

CVE assignment:

http://seclists.org/oss-sec/2016/q4/152

Comment 1 Adam Mariš 2016-10-17 13:24:42 UTC
Created libarchive3 tracking bugs for this issue:

Affects: epel-6 [bug 1385676]

Comment 2 Adam Mariš 2016-10-17 13:24:49 UTC
Created mingw-libarchive tracking bugs for this issue:

Affects: fedora-all [bug 1385674]

Comment 3 Adam Mariš 2016-10-17 13:24:56 UTC
Created libarchive tracking bugs for this issue:

Affects: fedora-all [bug 1385673]
Affects: epel-5 [bug 1385675]

Comment 4 Doran Moppert 2016-10-18 04:30:54 UTC

*** This bug has been marked as a duplicate of bug 1377926 ***