积极预防 及时发现
快速响应 力保恢复
NetBSD 安全公告 2001-014
发布时间:2001-08-24 信息来源:管理员

涉及程序: NetBSD dump(8) 详细: 利用 NetBSD dump(8) 漏洞能取得 tty 组权限 NetBSD 发布安全公告,指出 dump(8) 命令 (/sbin/dump) 和 dump_lfs(8) 命令 (/sbin/dump_lfs) 存在漏洞。它们都是setgid tty 状态,本地攻击通过设置 RCMD_CMD 环境变量能取得 tty 组特权。 受影响版本: NetBSD-current: source prior to August 8, 2001 NetBSD 1.5.1: affected NetBSD 1.5: affected NetBSD 1.4.x: all affected 更正版本: NetBSD-current: August 8, 2001 NetBSD-1.5 branch: August 8, 2001 (1.5.2 includes the fix) NetBSD-1.4 branch: Pullups pending - apply the patch as explained below 解决方案: 下载安装补丁或升级版本: * NetBSD-current: 2001-08-08 之前版本应升级到 NetBSD-current 2001-08-09 或之后版本 basesrc/sbin/dump 需要从 netbsd-current CVS branch (aka HEAD)升级 重新构造安装 dump and dump_lfs: # cd src # cvs update -d -P sbin/dump # cd sbin/dump # make cleandir dependall # make install # cd ../dump_lfs # make cleandir dependall # make install * NetBSD 1.5, 1.5.1: 2001-08-08 之前版本应升级到 2001-08-09 或之后版本 . NetBSD 1.5.2 is not vulnerable. src/sbin/dump 需要从 netbsd-1-5 CVS branch升级 重新构造安装 dump and dump_lfs: # cd src # cvs update -d -P sbin/dump # cd sbin/dump # make cleandir dependall # make install # cd ../dump_lfs # make cleandir dependall # make install 或安装下面的补丁(可能有副作用) ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2001-014-dump-1.5.patch 要打补丁,也需重新构造安装 dump and dump_lfs: # cd src/sbin/dump # patch < /path/to/SA2001-014-dump-1.5.patch # make cleandir dependall # make install # cd ../dump_lfs # make cleandir dependall # make install * NetBSD 1.4, 1.4.1, 1.4.2, 1.4.3: 参考 NetBSD 1.5 打上补丁