CVE-2002-0638 (CNNVD-200208-115)
中文标题:
Util-linux文件锁住本地竞争条件漏洞
英文标题:
setpwnam.c in the util-linux package, as included in Red Hat Linux 7.3 and earlier, and other operat...
漏洞描述
中文描述:
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:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
CVSS评分详情
AV:L/AC:H/Au:N/C:C/I:C/A:C
时间信息
利用信息
数据源详情
| 数据源 | 记录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 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-200208-115
- data_sources: ['cve', 'nvd'] -> ['cnnvd', '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']