An update for libtar is now available for openEuler-20.03-LTS-SP1,openEuler-20.03-LTS-SP3 and openEuler-22.03-LTS Security Advisory openeuler-security@openeuler.org openEuler security committee openEuler-SA-2022-1807 Final 1.0 1.0 2022-08-05 Initial 2022-08-05 2022-08-05 openEuler SA Tool V1.0 2022-08-05 libtar security update An update for libtar is now available for openEuler-20.03-LTS-SP1,openEuler-20.03-LTS-SP3 and openEuler-22.03-LTS. Libtar is a C library for manipulating POSIX tar files. It handles adding and extracting files to/from a tar archive. Requires gcc, make, and zlib. Security Fix(es): An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longlink, causing an out-of-bounds read.(CVE-2021-33643) An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longname, causing an out-of-bounds read.(CVE-2021-33644) The th_read() function doesn’t free a variable t->th_buf.gnu_longlink after allocating memory, which may cause a memory leak.(CVE-2021-33645) The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak.(CVE-2021-33646) An update for libtar is now available for openEuler-20.03-LTS-SP1,openEuler-20.03-LTS-SP3 and openEuler-22.03-LTS. openEuler Security has rated this update as having a security impact of medium. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section. Medium libtar https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1807 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-33643 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-33644 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-33645 https://www.openeuler.org/en/security/cve/detail.html?id=CVE-2021-33646 https://nvd.nist.gov/vuln/detail/CVE-2021-33643 https://nvd.nist.gov/vuln/detail/CVE-2021-33644 https://nvd.nist.gov/vuln/detail/CVE-2021-33645 https://nvd.nist.gov/vuln/detail/CVE-2021-33646 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS libtar-1.2.20-19.oe1.aarch64.rpm libtar-help-1.2.20-19.oe1.aarch64.rpm libtar-debugsource-1.2.20-19.oe1.aarch64.rpm libtar-devel-1.2.20-19.oe1.aarch64.rpm libtar-debuginfo-1.2.20-19.oe1.aarch64.rpm libtar-1.2.20-19.oe1.aarch64.rpm libtar-devel-1.2.20-19.oe1.aarch64.rpm libtar-debuginfo-1.2.20-19.oe1.aarch64.rpm libtar-help-1.2.20-19.oe1.aarch64.rpm libtar-debugsource-1.2.20-19.oe1.aarch64.rpm libtar-debugsource-1.2.20-21.oe2203.aarch64.rpm libtar-help-1.2.20-21.oe2203.aarch64.rpm libtar-devel-1.2.20-21.oe2203.aarch64.rpm libtar-debuginfo-1.2.20-21.oe2203.aarch64.rpm libtar-1.2.20-21.oe2203.aarch64.rpm libtar-1.2.20-19.oe1.src.rpm libtar-1.2.20-19.oe1.src.rpm libtar-1.2.20-21.oe2203.src.rpm libtar-devel-1.2.20-19.oe1.x86_64.rpm libtar-1.2.20-19.oe1.x86_64.rpm libtar-debuginfo-1.2.20-19.oe1.x86_64.rpm libtar-debugsource-1.2.20-19.oe1.x86_64.rpm libtar-help-1.2.20-19.oe1.x86_64.rpm libtar-1.2.20-19.oe1.x86_64.rpm libtar-debuginfo-1.2.20-19.oe1.x86_64.rpm libtar-devel-1.2.20-19.oe1.x86_64.rpm libtar-debugsource-1.2.20-19.oe1.x86_64.rpm libtar-help-1.2.20-19.oe1.x86_64.rpm libtar-debugsource-1.2.20-21.oe2203.x86_64.rpm libtar-devel-1.2.20-21.oe2203.x86_64.rpm libtar-1.2.20-21.oe2203.x86_64.rpm libtar-debuginfo-1.2.20-21.oe2203.x86_64.rpm libtar-help-1.2.20-21.oe2203.x86_64.rpm An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longlink, causing an out-of-bounds read. 2022-08-05 CVE-2021-33643 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS Low 4.0 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L libtar security update 2022-08-05 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1807 An attacker who submits a crafted tar file with size in header struct being 0 may be able to trigger an calling of malloc(0) for a variable gnu_longname, causing an out-of-bounds read. 2022-08-05 CVE-2021-33644 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS Low 4.0 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L libtar security update 2022-08-05 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1807 The th_read() function doesn’t free a variable t->th_buf.gnu_longlink after allocating memory, which may cause a memory leak. 2022-08-05 CVE-2021-33645 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS Medium 6.2 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H libtar security update 2022-08-05 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1807 The th_read() function doesn’t free a variable t->th_buf.gnu_longname after allocating memory, which may cause a memory leak. 2022-08-05 CVE-2021-33646 openEuler-20.03-LTS-SP1 openEuler-20.03-LTS-SP3 openEuler-22.03-LTS Medium 6.2 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H libtar security update 2022-08-05 https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1807