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

12 affected componentsFixes available
debian/libarchive<=3.4.3-2+deb11u1
3.6.2-1+deb12u13.7.4-1
Libarchive libarchive>=3.0.0<3.6.2
Debian Debian Linux=10.0
Fedoraproject Fedora=37
Splunk Universal Forwarder>=8.2.0<8.2.12
Splunk Universal Forwarder>=9.0.0<9.0.6
Splunk Universal Forwarder=9.1.0
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

Event History

Nov 22, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·02:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·08:01 PM
DescriptionSeverityAffected Software
Sep 5, 2024
Advisory Published
via F5·08:51 PM
Oct 16, 2024
Data Sourced
via Ubuntu·06:29 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·06:30 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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