Bug 1732781 (CVE-2019-13636)

Summary: CVE-2019-13636 patch: the following of symlinks in inp.c and util.c is mishandled in cases other than input files
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: mbenatto, than, twaugh
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: 2020-04-28 16:33:30 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: 1732842, 1733564, 1733565    
Bug Blocks: 1731850    

Description Marian Rehak 2019-07-24 10:54:18 UTC
In GNU patch through 2.7.6, the following of symlinks is mishandled in certain cases other than input files. This affects inp.c and util.c.

Upstream patch:

https://git.savannah.gnu.org/cgit/patch.git/commit/?id=dce4683cbbe107a95f1f0d45fabc304acfb5d71a

Comment 2 Marian Rehak 2019-07-24 13:49:35 UTC
Created patch tracking bugs for this issue:

Affects: fedora-all [bug 1732842]

Comment 9 Marco Benatto 2019-07-26 17:33:21 UTC
There is a flaw on patch package. When applying patch files patch application follows symlinks by default, even with no --follow-symlinks option being used. This can be used by an attacker to access other filesystem files other than the expected one via a crafted patch file.

Comment 10 errata-xmlrpc 2020-04-28 16:00:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:1852 https://access.redhat.com/errata/RHSA-2020:1852

Comment 11 Product Security DevOps Team 2020-04-28 16:33:30 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-2019-13636