OESA-2022-2124

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2022-2124
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2022-2124.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2022-2124
Upstream
Published
2022-12-02T11:04:39Z
Modified
2025-08-12T05:14:29.215798Z
Summary
libarchive security update
Details

is an open-source BSD-licensed C programming library that provides streaming access to a variety of different archive formats, including tar, cpio, pax, zip, and ISO9660 images. The distribution also includes bsdtar and bsdcpio, full-featured implementations of tar and cpio that use .

Security Fix(es):

In libarchive 3.6.1, the software does not check for an error after calling calloc function that can return with a NULL pointer if the function fails, which leads to a resultant NULL pointer dereference. NOTE: the discoverer cites this CWE-476 remark but third parties dispute the code-execution impact: "In rare circumstances, when NULL is equivalent to the 0x0 memory address and privileged code can access it, then writing or reading memory is possible, which may lead to code execution."(CVE-2022-36227)

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

Affected packages

openEuler:22.03-LTS / libarchive

Package

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

Affected ranges

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

Ecosystem specific

{
    "src": [
        "libarchive-3.5.2-5.oe2203.src.rpm"
    ],
    "noarch": [
        "libarchive-help-3.5.2-5.oe2203.noarch.rpm"
    ],
    "aarch64": [
        "bsdcat-3.5.2-5.oe2203.aarch64.rpm",
        "libarchive-3.5.2-5.oe2203.aarch64.rpm",
        "libarchive-debugsource-3.5.2-5.oe2203.aarch64.rpm",
        "libarchive-devel-3.5.2-5.oe2203.aarch64.rpm",
        "bsdcpio-3.5.2-5.oe2203.aarch64.rpm",
        "bsdtar-3.5.2-5.oe2203.aarch64.rpm",
        "libarchive-debuginfo-3.5.2-5.oe2203.aarch64.rpm"
    ],
    "x86_64": [
        "libarchive-devel-3.5.2-5.oe2203.x86_64.rpm",
        "bsdtar-3.5.2-5.oe2203.x86_64.rpm",
        "libarchive-debuginfo-3.5.2-5.oe2203.x86_64.rpm",
        "bsdcpio-3.5.2-5.oe2203.x86_64.rpm",
        "bsdcat-3.5.2-5.oe2203.x86_64.rpm",
        "libarchive-3.5.2-5.oe2203.x86_64.rpm",
        "libarchive-debugsource-3.5.2-5.oe2203.x86_64.rpm"
    ]
}