Hide Forgot
Some modes, times, ACLs and file flags especially on directories are set on archive_write_close() time. An archive can contain multiple entries with the same path. If a directory entry is marked for post-processing and a symlink entry with the same path "replaces" the directory with the symlink, the "fixup" postprocessing may alter the link target instead of the file itself. Reference: https://github.com/libarchive/libarchive/issues/1566 Upstream patch: https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043
Created libarchive tracking bugs for this issue: Affects: fedora-all [bug 2024238] Created mingw-libarchive tracking bugs for this issue: Affects: fedora-all [bug 2024239]
Second upstream patch completes the fix for this issue: https://github.com/libarchive/libarchive/commit/e2ad1a2c3064fa9eba6274b3641c4c1beed25c0b
*** Bug 2024242 has been marked as a duplicate of this bug. ***
There is another upstream fix that seems to be related (mentions the original b41daec): https://github.com/libarchive/libarchive/commit/8a1bd5c18e896f0411a991240ce0d772bb02c840 which seems to be problematic and was later improved with this one: https://github.com/libarchive/libarchive/commit/ede459d2ebb879f5eedb6f7abea203be0b334230
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2022:0892 https://access.redhat.com/errata/RHSA-2022:0892
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-2021-31566