GLSA-200705-25 : file: Integer overflow

medium Nessus Plugin ID 25384

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200705-25 (file: Integer overflow)

Colin Percival from FreeBSD reported that the previous fix for the file_printf() buffer overflow introduced a new integer overflow.
Impact :

A remote attacker could entice a user to run the file program on an overly large file (more than 1Gb) that would trigger an integer overflow on 32-bit systems, possibly leading to the execution of arbitrary code with the rights of the user running file.
Workaround :

There is no known workaround at this time.

Solution

Since file is a system package, all Gentoo users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=sys-apps/file-4.21'

See Also

https://security.gentoo.org/glsa/200705-25

Plugin Details

Severity: Medium

ID: 25384

File Name: gentoo_GLSA-200705-25.nasl

Version: 1.16

Type: local

Published: 6/4/2007

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.3

CVSS v2

Risk Factor: Medium

Base Score: 5.1

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:file, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list, Host/Gentoo/arch

Patch Publication Date: 5/31/2007

Vulnerability Publication Date: 5/23/2007

Reference Information

CVE: CVE-2007-2799

CWE: 189

GLSA: 200705-25