Bug 2054465

Summary: libarchive: Extracting a symlink with ACLs modifies ACLs of target
Product: [Other] Security Response Reporter: Todd Cullum <tcullum>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdettelb, caswilli, databases-maint, dhalasz, fjansen, jburrell, jnakfour, jwong, kaycoth, ljavorsk, micjohns, mike, mmuzila, ndevos, odubaj, panovotn, pkubat, praiskup, psegedy, sthirugn, tkasparek, tsasak, vkrizan, vmugicag, zmiklank
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: 2022-02-15 19:16:49 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:    
Bug Blocks: 2054464    

Description Todd Cullum 2022-02-15 01:18:33 UTC
In libarchive before 3.5.2, when an archive entry contains a symbolic link that has defined ACLs on Linux, on extraction the ACLs of the link target are modified. This is because the function acl_set_file() is used without a prior check if the file is not a symbolic link. On Linux ACLs on symbolic links are not supported.

Upstream issue:
https://github.com/libarchive/libarchive/issues/1565

Upstream patch:
https://github.com/libarchive/libarchive/commit/fba4f123cc456d2b2538f811bb831483bf336bad

References:
https://bugzilla.redhat.com/show_bug.cgi?id=2024245

Comment 3 Todd Cullum 2022-02-15 19:16:49 UTC

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