CVE-2022-36227: Null Pointer Dereference

Published Nov 22, 2022
·
Updated

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 or, in some cases, even arbitrary code execution.

Upstream patch: https://github.com/libarchive/libarchive/commit/fd180c36036df7181a64931264732a10ad8cd024

Other sources

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

— MITRE

Affected Software

25 affected componentsFixes available
Libarchive libarchive>=3.0.0<3.6.2
Debian Debian Linux=10.0
Fedoraproject Fedora=37
F5 BIG-IP>=17.1.0<=17.1.2
17.5.017.1.2.2
F5 BIG-IP>=16.1.0<=16.1.5
F5 BIG-IP>=15.1.0<=15.1.10
F5 BIG-IQ Centralized Management>=8.2.0<=8.3.0
8.4.0
F5 Traffix SDC=5.2.0
Splunk Universal Forwarder>=8.2.0<8.2.12
Splunk Universal Forwarder>=9.0.0<9.0.6
Splunk Universal Forwarder=9.1.0
alpine/libarchive>=3.0.0<3.5.3-r1
3.5.3-r1
alpine/libarchive>=3.0.0<3.6.1-r1
3.6.1-r1
alpine/libarchive>=3.0.0<3.6.1-r1
3.6.1-r1
alpine/libarchive>=3.0.0<3.6.1-r2
3.6.1-r2
alpine/libarchive>=3.0.0<3.6.1-r2
3.6.1-r2
alpine/libarchive>=3.0.0<3.6.1-r2
3.6.1-r2
alpine/libarchive>=3.0.0<3.6.1-r2
3.6.1-r2
alpine/libarchive>=3.0.0<3.6.1-r2
3.6.1-r2
alpine/libarchive>=3.0.0<3.6.1-r2
3.6.1-r2
alpine/libarchive>=3.0.0<3.6.1-r2
3.6.1-r2
debian/libarchive<3.6.2-1
3.6.2-1
debian/libarchive<3.6.2-1
3.6.2-1
debian/libarchive<3.6.2-1
3.6.2-1
debian/libarchive
3.3.3-4+deb10u33.4.3-2+deb11u23.6.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade F5 BIG-IP and BIG-IQ Centralized Management to a version that resolves this vulnerability.

    Fixed in 17.5.017.1.2.2
  2. Upgrade

    Upgrade F5 BIG-IP and BIG-IQ Centralized Management to a version that resolves this vulnerability.

    Fixed in 8.4.0
  3. Upgrade

    Upgrade alpine/libarchive to a version that resolves this vulnerability.

    Fixed in 3.5.3-r1
  4. Upgrade

    Upgrade alpine/libarchive to a version that resolves this vulnerability.

    Fixed in 3.6.1-r1
  5. Upgrade

    Upgrade alpine/libarchive to a version that resolves this vulnerability.

    Fixed in 3.6.1-r2
  6. Upgrade

    Upgrade debian/libarchive to a version that resolves this vulnerability.

    Fixed in 3.6.2-1
  7. Upgrade

    Upgrade debian/libarchive to a version that resolves this vulnerability.

    Fixed in 3.3.3-4+deb10u3Fixed in 3.4.3-2+deb11u2Fixed in 3.6.2-1
  8. Upgrade

    Upgrade libarchive/libarchive to a version that resolves this vulnerability.

    Fixed in 3.6.2

Event History

Nov 22, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
02:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:15 AM
DescriptionAffected Software
Data Sourced
via Red Hat·08:01 PM
DescriptionSeverityAffected Software
Mar 27, 2024
Data Sourced
via NVD·04:04 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·04:04 PM
Affected Software
Sep 5, 2024
Advisory Published
via F5·08:51 PM
Data Sourced
via F5·08:51 PM
DescriptionSeverityWeaknessAffected Software
Sep 6, 2024
Advisory Published
via F5·03:31 AM
Updated
via F5·03:31 AM
SeverityAffected Software
Mar 4, 2025
Updated
via F5·04:58 AM
Affected Software
Mar 26, 2025
Updated
via F5·07:59 PM
Affected Software
Apr 21, 2025
Updated
via F5·07:12 PM
Affected Software
Apr 24, 2025
Updated
via F5·09:58 PM
Affected Software
Nov 3, 2025
Updated
via NVD·10:15 PM
RemedyAffected Software
Oct 8, 2026
Updated
via NVD·09:17 PM
RemedyAffected Software
Nov 3, 2026
Data Sourced
via OSV·08:00 AM
Severity

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-36227?

CVE-2022-36227 is a vulnerability in the libarchive software before version 3.6.2 that can result in a NULL pointer dereference.

2

How severe is CVE-2022-36227?

CVE-2022-36227 has a severity rating of 9.8 (critical).

3

Which software versions are affected by CVE-2022-36227?

Versions of libarchive before 3.6.2 are affected by CVE-2022-36227.

4

What is the CWE category for CVE-2022-36227?

CVE-2022-36227 is classified under CWE-476 (NULL Pointer Dereference).

5

Are there any references for CVE-2022-36227?

Yes, you can find references for CVE-2022-36227 at the following links: [Link 1](https://bugs.gentoo.org/882521), [Link 2](https://github.com/libarchive/libarchive/blob/v3.0.0a/libarchive/archive_write.c#L215), [Link 3](https://github.com/libarchive/libarchive/issues/1754).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203