Skip to content
OpenAdvisories
Unscored CVE-2022-36227 EUVD-2022-38946GHSA-gpgf-w78r-4pvj

In libarchive before 3.6.2, the software does not check for an error after calling calloc function that can return with a NULL pointer if t…

Published Nov 22, 2022 · Updated Oct 8, 2026 · Assigned by mitre

Description

In libarchive before 3.6.2, 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."

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libarchive 3.6.2-1 —
Debian 13 libarchive 3.6.2-1 —
Debian 12 libarchive 3.6.2-1 —
Debian 11 libarchive 3.4.3-2+deb11u2 DLA-3950-1
Debian 10 libarchive 3.3.3-4+deb10u3 DLA-3294-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS libarchive 3.7.2-2ubuntu0.2 USN-7070-1
Ubuntu 22.04 LTS libarchive 3.6.0-1ubuntu1.2 USN-7070-1
Ubuntu 20.04 LTS libarchive 3.4.0-2ubuntu1.3 USN-7070-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libarchive 3.2.2-3.1ubuntu0.7+esm1 USN-7070-1
Ubuntu Pro 16.04 LTS libarchive 3.1.2-11ubuntu0.16.04.8+esm1 USN-7070-1
Ubuntu Pro 14.04 LTS libarchive 3.1.2-7ubuntu2.8+esm3 USN-7070-1
ReleasePackageFixed inAdvisory
RHEL 9 bsdtar +2 3.5.3-4.el9 RHSA-2023:2532
RHEL 8 bsdtar +2 3.3.3-5.el8 RHSA-2023:3018
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.6 EUS bsdtar +2 3.3.3-4.el8_6 RHSA-2024:0146

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 bsdtar +2 3.5.3-4.el9 ALSA-2023:2532
AlmaLinux 8 bsdtar +2 3.3.3-5.el8 ALSA-2023:3018

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libarchive 3.3.3-5.el8 RLSA-2023:3018
ReleasePackageFixed inAdvisory
SLES 15 SP4 libarchive 3.5.1-150400.3.12.1 SUSE-SU-2022:4209-1
SLES 15 SP3 libarchive 3.4.2-150200.4.15.1 SUSE-SU-2022:4202-1
SLES 12 SP5 libarchive 3.3.3-32.8.1 SUSE-SU-2022:4296-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 libarchive 3.3.3-32.8.1 SUSE-SU-2022:4296-1
SLE Micro 5.3 libarchive 3.5.1-150400.3.12.1 SUSE-SU-2022:4209-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed bsdtar 3.6.2-1.1 openSUSE-SU-2024:12588-1
openSUSE Leap 15.4 libarchive 3.5.1-150400.3.12.1 SUSE-SU-2022:4209-1
openSUSE Leap 15.3 libarchive 3.4.2-150200.4.15.1 SUSE-SU-2022:4202-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 libarchive 3.5.1-150400.3.12.1 SUSE-SU-2022:4209-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libarchive 3.6.1-r2 —
Alpine v3.23 libarchive 3.6.1-r2 —
Alpine v3.22 libarchive 3.6.1-r2 —
Alpine v3.21 libarchive 3.6.1-r2 —
Alpine v3.20 libarchive 3.6.1-r2 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libarchive 3.6.1-r2 —
Alpine v3.18 libarchive 3.6.1-r2 —
Alpine v3.17 libarchive 3.6.1-r2 —
Alpine v3.16 libarchive 3.6.1-r1 —
Alpine v3.15 libarchive 3.6.1-r1 —
Alpine v3.14 libarchive 3.5.3-r1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 bsdcat +4 3.5.3-2.amzn2023.0.3 ALAS2023-2023-246
Amazon Linux 2 bsdtar +3 3.1.2-14.amzn2.0.2 ALAS2-2023-2364

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) libarchive 3.6.1-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 bsdtar +2 3.5.3-4.el9 ELSA-2023-2532
Oracle Linux 8 bsdtar +2 3.3.3-5.el8 ELSA-2023-3018

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling libarchive 3.6.1-r2 —

Advisories 25

References