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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.6 EUS | bsdtar +2 | 3.3.3-4.el8_6 | RHSA-2024:0146 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libarchive | 3.3.3-5.el8 | RLSA-2023:3018 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.3 | libarchive | 3.5.1-150400.3.12.1 | SUSE-SU-2022:4209-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | libarchive | 3.6.1-2 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | libarchive | 3.6.1-r2 | — |
Advisories 25
- ALSA-2023:2532 Low: libarchive security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2023:3018 Low: libarchive security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2023-1350 Splunk Splunk Enterprise: Mehrere Schwachstellen in Komponenten von Drittanbietern BSI CERT-Bund (WID) · Jul 1, 2026
- USN-7070-1 libarchive vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- RHSA-2023:2532 Red Hat Security Advisory: libarchive security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2023:3018 Red Hat Security Advisory: libarchive security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2024:0146 Red Hat Security Advisory: libarchive security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RLSA-2023:3018 Low: libarchive security update Rocky Linux Security Advisories · Mar 20, 2026
- WID-SEC-2022-2143 libarchive: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Mar 19, 2026
- DLA-3950-1 libarchive - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3294-1 libarchive - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2022:4296-1 Security update for libarchive SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:12588-1 bsdtar-3.6.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4209-1 Security update for libarchive SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4202-1 Security update for libarchive SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-2229 Splunk Splunk Enterprise: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 18, 2025
- WID-SEC-2023-1542 Red Hat OpenShift: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 18, 2025
- WID-SEC-2023-1424 Xerox FreeFlow Print Server für Solaris: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 6, 2025
- WID-SEC-2024-1307 Red Hat OpenShift Service Mesh Containers: Mehrere Schwachstellen BSI CERT-Bund (WID) · Feb 5, 2025
- ICSA-24-046-11 Siemens SCALANCE XCM-/XRM-300 CISA ICS & IT advisories · Feb 13, 2024
- SSA-806742 SSA-806742: Multiple Vulnerabilities in SCALANCE XCM-/XRM-300 before V2.4 Siemens ProductCERT · Feb 13, 2024
- ALAS2-2023-2364 Low: libarchive security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 4, 2023
- ALAS2023-2023-246 Low: libarchive security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jul 20, 2023
- ELSA-2023-3018 Low: libarchive security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 24, 2023
- ELSA-2023-2532 Low: libarchive security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 15, 2023
References
- https://github.com/libarchive/libarchive/issues/1754
- https://bugs.gentoo.org/882521
- https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215
- FEDORA-2022-e15be0091f vendor-advisory
- [debian-lts-announce] 20230130 [SECURITY] [DLA 3294-1] libarchive security update mailing-list
- GLSA-202309-14 vendor-advisory