OESA-2022-1807

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2022-1807
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2022-1807.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2022-1807
Upstream
Published
2022-08-05T11:04:05Z
Modified
2025-09-03T06:17:27.621824Z
Summary
libtar security update
Details

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 thread() function doesn’t free a variable t->thbuf.gnu_longlink after allocating memory, which may cause a memory leak.(CVE-2021-33645)

The thread() function doesn’t free a variable t->thbuf.gnu_longname after allocating memory, which may cause a memory leak.(CVE-2021-33646)

Database specific
{
    "severity": "Medium"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / libtar

Package

Name
libtar
Purl
pkg:rpm/openEuler/libtar&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.20-19.oe1

Ecosystem specific

{
    "x86_64": [
        "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"
    ],
    "src": [
        "libtar-1.2.20-19.oe1.src.rpm"
    ],
    "aarch64": [
        "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"
    ]
}

openEuler:20.03-LTS-SP3 / libtar

Package

Name
libtar
Purl
pkg:rpm/openEuler/libtar&distro=openEuler-20.03-LTS-SP3

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.20-19.oe1

Ecosystem specific

{
    "x86_64": [
        "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"
    ],
    "src": [
        "libtar-1.2.20-19.oe1.src.rpm"
    ],
    "aarch64": [
        "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"
    ]
}

openEuler:22.03-LTS / libtar

Package

Name
libtar
Purl
pkg:rpm/openEuler/libtar&distro=openEuler-22.03-LTS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.2.20-21.oe2203

Ecosystem specific

{
    "x86_64": [
        "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"
    ],
    "src": [
        "libtar-1.2.20-21.oe2203.src.rpm"
    ],
    "aarch64": [
        "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"
    ]
}