Vulnerability · Published Nov 22, 2022 · Assigned by mitre

CVE-2022-36227

Critical 9.8

In plain English

A critical-severity security flaw in the bsdtar package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.5% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)2.5%top 15.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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."

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8bsdtar3.3.3-5.el8ALSA-2023:3018
AlmaLinux:9bsdtar3.5.3-4.el9ALSA-2023:2532
AlmaLinux:8libarchive3.3.3-5.el8ALSA-2023:3018
AlmaLinux:9libarchive3.5.3-4.el9ALSA-2023:2532
AlmaLinux:8libarchive-devel3.3.3-5.el8ALSA-2023:3018
AlmaLinux:9libarchive-devel3.5.3-4.el9ALSA-2023:2532
Alpine:v3.20libarchive3.6.1-r2ALPINE-CVE-2022-36227
Alpine:v3.21libarchive3.6.1-r2ALPINE-CVE-2022-36227
Alpine:v3.22libarchive3.6.1-r2ALPINE-CVE-2022-36227
Alpine:v3.23libarchive3.6.1-r2ALPINE-CVE-2022-36227
Alpine:v3.24libarchive3.6.1-r2ALPINE-CVE-2022-36227
Debian:12libarchive3.6.2-1DEBIAN-CVE-2022-36227
Debian:13libarchive3.6.2-1DEBIAN-CVE-2022-36227
Debian:14libarchive3.6.2-1DEBIAN-CVE-2022-36227
Rocky Linux:8libarchive0:3.3.3-5.el8RLSA-2023:3018
Ubuntu:22.04:LTSlibarchive3.6.0-1ubuntu1.2UBUNTU-CVE-2022-36227
Ubuntu:22.04:LTSlibarchive3.6.0-1ubuntu1.2USN-7070-1
Ubuntu:24.04:LTSlibarchive3.7.2-2ubuntu0.2USN-7070-1

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References