CVE-2022-36227
libarchive: NULL pointer dereference in archive_write.c
Einstufung nach Quelle
Trivys eigenes Label ist CRITICAL. Kritisch laut NVD, CBL-Mariner, Julia, Photon OS. Niedriger laut Red Hat (niedrig), AlmaLinux (niedrig), Amazon (niedrig), Oracle (niedrig), Rocky Linux (niedrig), Ubuntu (niedrig).
Beschreibung
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."
Betroffene Pakete und behobene Versionen
| Quelle | Paket | Behoben in |
|---|---|---|
| CBL-Mariner 1.0 | libarchive | 0:3.6.1-2.cm1 |
| CBL-Mariner 2.0 | libarchive | 0:3.6.1-2.cm2 |
| julia::Julia Ecosystem Security Advisories | LibArchive_jll | 3.7.4+0 |
| Photon OS 3.0 | libarchive | 3.3.3-9.ph3 |
| Photon OS 4.0 | libarchive, libarchive-devel | 3.4.3-8.ph4 |
| Photon OS 5.0 | libarchive, libarchive-devel | 3.7.1-1.ph5 |
| alma 8 | bsdtar, libarchive, libarchive-devel | 3.3.3-5.el8 |
| alma 9 | bsdtar, libarchive, libarchive-devel | 3.5.3-4.el9 |
| alpine 3.14 | libarchive | 3.5.3-r1 |
| alpine 3.15 | libarchive | 3.6.1-r1 |
| alpine 3.16 | libarchive | 3.6.1-r1 |
| alpine 3.17 | libarchive | 3.6.1-r2 |
Alle 84 Einträge aus 46 Quellen zeigen
| Quelle | Paket | Behoben in |
|---|---|---|
| CBL-Mariner 1.0 | libarchive | 0:3.6.1-2.cm1 |
| CBL-Mariner 2.0 | libarchive | 0:3.6.1-2.cm2 |
| julia::Julia Ecosystem Security Advisories | LibArchive_jll | 3.7.4+0 |
| Photon OS 3.0 | libarchive | 3.3.3-9.ph3 |
| Photon OS 4.0 | libarchive | 3.4.3-8.ph4 |
| Photon OS 4.0 | libarchive-devel | 3.4.3-8.ph4 |
| Photon OS 5.0 | libarchive | 3.7.1-1.ph5 |
| Photon OS 5.0 | libarchive-devel | 3.7.1-1.ph5 |
| alma 8 | bsdtar | 3.3.3-5.el8 |
| alma 8 | libarchive | 3.3.3-5.el8 |
| alma 8 | libarchive-devel | 3.3.3-5.el8 |
| alma 9 | bsdtar | 3.5.3-4.el9 |
| alma 9 | libarchive | 3.5.3-4.el9 |
| alma 9 | libarchive-devel | 3.5.3-4.el9 |
| alpine 3.14 | libarchive | 3.5.3-r1 |
| alpine 3.15 | libarchive | 3.6.1-r1 |
| alpine 3.16 | libarchive | 3.6.1-r1 |
| alpine 3.17 | libarchive | 3.6.1-r2 |
| alpine 3.18 | libarchive | 3.6.1-r2 |
| alpine 3.19 | libarchive | 3.6.1-r2 |
| alpine 3.20 | libarchive | 3.6.1-r2 |
| alpine 3.21 | libarchive | 3.6.1-r2 |
| alpine 3.22 | libarchive | 3.6.1-r2 |
| alpine 3.23 | libarchive | 3.6.1-r2 |
| alpine 3.24 | libarchive | 3.6.1-r2 |
| alpine edge | libarchive | 3.6.1-r2 |
| amazon linux 2 | bsdcpio | 3.1.2-14.amzn2.0.2 |
| amazon linux 2 | bsdtar | 3.1.2-14.amzn2.0.2 |
| amazon linux 2 | libarchive | 3.1.2-14.amzn2.0.2 |
| amazon linux 2 | libarchive-debuginfo | 3.1.2-14.amzn2.0.2 |
| amazon linux 2 | libarchive-devel | 3.1.2-14.amzn2.0.2 |
| amazon linux 2023 | bsdcat | 3.5.3-2.amzn2023.0.3 |
| amazon linux 2023 | bsdcat-debuginfo | 3.5.3-2.amzn2023.0.3 |
| amazon linux 2023 | bsdcpio | 3.5.3-2.amzn2023.0.3 |
| amazon linux 2023 | bsdcpio-debuginfo | 3.5.3-2.amzn2023.0.3 |
| amazon linux 2023 | bsdtar | 3.5.3-2.amzn2023.0.3 |
| amazon linux 2023 | bsdtar-debuginfo | 3.5.3-2.amzn2023.0.3 |
| amazon linux 2023 | libarchive | 3.5.3-2.amzn2023.0.3 |
| amazon linux 2023 | libarchive-debuginfo | 3.5.3-2.amzn2023.0.3 |
| amazon linux 2023 | libarchive-debugsource | 3.5.3-2.amzn2023.0.3 |
| amazon linux 2023 | libarchive-devel | 3.5.3-2.amzn2023.0.3 |
| chainguard | libarchive | 3.6.1-r2 |
| conan::GitLab Advisory Database Community | libarchive | 3.6.2 |
| debian 10 | libarchive | 3.3.3-4+deb10u3 |
| debian 11 | libarchive | 3.4.3-2+deb11u2 |
| debian 12 | libarchive | 3.6.2-1 |
| debian 13 | libarchive | 3.6.2-1 |
| debian 14 | libarchive | 3.6.2-1 |
| echo | libarchive | 3.6.2-1 |
| Oracle Linux 8 | bsdtar | 3.3.3-5.el8 |
| Oracle Linux 8 | libarchive | 3.3.3-5.el8 |
| Oracle Linux 8 | libarchive-devel | 3.3.3-5.el8 |
| Oracle Linux 9 | bsdtar | 3.5.3-4.el9 |
| Oracle Linux 9 | libarchive | 3.5.3-4.el9 |
| Oracle Linux 9 | libarchive-devel | 3.5.3-4.el9 |
| rapidfort amazon linux 2023 | bsdcat | 3.5.3-2.amzn2023.0.3 |
| rapidfort amazon linux 2023 | bsdcpio | 3.5.3-2.amzn2023.0.3 |
| rapidfort amazon linux 2023 | bsdtar | 3.5.3-2.amzn2023.0.3 |
| rapidfort amazon linux 2023 | libarchive | 0:3.5.3-2.amzn2023.0.3 |
| rapidfort amazon linux 2023 | libarchive-devel | 3.5.3-2.amzn2023.0.3 |
| rapidfort amazon linux 2023 | rf-bsdcat | 3.5.3-2.amzn2023.0.3 |
| rapidfort amazon linux 2023 | rf-bsdcpio | 3.5.3-2.amzn2023.0.3 |
| rapidfort amazon linux 2023 | rf-bsdtar | 3.5.3-2.amzn2023.0.3 |
| rapidfort amazon linux 2023 | rf-libarchive | 0:3.5.3-2.amzn2023.0.3 |
| rapidfort amazon linux 2023 | rf-libarchive-devel | 3.5.3-2.amzn2023.0.3 |
| rapidfort Oracle Linux 9 | bsdtar | 0:3.5.3-4.el9 |
| rapidfort Oracle Linux 9 | libarchive | 0:3.5.3-4.el9 |
| Red Hat | bsdcpio | kein Fix angegeben |
| Red Hat | bsdtar | kein Fix angegeben |
| Red Hat | libarchive | kein Fix angegeben |
| Red Hat | libarchive-devel | kein Fix angegeben |
| rocky 8 | bsdtar | 3.3.3-5.el8 |
| rocky 8 | libarchive | 3.3.3-5.el8 |
| root.io debian 11 | rootio-libarchive | 3.4.3-2+deb11u2 |
| root.io debian 12 | rootio-libarchive | 3.6.2-1 |
| seal Red Hat 8 | libarchive | 3.3.3-5.el8+sp999 |
| seal Red Hat 8 | seal-libarchive | 3.3.3-5.el8+sp999 |
| ubuntu 14.04-ESM | libarchive | 3.1.2-7ubuntu2.8+esm3 |
| ubuntu 16.04-ESM | libarchive | 3.1.2-11ubuntu0.16.04.8+esm1 |
| ubuntu 18.04-ESM | libarchive | 3.2.2-3.1ubuntu0.7+esm1 |
| ubuntu 20.04 | libarchive | 3.4.0-2ubuntu1.3 |
| ubuntu 20.04-ESM | libarchive | 3.4.0-2ubuntu1.3 |
| ubuntu 22.04 | libarchive | 3.6.0-1ubuntu1.2 |
| wolfi | libarchive | 3.6.1-r2 |
Referenzen
- https://access.redhat.com/errata/RHSA-2023:2532
- https://access.redhat.com/errata/RHSA-2023:3018
- https://access.redhat.com/security/cve/CVE-2022-36227
- https://bugs.gentoo.org/882521
- https://bugzilla.redhat.com/2144972
- https://bugzilla.redhat.com/show_bug.cgi?id=2144972
- https://creativecommons.org/licenses/by/4.0/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-36227
Alle 22 Referenzen
- https://errata.almalinux.org/9/ALSA-2023-2532.html
- https://errata.rockylinux.org/RLSA-2023:3018
- https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215
- https://github.com/libarchive/libarchive/issues/1754
- https://github.com/libarchive/libarchive/pull/1759
- https://linux.oracle.com/cve/CVE-2022-36227.html
- https://linux.oracle.com/errata/ELSA-2023-3018.html
- https://lists.debian.org/debian-lts-announce/2023/01/msg00034.html
- https://lists.debian.org/debian-lts-announce/2024/11/msg00007.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/V67OO2UUQAUJS3IK4JZPF6F3LUCBU6IS/
- https://nvd.nist.gov/vuln/detail/CVE-2022-36227
- https://security.gentoo.org/glsa/202309-14
- https://ubuntu.com/security/notices/USN-7070-1
- https://www.cve.org/CVERecord?id=CVE-2022-36227