NULL pointer dereference in ClamAV - CVE-2022-20796

 

NULL pointer dereference in ClamAV - CVE-2022-20796

Published: May 4, 2022


Vulnerability identifier: #VU62801
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-20796
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference error in the scan verdict cache check. A remote attacker can pass specially crafted data to the application and perform a denial of service (DoS) attack.


Affected software

ClamAV
Amazon Linux AMI
Gentoo Linux
SUSE Manager Server
SUSE Manager Proxy
Fedora
SUSE Linux Enterprise Server
Ubuntu
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise High Performance Computing
openSUSE Leap
clamav (Ubuntu package)
clamav
clamav-debuginfo
clamav-debugsource
libfreshclam2-debuginfo
libfreshclam2
libclamav9-debuginfo
libclamav9
clamav-devel
app-antivirus/clamav

How to mitigate CVE-2022-20796

Install updates from vendor's website.

ClamAV - addressed in versions 0.103.6, 0.104.3
clamav (Ubuntu package) - addressed in versions 0.103.6+dfsg0ubuntu0.16.04.1+esm1, 0.103.6+dfsg-0ubuntu0.18.04.1, 0.103.6+dfsg-0ubuntu0.20.04.1, 0.103.6+dfsg-0ubuntu0.21.10.1, 0.103.6+dfsg-0ubuntu0.22.04.1
clamav - addressed in versions 0.103.6-1.el7, 0.103.6-1.el8, 0.103.6-1.el9, 0.103.6-1.fc34, 0.103.6-1.fc35, 0.103.6-1.fc36
clamav - addressed in versions 0.103.6-1.49, 0.103.7-1
clamav-debuginfo - addressed in versions 0.103.6-3.18.1, 0.103.6-150000.3.38.1
clamav-debugsource - addressed in versions 0.103.6-3.18.1, 0.103.6-150000.3.38.1
clamav - addressed in versions 0.103.6-3.18.1, 0.103.6-150000.3.38.1
libfreshclam2-debuginfo - update to 0.103.6-150000.3.38.1
libfreshclam2 - update to 0.103.6-150000.3.38.1
libclamav9-debuginfo - update to 0.103.6-150000.3.38.1
libclamav9 - update to 0.103.6-150000.3.38.1
clamav-devel - update to 0.103.6-150000.3.38.1
app-antivirus/clamav - update to 0.103.7

External References

Related Security Bulletins