CVE-2002-2092
CVSS3.7
发布时间 :2002-12-31 00:00:00
修订时间 :2008-09-05 16:32:18
NMCO    

[原文]Race condition in exec in OpenBSD 4.0 and earlier, NetBSD 1.5.2 and earlier, and FreeBSD 4.4 and earlier allows local users to gain privileges by attaching a debugger to a process before the kernel has determined that the process is setuid or setgid.


[CNNVD]BSD内核exec()系统调用竞争条件漏洞(CNNVD-200212-193)

        
        NetBSD内核在exec()系统调用的实现中存在竞争条件漏洞,允许本地攻击者提升权限。
        exec()系统调用用于将可执行文件二进制映像加载到进程空间中。当进程调用exec()来加载一个setuid的二进制程序时,存在一个竞争条件漏洞。在被加载程序激活前的一个很短的时间段内,攻击者可能获取对它的ptrace控制,然后攻击者就可以修改该setuid进程的地址空间,从而提升自己的权限。如果系统中存在setuid root程序,攻击者就可能获取本地root权限。
        其他BSD操作系统可能存在同样的安全问题。
        

- CVSS (基础分值)

CVSS分值: 3.7 [轻微(LOW)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: HIGH [漏洞利用存在特定的访问条件]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/o:freebsd:freebsd:2.2.5FreeBSD 2.2.5
cpe:/o:openbsd:openbsd:3.0OpenBSD 3.0
cpe:/o:freebsd:freebsd:4.3:releng
cpe:/o:freebsd:freebsd:3.5.1FreeBSD 3.5.1
cpe:/o:netbsd:netbsd:1.5NetBSD 1.5
cpe:/o:netbsd:netbsd:1.3.2NetBSD 1.3.2
cpe:/o:freebsd:freebsd:2.2.4FreeBSD 2.2.4
cpe:/o:freebsd:freebsd:3.2FreeBSD 3.2
cpe:/o:openbsd:openbsd:2.9OpenBSD 2.9
cpe:/o:freebsd:freebsd:2.1.0FreeBSD 2.1.0
cpe:/o:openbsd:openbsd:2.6OpenBSD 2.6
cpe:/o:freebsd:freebsd:4.1.1:stable
cpe:/o:freebsd:freebsd:3.5FreeBSD 3.5
cpe:/o:freebsd:freebsd:2.2FreeBSD 2.2
cpe:/o:netbsd:netbsd:1.3NetBSD 1.3
cpe:/o:netbsd:netbsd:1.4NetBSD 1.4
cpe:/o:freebsd:freebsd:4.2FreeBSD 4.2
cpe:/o:freebsd:freebsd:4.1.1:release
cpe:/o:openbsd:openbsd:2.4OpenBSD 2.4
cpe:/o:freebsd:freebsd:2.2.6FreeBSD 2.2.6
cpe:/o:freebsd:freebsd:4.4:stable
cpe:/o:netbsd:netbsd:1.4.1NetBSD 1.4.1
cpe:/o:netbsd:netbsd:1.3.1NetBSD 1.3.1
cpe:/o:freebsd:freebsd:3.0FreeBSD 3.0
cpe:/o:freebsd:freebsd:2.2.3FreeBSD 2.2.3
cpe:/o:openbsd:openbsd:2.1OpenBSD 2.1
cpe:/o:freebsd:freebsd:2.0FreeBSD 2.0
cpe:/o:freebsd:freebsd:2.2.2FreeBSD 2.2.2
cpe:/o:freebsd:freebsd:4.3:stable
cpe:/o:freebsd:freebsd:4.2:stable
cpe:/o:freebsd:freebsd:4.0FreeBSD 4.0
cpe:/o:freebsd:freebsd:4.3:release
cpe:/o:openbsd:openbsd:2.0OpenBSD 2.0
cpe:/o:openbsd:openbsd:2.3OpenBSD 2.3
cpe:/o:netbsd:netbsd:1.5.2NetBSD 1.5.2
cpe:/o:freebsd:freebsd:3.4FreeBSD 3.4
cpe:/o:openbsd:openbsd:2.5OpenBSD 2.5
cpe:/o:netbsd:netbsd:1.5.1NetBSD 1.5.1
cpe:/o:openbsd:openbsd:2.7OpenBSD 2.7
cpe:/o:freebsd:freebsd:4.4:releng
cpe:/o:freebsd:freebsd:2.2.8FreeBSD 2.2.8
cpe:/o:netbsd:netbsd:1.4.2NetBSD 1.4.2
cpe:/o:freebsd:freebsd:3.1FreeBSD 3.1
cpe:/o:freebsd:freebsd:4.4FreeBSD 4.4
cpe:/o:openbsd:openbsd:2.2OpenBSD 2.2
cpe:/o:freebsd:freebsd:4.1FreeBSD 4.1
cpe:/o:netbsd:netbsd:1.3.3NetBSD 1.3.3
cpe:/o:freebsd:freebsd:4.3FreeBSD 4.3
cpe:/o:openbsd:openbsd:2.8OpenBSD 2.8
cpe:/o:freebsd:freebsd:4.1.1FreeBSD 4.1.1
cpe:/o:freebsd:freebsd:3.3FreeBSD 3.3
cpe:/o:netbsd:netbsd:1.4.3NetBSD 1.4.3

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-2092
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2002-2092
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200212-193
(官方数据源) CNNVD

- 其它链接及资源

http://xforce.iss.net/static/7945.php
(PATCH)  XF  bsd-exec-race-condition(7945)
http://www.securityfocus.com/bid/3891
(PATCH)  BID  3891
ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2002-001.txt.asc
(UNKNOWN)  NETBSD  NetBSD-SA2002-001
ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-02:08.exec.asc
(VENDOR_ADVISORY)  FREEBSD  FreeBSD-SA-02:08
http://www.osvdb.org/19475
(UNKNOWN)  OSVDB  19475

- 漏洞信息

BSD内核exec()系统调用竞争条件漏洞
低危 竞争条件
2002-12-31 00:00:00 2005-10-20 00:00:00
本地  
        
        NetBSD内核在exec()系统调用的实现中存在竞争条件漏洞,允许本地攻击者提升权限。
        exec()系统调用用于将可执行文件二进制映像加载到进程空间中。当进程调用exec()来加载一个setuid的二进制程序时,存在一个竞争条件漏洞。在被加载程序激活前的一个很短的时间段内,攻击者可能获取对它的ptrace控制,然后攻击者就可以修改该setuid进程的地址空间,从而提升自己的权限。如果系统中存在setuid root程序,攻击者就可能获取本地root权限。
        其他BSD操作系统可能存在同样的安全问题。
        

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 禁止任何不可信用户访问系统。
        厂商补丁:
        NetBSD
        ------
        NetBSD已经为此发布了一个安全公告(NetBSD-SA2002-001)以及相应补丁:
        NetBSD-SA2002-001:Close-on-exec, SUID and ptrace(2)
        链接:ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2002-001.txt.asc
        补丁下载:
        * NetBSD-current:
         正在运行NetBSD-current日期在2002-01-14之前的系统应该升级到2002-01-15或更新版本。
         您需要从netbsd-current CVS分支(aka HEAD)中进行升级您的内核代码:
         # cd src
         # cvs update -d -P sys/kern/kern_exec.c
         # cvs update -d -P sys/kern/sys_process.c
         # cvs update -d -P sys/sys/proc.h
         # cvs update -d -P sys/miscfs/procfs/procfs_ctl.c
         # cvs update -d -P sys/miscfs/procfs/procfs_mem.c
         # cvs update -d -P sys/miscfs/procfs/procfs_regs.c
         # cvs update -d -P sys/miscfs/procfs/procfs_vnops.c
        
         然后重建并安装新内核。
        * NetBSD 1.5, 1.5.1, 1.5.2:
        
         正在运行NetBSD 1.5-branch日期在2002-01-14之前的系统应该升级到2002-01-15或更新版本。
         您需要从netbsd-1-5 CVS分支(aka HEAD)中进行升级您的内核代码:
         # cd src
         # cvs update -d -P sys/kern/kern_exec.c
         # cvs update -d -P sys/kern/sys_process.c
         # cvs update -d -P sys/sys/proc.h
         # cvs update -d -P sys/miscfs/procfs/procfs_ctl.c
         # cvs update -d -P sys/miscfs/procfs/procfs_mem.c
         # cvs update -d -P sys/miscfs/procfs/procfs_regs.c
         # cvs update -d -P sys/miscfs/procfs/procfs_vnops.c
        
         然后重建并安装新内核。
        
         您也可以从下列地址获取补丁:
         ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2002-001-ptrace-1.5.patch
         然后安装补丁:
         # cd src
         # patch < /path/to/SA2002-001-ptrace-1.5.patch
         然后重建并安装新内核。
        * NetBSD 1.4, 1.4.1, 1.4.2, 1.4.3:
         您可以从下列地址获取补丁:
         ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2002-001-ptrace-1.4.patch
         然后安装补丁:
         # cd src
         # patch < /path/to/SA2002-001-ptrace-1.4.patch
         然后重建并安装新内核。
        注:关于重建内核,您可以参考下列链接:
        
        http://www.netbsd.org/Documentation/kernel/#how_to_build_a_kernel

- 漏洞信息

19475
Multiple BSD exec Race Condition Process Debugger Privilege Escalation
Local Access Required Other
Loss of Integrity

- 漏洞描述

Multiple BSD operating systems contain a flaw that may allow a malicious user to gain access to unauthorized privileges. The issue is triggered when a malicious user causes a process to exec a setuid binary, while gaining ptrace control over it by using a debugger. The control lasts only for a short period of time before the process is activated. During this window of time, the ptrace controller process can modify the address space of the controlled process and abuse its elevated privileges. This flaw may lead to a loss of integrity.

- 时间线

2002-01-16 Unknow
Unknow Unknow

- 解决方案

Upgrade to FreeBSD 4.4-STABLE, or the RELENG_4_3 or RELENG_4_4 security branch, dated after the respective correction date, as it has been reported to fix this vulnerability. In addition, FreeBSD has released patches to address this vulnerability. Upgrade to NetBSD 1.4.4 or higher or 1.5.3 or higher, as it has been reported to fix this vulnerability. In addition, NetBSD has released patches to address this vulnerability. Upgrade to OpenBSD 3.1 or higher, as it has been reported to fix this vulnerability. In addition, OpenBSD has released a patch to address this vulnerability.

- 相关参考

- 漏洞作者

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站