CVE-2002-0638 (CNNVD-200208-115)

MEDIUM
中文标题:
Util-linux文件锁住本地竞争条件漏洞
英文标题:
setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other operat...
CVSS分数: 6.2
发布时间: 2003-04-02 05:00:00
漏洞类型: 授权问题
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

util-linux是一套包含多种系统工具如'chfn'和'chsh'的软件包,包含在多种Linux系统中。 util-linux工具在代码共享处理中存在竞争条件问题,本地攻击者可以利用这个漏洞进行权限提升。 util-linux工具包含多个工具用于执行Linux系统功能,如'chfn'工具允许用户修改存储在/etc/passwd文件中的个人信息,要修改此文件,应用程序需要以setuid root权限安装。 在部分条件下,利用util-linux工具中login-utils/setpwnam.c代码中复杂的文件被锁和修改操作上的漏洞,精心构建的攻击顺序可以利用竞争条件漏洞修改如/etc/passwd文件进行权限提升。不过要成功利用这个漏洞和进行权限提升需要和管理员有一些交互的操作。另外密码文件必须超过4K字节,而且本地攻击者修改/etc/passwd文件时不能把修改的条目放置在password文件4K字节的最后部分。 Red Hat Linux作为核心部分附带util-linux工具,其他由Red Hat衍生的Linux版本也可能存在此漏洞。

英文描述:

setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other operating systems, does not properly lock a temporary file when modifying /etc/passwd, which may allow local users to gain privileges via a complex race condition that uses an open file descriptor in utility programs such as chfn and chsh.

CWE类型:
(暂无数据)
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
mandrakesoft mandrake_single_network_firewall 7.2 - - cpe:2.3:a:mandrakesoft:mandrake_single_network_firewall:7.2:*:*:*:*:*:*:*
hp secure_os 1.0 - - cpe:2.3:o:hp:secure_os:1.0:*:linux:*:*:*:*:*
mandrakesoft mandrake_linux 7.0 - - cpe:2.3:o:mandrakesoft:mandrake_linux:7.0:*:*:*:*:*:*:*
mandrakesoft mandrake_linux 7.1 - - cpe:2.3:o:mandrakesoft:mandrake_linux:7.1:*:*:*:*:*:*:*
mandrakesoft mandrake_linux 7.2 - - cpe:2.3:o:mandrakesoft:mandrake_linux:7.2:*:*:*:*:*:*:*
mandrakesoft mandrake_linux 8.0 - - cpe:2.3:o:mandrakesoft:mandrake_linux:8.0:*:*:*:*:*:*:*
mandrakesoft mandrake_linux 8.1 - - cpe:2.3:o:mandrakesoft:mandrake_linux:8.1:*:*:*:*:*:*:*
mandrakesoft mandrake_linux 8.2 - - cpe:2.3:o:mandrakesoft:mandrake_linux:8.2:*:*:*:*:*:*:*
mandrakesoft mandrake_linux_corporate_server 1.0.1 - - cpe:2.3:o:mandrakesoft:mandrake_linux_corporate_server:1.0.1:*:*:*:*:*:*:*
redhat linux 6.0 - - cpe:2.3:o:redhat:linux:6.0:*:*:*:*:*:*:*
redhat linux 6.1 - - cpe:2.3:o:redhat:linux:6.1:*:*:*:*:*:*:*
redhat linux 6.2 - - cpe:2.3:o:redhat:linux:6.2:*:*:*:*:*:*:*
redhat linux 7.0 - - cpe:2.3:o:redhat:linux:7.0:*:*:*:*:*:*:*
redhat linux 7.1 - - cpe:2.3:o:redhat:linux:7.1:*:*:*:*:*:*:*
redhat linux 7.2 - - cpe:2.3:o:redhat:linux:7.2:*:*:*:*:*:*:*
redhat linux 7.3 - - cpe:2.3:o:redhat:linux:7.3:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
CSSA-2002-043.0 vendor-advisory
cve.org
访问
5344 vdb-entry
cve.org
访问
utillinux-chfn-race-condition(9709) vdb-entry
cve.org
访问
MDKSA-2002:047 vendor-advisory
cve.org
访问
RHSA-2002:132 vendor-advisory
cve.org
访问
VU#405955 third-party-advisory
cve.org
访问
20020729 [VulnWatch] RAZOR advisory: Linux util-linux chfn local root vulnerability mailing-list
cve.org
访问
CLA-2002:523 vendor-advisory
cve.org
访问
HPSBTL0207-054 vendor-advisory
cve.org
访问
20020730 TSLSA-2002-0064 - util-linux mailing-list
cve.org
访问
20020729 RAZOR advisory: Linux util-linux chfn local root vulnerability mailing-list
cve.org
访问
RHSA-2002:137 vendor-advisory
cve.org
访问
5164 vdb-entry
cve.org
访问
CVSS评分详情
6.2
MEDIUM
CVSS向量: AV:L/AC:H/Au:N/C:C/I:C/A:C
CVSS版本: 2.0
机密性
COMPLETE
完整性
COMPLETE
可用性
COMPLETE
时间信息
发布时间:
2003-04-02 05:00:00
修改时间:
2024-08-08 02:56:38
创建时间:
2025-11-11 15:32:16
更新时间:
2025-11-11 15:48:48
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2002-0638 2025-11-11 15:17:23 2025-11-11 07:32:16
NVD nvd_CVE-2002-0638 2025-11-11 14:50:27 2025-11-11 07:41:02
CNNVD cnnvd_CNNVD-200208-115 2025-11-11 15:08:41 2025-11-11 07:48:48
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 15:48:48
vulnerability_type: 未提取 → 授权问题; cnnvd_id: 未提取 → CNNVD-200208-115; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 授权问题
  • cnnvd_id: 未提取 -> CNNVD-200208-115
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:41:02
cvss_score: 未提取 → 6.2; cvss_vector: NOT_EXTRACTED → AV:L/AC:H/Au:N/C:C/I:C/A:C; cvss_version: NOT_EXTRACTED → 2.0; affected_products_count: 0 → 16; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • cvss_score: 未提取 -> 6.2
  • cvss_vector: NOT_EXTRACTED -> AV:L/AC:H/Au:N/C:C/I:C/A:C
  • cvss_version: NOT_EXTRACTED -> 2.0
  • affected_products_count: 0 -> 16
  • data_sources: ['cve'] -> ['cve', 'nvd']