TW-CA-2005-071-[FreeBSD-SA-05:12.bind9:BIND 9 DNSSEC remote denial of service vulnerability]
======================================================================
TWCERT發布日期: 2005-06-17
原漏洞發布日期: 2005-06-09
分類: Dos
來源參考: FreeBSD-SA-05:12.bind9
通用安全弱點編號:  

========= 簡述 ==============================================
BIND 9 為實作網域名稱系統 (DNS) 協定的軟體。named 是網域名稱伺服器。DNSSEC 是
額外協定選項來增加 DNS 協定的可驗證性及完整性。DNSSEC 在所有版本的 FreeBSD 均
非預設啟動。系統管理員必須執行特殊的動作來啟動 DNSSEC 。
========= 說明 ==============================================

在 BIND 9.3.0 中的 DNSSEC validator 功能包含一個不適當的內部一致性測試。
當這個測試被啟動時,named 將會終止。

========= 影響平台 ==============================================

受影響平台: FreeBSD 5.3
已修正平台:
2005-03-23 18:16:29 UTC (RELENG_5, 5.3-STABLE)
2005-06-08 21:29:15 UTC (RELENG_5_3, 5.3-RELEASE-p16)
CVE 名稱: CAN-2005-0034

========= 修正方式 ==============================================
使用下列方式之一:
1)昇級受影響的系統至修正日期後的 5-STABLE, RELENG_5_3。
2)修正現有的系統: 下列的修正步驟適合 FreeBSD 5.3。
a)從以下的位址下載相關的修正檔,並使用 PGP 工具加以驗証。
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:12/bind9.patch # fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:12/bind9.patch.asc
b)使用 root 的身份執行以下的指令:
# cd /usr/src/
# patch < /path/to/patch
# cd /usr/src/lib/bind
# make obj && make depend && make && make install
# cd /usr/src/usr.sbin/named
# make obj && make depend && make && make install
========= 影響結果 ====================================
在啟動 DNSSEC 的系統,遠端攻擊者可以透過注入特定製作的封包來引發內部一致性測試
並且終止 named。如此一來,名稱伺服器將無法再提供服務。

附件:
=================== 原文 ====================================
==================================================================
FreeBSD-SA-05:12.bind9 Security Advisory
The FreeBSD Project

Topic: BIND 9 DNSSEC remote denial of service vulnerability

Category: core
Module: bind9
Announced: 2005-06-09
Credits: Internet Systems Consortium
Affects: FreeBSD 5.3
Corrected: 2005-03-23 18:16:29 UTC (RELENG_5, 5.3-STABLE)
2005-06-08 21:29:15 UTC (RELENG_5_3, 5.3-RELEASE-p16)
CVE Name: CAN-2005-0034

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

I. Background

BIND 9 is an implementation of the Domain Name System (DNS) protocols.
The named(8) daemon is the Internet domain name server. DNS Security
Extensions (DNSSEC) are additional protocol options that add
authentication and integrity to the DNS protocols.

DNSSEC is not enabled by default in any FreeBSD release. A system
administrator must take special action to enable DNSSEC.

II. Problem Description

A DNSSEC-related validator function in BIND 9.3.0 contains an
inappropriate internal consistency test. When this test is triggered,
named(8) will exit.

III. Impact

On systems with DNSSEC enabled, a remote attacker may be able to inject
a specially crafted packet that will cause the internal consistency test
to trigger, and named(8) to terminate. As a result, the name server
will no longer be available to service requests.

IV. Workaround

DNSSEC is not enabled by default, and the "dnssec-enable" directive is
not normally present. If DNSSEC has been enabled, disable it by
changing the "dnssec-enable" directive to "dnssec-enable no;" in the
named.conf(5) configuration file.

V. Solution

Perform one of the following:

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

2) To patch your present system:

The following patches have been verified to apply to FreeBSD 5.3
systems.

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

# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:12/bind9.patch
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-05:12/bind9.patch.asc

b) Execute the following commands as root:

# cd /usr/src/
# patch < /path/to/patch
# cd /usr/src/lib/bind
# make obj && make depend && make && make install
# cd /usr/src/usr.sbin/named
# make obj && make depend && make && make install

VI. Correction details

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

Branch Revision
Path
- -------------------------------------------------------------------------
RELENG_5
src/contrib/bind9/lib/dns/validator.c 1.1.1.1.2.2
RELENG_5_3
src/UPDATING 1.342.2.13.2.19
src/sys/conf/newvers.sh 1.62.2.15.2.21
src/contrib/bind9/lib/dns/validator.c 1.1.1.1.2.1.2.1
- -------------------------------------------------------------------------

VII. References

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0034
http://www.kb.cert.org/vuls/id/938617
http://www.isc.org/index.pl?/sw/bind/bind-security.php
http://www.isc.org/index.pl?/sw/bind/bind9.php

The latest revision of this advisory is available at
ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-05:12.bind9.asc


  Top to page
安全新聞 | 詮安徵才 | 網站地圖
302 新竹縣竹北市新泰路92號8樓之1
TEL:(03)553-1836 | FAX:(03)553-5887
(C)2005 AllNetSecure Information Co., Ltd. All Rights Reserved