CVE-2005-1400
CVSS4.6
发布时间 :2005-05-06 00:00:00
修订时间 :2008-09-05 16:49:02
NMCOPS    

[原文]The i386_get_ldt system call in FreeBSD 4.7 to 4.11 and 5.x to 5.4 allows local users to access sensitive kernel memory via arguments with negative or very large values.


[CNNVD]FreeBSD i386_get_ldt本地Kernel内存泄露漏洞(CNNVD-200505-930)

        FreeBSD就是一种运行在Intel平台上,可以自由使用的Unix系统。
        FreeBSD系统的i386_get_ldt(2)系统调用存在缓冲区边界检查漏洞,可能导致内存信息泄露。
        i386_get_ldt(2)系统调用允许进程请求将部分本地描述符表从kernel拷贝到用户区,但对输入参数执行了不充分的验证。具体来说,就是负数或过大的值可能允许从kernel拷贝不合适的数据,这样就可能向用户进程泄漏kernel内存。
        

- CVSS (基础分值)

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

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

cpe:/o:freebsd:freebsd:5.1FreeBSD 5.1
cpe:/o:freebsd:freebsd:4.11FreeBSD 4.11
cpe:/o:freebsd:freebsd:5.4FreeBSD 5.4
cpe:/o:freebsd:freebsd:4.9FreeBSD 4.9
cpe:/o:freebsd:freebsd:5.3FreeBSD 5.3
cpe:/o:freebsd:freebsd:4.7FreeBSD 4.7
cpe:/o:freebsd:freebsd:4.8FreeBSD 4.8
cpe:/o:freebsd:freebsd:4.10FreeBSD 4.10
cpe:/o:freebsd:freebsd:5.2FreeBSD 5.2

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-05:07.ldt.asc
(VENDOR_ADVISORY)  FREEBSD  FreeBSD-SA-05:07

- 漏洞信息

FreeBSD i386_get_ldt本地Kernel内存泄露漏洞
中危 输入验证
2005-05-06 00:00:00 2005-10-20 00:00:00
本地  
        FreeBSD就是一种运行在Intel平台上,可以自由使用的Unix系统。
        FreeBSD系统的i386_get_ldt(2)系统调用存在缓冲区边界检查漏洞,可能导致内存信息泄露。
        i386_get_ldt(2)系统调用允许进程请求将部分本地描述符表从kernel拷贝到用户区,但对输入参数执行了不充分的验证。具体来说,就是负数或过大的值可能允许从kernel拷贝不合适的数据,这样就可能向用户进程泄漏kernel内存。
        

- 公告与补丁

        目前厂商已经发布了升级补丁以修复这个安全问题,补丁下载链接:
        ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-05:07.ldt.asc
        ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:07/ldt4.patch
        ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:07/ldt4.patch.asc
        ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:07/ldt5.patch
        ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:07/ldt5.patch.asc

- 漏洞信息 (F39101)

FreeBSD-SA-05-07.ldt (PacketStormID:F39101)
2005-08-07 00:00:00
 
advisory,kernel,local
freebsd
CVE-2005-1400
[点击下载]

FreeBSD Security Advisory FreeBSD-SA-05:07 - The i386_get_ldt(2) system call allows a process to request that a portion of its Local Descriptor Table be copied from the kernel into userland. The i386_get_ldt(2) syscall performs insufficient validation of its input arguments. In particular, negative or very large values may allow inappropriate data to be copied from the kernel.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=============================================================================
FreeBSD-SA-05:07.ldt                                        Security Advisory
                                                          The FreeBSD Project

Topic:          Local kernel memory disclosure in i386_get_ldt

Category:       core
Module:         sys_i386
Announced:      2005-05-06
Credits:        Christer Oberg
Affects:        All FreeBSD/i386 4.x releases since 4.7-RELEASE
                All FreeBSD/i386 5.x and FreeBSD/amd64 5.x releases
                prior to 5.4-RELEASE
Corrected:      2005-05-06 02:40:19 UTC (RELENG_5, 5.4-STABLE)
                2005-05-06 02:40:49 UTC (RELENG_5_4, 5.4-RELEASE)
                2005-05-06 02:40:32 UTC (RELENG_5_3, 5.3-RELEASE-p12)
                2005-05-06 02:39:35 UTC (RELENG_4, 4.11-STABLE)
                2005-05-06 02:40:05 UTC (RELENG_4_11, 4.11-RELEASE-p6)
                2005-05-06 02:39:52 UTC (RELENG_4_10, 4.10-RELEASE-p11)
CVE Name:       CAN-2005-1400

For general information regarding FreeBSD Security Advisories,
including descriptions of the fields above, security branches, and the
following sections, please visit
<URL:http://www.freebsd.org/security/>.

I.   Background

The i386_get_ldt(2) system call allows a process to request that a
portion of its Local Descriptor Table be copied from the kernel into
userland.

II.  Problem Description

The i386_get_ldt(2) syscall performs insufficient validation of its
input arguments.  In particular, negative or very large values may
allow inappropriate data to be copied from the kernel.

III. Impact

Kernel memory may be disclosed to the user process.  Such memory might
contain sensitive information, such as portions of the file cache or
terminal buffers.  This information might be directly useful, or it
might be leveraged to obtain elevated privileges in some way.  For
example, a terminal buffer might include a user-entered password.

IV.  Workaround

No workaround is known for i386 and amd64 systems; other platforms are
not affected by this issue.

V.   Solution

Perform one of the following:

1) Upgrade your vulnerable system to 4-STABLE or 5-STABLE, or to the
RELENG_5_3, RELENG_4_11, or RELENG_4_10 security branch dated after
the correction date.

2) To patch your present system:

The following patches have been verified to apply to FreeBSD 4.10,
4.11, and 5.3 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

[FreeBSD 4.x]
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:07/ldt4.patch
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:07/ldt4.patch.asc

[FreeBSD 5.x]
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:07/ldt5.patch
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:07/ldt5.patch.asc

b) Apply the patch.

# cd /usr/src
# patch < /path/to/patch

c) Recompile your kernel as described in
<URL:http://www.freebsd.org/handbook/kernelconfig.html> and reboot the
system.

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

Branch                                                           Revision
  Path
- -------------------------------------------------------------------------
RELENG_4
  src/sys/i386/i386/sys_machdep.c                                1.47.2.4
RELENG_4_11
  src/UPDATING                                              1.73.2.91.2.7
  src/sys/conf/newvers.sh                                  1.44.2.39.2.10
  src/sys/i386/i386/sys_machdep.c                            1.47.2.3.8.1
RELENG_4_10
  src/UPDATING                                             1.73.2.90.2.12
  src/sys/conf/newvers.sh                                  1.44.2.34.2.13
  src/sys/i386/i386/sys_machdep.c                            1.47.2.3.6.1
RELENG_5
  src/sys/i386/i386/sys_machdep.c                                1.92.2.3
RELENG_5_4
  src/UPDATING                                             1.342.2.24.2.6
  src/sys/i386/i386/sys_machdep.c                            1.92.2.1.2.1
RELENG_5_3
  src/UPDATING                                            1.342.2.13.2.15
  src/sys/conf/newvers.sh                                  1.62.2.15.2.17
  src/sys/i386/i386/sys_machdep.c                                1.92.4.1
- -------------------------------------------------------------------------

The latest revision of this advisory is available at
ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-05:07.ldt.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCetz/FdaIBMps37IRAsGyAJ0e/186b85KV2w0iqXy+eZe4aoGMwCfSlRm
TqqVUL/yrYbXxlyzJZNEjPs=
=/YXX
-----END PGP SIGNATURE-----
    

- 漏洞信息

16092
FreeBSD i386_get_ldt() Function Arbitrary Kernel Memory Disclosure
Local Access Required Input Manipulation
Loss of Confidentiality
Exploit Public

- 漏洞描述

FreeBSD contains a flaw that may lead to an unauthorized information disclosure. The issue is triggered when a malicious user supplies negative or excessive values as an argument to the i386_get_ldt() system call, which will disclose arbitrary portions of kernel memory resulting in a loss of confidentiality.

- 时间线

2005-05-06 Unknow
2005-05-06 Unknow

- 解决方案

Upgrade to version 4-STABLE or 5-STABLE, or to the RELENG_5_3, RELENG_4_11, or RELENG_4_10 security branch dated after the correction date, as it has been reported to fix this vulnerability. In addition, FreeBSD has released a patch for some older versions.

- 相关参考

- 漏洞作者

- 漏洞信息

FreeBSD i386_get_ldt(2) Local Kernel Memory Disclosure Vulnerability
Input Validation Error 13527
No Yes
2005-05-06 12:00:00 2009-02-25 11:27:00
Discovery is credited to Christer Oberg.

- 受影响的程序版本

FreeBSD FreeBSD 5.4 -PRERELEASE
FreeBSD FreeBSD 5.3 -STABLE
FreeBSD FreeBSD 5.3 -RELENG
FreeBSD FreeBSD 5.3 -RELEASE
FreeBSD FreeBSD 5.3
FreeBSD FreeBSD 5.2.1 -RELEASE
FreeBSD FreeBSD 5.2 -RELENG
FreeBSD FreeBSD 5.2 -RELEASE
FreeBSD FreeBSD 5.2
FreeBSD FreeBSD 5.1 -RELENG
FreeBSD FreeBSD 5.1 -RELEASE/Alpha
FreeBSD FreeBSD 5.1 -RELEASE-p5
FreeBSD FreeBSD 5.1 -RELEASE
FreeBSD FreeBSD 5.1
FreeBSD FreeBSD 5.0 -RELENG
FreeBSD FreeBSD 5.0 -RELEASE-p14
FreeBSD FreeBSD 5.0 alpha
FreeBSD FreeBSD 5.0
FreeBSD FreeBSD 4.11 -STABLE
FreeBSD FreeBSD 4.11 -RELENG
FreeBSD FreeBSD 4.11 -RELEASE-p3
FreeBSD FreeBSD 4.10 -RELENG
FreeBSD FreeBSD 4.10 -RELEASE-p8
FreeBSD FreeBSD 4.10 -RELEASE
FreeBSD FreeBSD 4.10
FreeBSD FreeBSD 4.9 -RELENG
FreeBSD FreeBSD 4.9 -PRERELEASE
FreeBSD FreeBSD 4.9
FreeBSD FreeBSD 4.8 -RELENG
FreeBSD FreeBSD 4.8 -RELEASE-p7
FreeBSD FreeBSD 4.8 -PRERELEASE
FreeBSD FreeBSD 4.8
FreeBSD FreeBSD 4.7 -STABLE
FreeBSD FreeBSD 4.7 -RELENG
FreeBSD FreeBSD 4.7 -RELEASE-p17
FreeBSD FreeBSD 4.7 -RELEASE
Apple Mac OS X Server 10.5.5
Apple Mac OS X 10.5.5

- 漏洞讨论

The 'i386_get_ldt(2)' system call is prone to a memory-disclosure vulnerability.

An attacker can supply a negative or excessive value as an argument to the affected system call and read arbitrary portions of kernel memory.

Information disclosed through this attack may help the attacker launch other attacks against a computer and potentially aid in a complete compromise.

NOTE: Only i386 and amd64 architectures are affected by this issue.

UPDATE (February 25, 2009): Mac OS X 10.5.5 is reported vulnerable.

- 漏洞利用

The following exploit for Mac OS X is available:

- 解决方案

The vendor has released advisory FreeBSD-SA-05:07.ldt including patches to address this issue in FreeBSD 4.10, 4.11, and 5.3 systems. Please see the referenced advisory for more information.


FreeBSD FreeBSD 4.10 -RELEASE-p8

FreeBSD FreeBSD 4.10 -RELEASE

FreeBSD FreeBSD 4.10 -RELENG

FreeBSD FreeBSD 4.10

FreeBSD FreeBSD 4.11 -RELEASE-p3

FreeBSD FreeBSD 4.11 -RELENG

FreeBSD FreeBSD 4.11 -STABLE

FreeBSD FreeBSD 5.3

FreeBSD FreeBSD 5.3 -RELEASE

FreeBSD FreeBSD 5.3 -RELENG

FreeBSD FreeBSD 5.3 -STABLE

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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