5073 : Berkeley FFS Large File Integer Overflow
Printer | http://osvdb.org/5073 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
9 831 over 8 years ago over 4 years ago 0 times 90%

Timeline

Disclosure Date
2002-08-05

Keywords

Fast File System

Description

A local overflow exists in Berkley Fast File System. FFS fails to properly calculate file sizes resulting in a integer overflow. With a specially created file larger than what the VM system can handle, an attacker may gain access to arbitrary filesystem blocks, reading or corrupting data, which may potentially lead to arbitrary code execution, resulting in a loss of integrity, and/or availability.

Classification

Location: Local Access Required
Attack Type: Denial of Service, Input Manipulation
Impact: Loss of Integrity, Loss of Availability
Exploit: Exploit Unknown
Disclosure: OSVDB Verified

Solution

Upgrade to CVS branches RELENG_4, RELENG_4_6, RELENG_4_5, or RELENG_4_4, or apply vendor suplied patch, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by implementing the following workaround provided by FreeBSD Project:

On filesystems with 16k blocks, the bug cannot be exploited when a process has a file size resource limit (RLIMIT_FSIZE) of 63 MB or less. This can be most easily accomplished by modifying /etc/login.conf so that the appropriate login classes (typically `default') contain a field entry such as the following:

:filesize=63m:\

After editing /etc/login.conf, the corresponding capability database must be rebuilt with the following command:

# cap_mkdb /etc/login.conf

Products

FreeBSD Project
Watch-list
FreeBSD
Watch-list
4.0
4.1
4.1.1
4.1.1-RELEASE
4.1.1-STABLE
4.2
4.2 -RELEASE
4.2 -STABLE
4.3
4.3 -RELEASE
4.3 -RELENG
4.3 -STABLE
4.4
4.4 -RELENG
4.4 -STABLE
4.5
4.5 -RELEASE
4.5 -STABLE
4.6
4.6 -STABLE
4.6-RELEASE

References

Credit

  • Matt Dillon - dillonFreeBSD.org - FreeBSD
  • Ian Dowse - iedowseFreeBSD.org - FreeBSD
  • Tor Egge - teggeFreeBSD.org - FreeBSD

CVSSv2 Score

CVSSv2 Base Score = 4.6
Source: nvd.nist.gov | Generated: 2003-12-31 | Disagree?

Access_vector_0 Access_complexity_2 Authentication_2 Confidentiality_impact_1 Integrity_impact_1 Availability_impact_1

Blogs

This section lists the latest news and blogs found via the daylife API (and for older items, the technorati API), which mention or otherwise discuss this vulnerability.

None found at this time

Comments

No Comments.

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2012 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use