FreeBSD : clamav -- heap overflow vulnerability (342d2e48-26db-11db-9275-000475abc56f)

high Nessus Plugin ID 22198

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

Clamav team reports :

A heap overflow vulnerability was discovered in libclamav which could cause a denial of service or allow the execution of arbitrary code.

The problem is specifically located in the PE file rebuild function used by the UPX unpacker.

Relevant code from libclamav/upx.c :

memcpy(dst, newbuf, foffset); *dsize = foffset; free(newbuf);

cli_dbgmsg('UPX: PE structure rebuilt from compressed file\n'); return 1;

Due to improper validation it is possible to overflow the above memcpy() beyond the allocated memory block.

Solution

Update the affected packages.

See Also

http://www.clamav.net/security/0.88.4.html

http://www.nessus.org/u?3f9f09ac

Plugin Details

Severity: High

ID: 22198

File Name: freebsd_pkg_342d2e4826db11db9275000475abc56f.nasl

Version: 1.12

Type: local

Published: 8/10/2006

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.6

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:clamav, p-cpe:/a:freebsd:freebsd:clamav-devel, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 8/8/2006

Vulnerability Publication Date: 8/7/2006

Reference Information

CVE: CVE-2006-4018