Memory leak in ClamAV - CVE-2022-20785

 

Memory leak in ClamAV - CVE-2022-20785

Published: May 4, 2022


Vulnerability identifier: #VU62798
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-20785
CWE-ID: CWE-401
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform DoS attack on the target system.

The vulnerability exists due memory leak when parsing HTML files. A remote attacker can pass specially crafted HTML file to the antivirus software, trigger memory leak and perform denial of service attack.


Affected software

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

How to mitigate CVE-2022-20785

Install updates from vendor's website.

ClamAV - addressed in versions 0.103.6, 0.104.3
SecurID Authentication Manager - update to 8.7 Patch 1
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 - update to 0.103.6-3
clamav-filesystem - update to 0.103.6-3
clamav-data - update to 0.103.6-3
clamd - update to 0.103.6-3
clamav-update - update to 0.103.6-3
clamav-milter - update to 0.103.6-3
clamav-help - update to 0.103.6-3
clamav-devel - update to 0.103.6-3
clamav-debugsource - update to 0.103.6-3
clamav-debuginfo - update to 0.103.6-3
clamav-debugsource - addressed in versions 0.103.6-3.18.1, 0.103.6-150000.3.38.1
clamav-debuginfo - 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