Vulnerabilities > CVE-2008-3531 - Buffer Errors vulnerability in Freebsd 7.0/7.1

047910
CVSS 6.9 - MEDIUM
Attack vector
LOCAL
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
local
freebsd
CWE-119
exploit available

Summary

Stack-based buffer overflow in sys/kern/vfs_mount.c in the kernel in FreeBSD 7.0 and 7.1, when vfs.usermount is enabled, allows local users to gain privileges via a crafted (1) mount or (2) nmount system call, related to copying of "user defined data" in "certain error conditions."

Vulnerable Configurations

Part Description Count
OS
Freebsd
2

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

descriptionFreeBSD 7.0/7.1 vfs.usermount Local Privilege Escalation Exploit. CVE-2008-3531. Local exploit for freebsd platform
idEDB-ID:9082
last seen2016-02-01
modified2009-07-09
published2009-07-09
reporterPatroklos Argyroudis
sourcehttps://www.exploit-db.com/download/9082/
titleFreeBSD 7.0/7.1 vfs.usermount - Local Privilege Escalation Exploit

Seebug

  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:11781
    last seen2017-11-19
    modified2009-07-10
    published2009-07-10
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-11781
    titleFreeBSD 7.0/7.1 vfs.usermount Local Privilege Escalation Exploit
  • bulletinFamilyexploit
    descriptionBUGTRAQ ID: 31002 CVE ID:CVE-2008-3531 CNCVE ID:CNCVE-20083531 FreeBSD是一款开放源代码的操作系统。 FreeBSD处理mount(2)和nmount(2)系统调用存在问题,本地攻击者可以利用漏洞以内核进程权限执行任意指令。 各种用户定义的输入如挂接点,设备,挂接选项会作为参数传递给nmount(2)到内核,在部分错误条件下,用户定义的数据会没有充分边界检查的情况下拷贝到存储在内核中的堆栈缓冲区中。如果系统配置成允许非特权用户挂接文件系统,可导致这些非特权用户通过设置vfs.usermount sysctl(8)变量利用这些系统调用,以内核进程权限执行任意指令。 FreeBSD FreeBSD 7.0-STABLE FreeBSD FreeBSD 7.0-RELEASE 厂商解决方案 供应商提供如下补丁及解决方法: 1)更新受影响系统到7-STABLE,或者到更正日期之后的RELENG_7_0,安全版本。 2)为当前系统打补丁: 如下补丁经验证可应用于FreeBSD 7.0系统。 a)从如下位置下载相关补丁,并使用PGP工具验证附带的PGP签名: # fetch <a href=http://security.FreeBSD.org/patches/SA-08:08/nmount.patch target=_blank>http://security.FreeBSD.org/patches/SA-08:08/nmount.patch</a> # fetch <a href=http://security.FreeBSD.org/patches/SA-08:08/nmount.patch.asc target=_blank>http://security.FreeBSD.org/patches/SA-08:08/nmount.patch.asc</a> b)应用补丁 # cd /usr/src # patch &lt; /path/to/patch c)如&lt;<a href=http://www.freebsd.org/handbook/kernelconfig.html&gt; target=_blank>http://www.freebsd.org/handbook/kernelconfig.html&gt;</a> 所述重新编译操作系统并重启系统。
    idSSV:3982
    last seen2017-11-19
    modified2008-09-10
    published2008-09-10
    reporterRoot
    titleFreeBSD 'mount(2)'和'nmount(2)'多个栈缓冲区溢出漏洞