FreeBSD : FreeBSD -- heap overflow in file(1) (8e01ab5b-0949-11dc-8163-000e0c2e438a)

high Nessus Plugin ID 25359

Synopsis

The remote FreeBSD host is missing a security-related update.

Description

When writing data into a buffer in the file_printf function, the length of the unused portion of the buffer is not correctly tracked, resulting in a buffer overflow when processing certain files. Impact :
An attacker who can cause file(1) to be run on a maliciously constructed input can cause file(1) to crash. It may be possible for such an attacker to execute arbitrary code with the privileges of the user running file(1).

The above also applies to any other applications using the libmagic(3) library. Workaround : No workaround is available, but systems where file(1) and other libmagic(3)-using applications are never run on untrusted input are not vulnerable.

Solution

Update the affected package.

See Also

http://www.nessus.org/u?357ce7be

Plugin Details

Severity: High

ID: 25359

File Name: freebsd_pkg_8e01ab5b094911dc8163000e0c2e438a.nasl

Version: 1.14

Type: local

Published: 6/1/2007

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 9.3

Temporal Score: 7.3

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

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:file, cpe:/o:freebsd:freebsd

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/23/2007

Vulnerability Publication Date: 5/23/2007

Reference Information

CVE: CVE-2007-1536

BID: 23021

FreeBSD: SA-07:04.file