evolve or die

FreeBSD Security Advisory 2002.43

FreeBSD Security Advisory 2002.43
Posted Nov 19, 2002
Authored by The FreeBSD Project | Site freebsd.org

FreeBSD Security Advisory FreeBSD-SA-02:43.bind - BIND 8 has two vulnerabilities. The BIND SIG Cached RR overflow allows a remote attacker to force a server with recursion enabled to execute arbitrary code with the privileges of the name server process. The BIND OPT DoS and BIND SIG Expiry Time DoS may cause a remote name server to crash.

tags | remote, overflow, arbitrary, vulnerability
systems | freebsd
MD5 | 692cf77764884df59e8d5338ab9fa59f

FreeBSD Security Advisory 2002.43

Change Mirror Download
-----BEGIN PGP SIGNED MESSAGE-----

=============================================================================
FreeBSD-SA-02:43.bind Security Advisory
The FreeBSD Project

Topic: multiple vulnerabilities in BIND [REVISED]

Category: core
Module: bind
Announced: 2002-11-15
Credits: ISS X-Force <xforce@iss.net>
Affects: All released versions of FreeBSD
Corrected: 2002-11-14 05:15:15 UTC (RELENG_4)
2002-11-14 02:05:57 UTC (RELENG_4_7)
2002-11-14 03:18:41 UTC (RELENG_4_6)
2002-11-14 04:05:12 UTC (RELENG_4_5)
2002-11-14 05:11:57 UTC (RELENG_4_4)
FreeBSD only: NO

0. Revision History

v1.0 2002-11-14 Initial release.
v1.1 2002-11-15 Correct patch instructions. Clarify workaround.
Add CVE references.

I. Background

BIND 8 is an implementation of the Domain Name System (DNS) protocols.

II. Problem Description

ISS X-Force has disclosed several vulnerabilities affecting BIND 8.
The names which ISS has given each vulnerability are used in this
advisory. The first is a buffer overflow in the BIND 8 code
responsible for creating DNS responses which include SIG resource
records (RRs) from its internal cache (`BIND SIG Cached RR Overflow
Vulnerability'). The second is an error in the BIND 8 code which
constructs a response to an EDNS query (i.e. a query containing OPT
RRs) with a large packet size. A miscalculation triggers an assertion
failure (`BIND OPT DoS'). The third is a problem in the verification
of SIG RR expiry times, which can result in a null pointer dereference
(`BIND SIG Expiry Time DoS').

III. Impact

BIND SIG Cached RR Overflow Vulnerability: A remote attacker may be
able to cause a name server with recursion enabled to execute
arbitrary code with the privileges of the name server process.

BIND OPT DoS and BIND SIG Expiry Time DoS: A remote attacker may be
able to cause the name server process to crash.

IV. Workaround

BIND 9 is not affected by these vulnerabilities. For those who have
the option, upgrading to BIND 9 is recommended. BIND 9 is available
in the FreeBSD Ports Collection (ports/net/bind9). The bind9 port
includes migration notes in /usr/local/share/doc/bind9/misc/migration.

Name servers with recursion disabled are not vulnerable to the `BIND
SIG Cached RR Overflow Vulnerability' nor to the `BIND SIG Expiry Time
DoS'. To disable recursion, edit the BIND 8 configuration file
(default path /etc/namedb/named.conf) to add `recursion no;' and
`fetch-glue no;' to the options statement. e.g.,

options {
recursion no;
fetch-glue no;
/* ... other options ... */
};

Restart the name server after editing the configuration file.
NOTE: This workaround is only appropriate for name servers
which are authoritative only. Caching name servers will no longer
function correctly if recursion is disabled.

Restricting recursion to only your own organization's clients (by
means of the `allow-recursion' directive) limits, but does not
eliminate, the impact of these vulnerabilities by making them harder
to exploit. Restricting recursion in this fashion is generally
recommended. To restrict recursion, edit the BIND 8 configuration
file to include an `allow-recursion' statement and an address list
appropriate for your organization. e.g.,

options {
allow-recursion { 10.0.0.0/8; };
/* ... other options ... */
};

Running BIND 8 as a non-privileged user (rather than as the superuser)
may reduce the impact should the name server be compromised via the
`BIND SIG Cached RR Overflow Vulnerability'. Running as a
non-privileged user is generally recommended. Likewise, running BIND
8 in a chroot environment may reduce the impact and is generally
recommended.

V. Solution

Do one of the following:

1) Upgrade your vulnerable system to 4.7-STABLE; or to the RELENG_4_7,
RELENG_4_6, RELENG_4_5, or RELENG_4_4 security branch dated after the
correction date (4.7-RELEASE-p2, 4.6.2-RELEASE-p5, 4.5-RELEASE-p23,
4.4-RELEASE-p30).

2) To patch your present system:

The following patch has been verified to apply to FreeBSD 4.4, 4.5,
4.6, and 4.7 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-02:43/bind.patch
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/patches/SA-02:43/bind.patch.asc

b) Execute the following commands as root:

# cd /usr/src
# patch < /path/to/patch
# cd /usr/src/lib/libbind
# make depend && make
# cd /usr/src/lib/libisc
# make depend && make
# cd /usr/src/usr.sbin/named
# make depend && make && make install
# cd /usr/src/libexec/named-xfer
# make depend && make && make install

After upgrading or patching your system, you must restart named.
Execute the following command as root:

# ndc restart

VI. Correction details

Path Revision
Branch
- -------------------------------------------------------------------------
src/contrib/bind/CHANGES
RELENG_4 1.1.1.7.2.8
RELENG_4_7 1.1.1.7.2.7.2.1
RELENG_4_6 1.1.1.7.2.6.2.2
RELENG_4_5 1.1.1.7.2.4.4.2
RELENG_4_4 1.1.1.7.2.4.2.2
src/contrib/bind/bin/named/db_defs.h
RELENG_4 1.1.1.2.2.6
RELENG_4_7 1.1.1.2.2.5.2.1
RELENG_4_6 1.1.1.2.2.4.2.2
RELENG_4_5 1.1.1.2.2.3.4.2
RELENG_4_4 1.1.1.2.2.3.2.2
src/contrib/bind/bin/named/db_sec.c
RELENG_4 1.1.1.1.4.4
RELENG_4_7 1.1.1.1.4.3.4.1
RELENG_4_6 1.1.1.1.4.3.2.1
RELENG_4_5 1.1.1.1.4.2.6.2
RELENG_4_4 1.1.1.1.4.2.4.2
src/contrib/bind/bin/named/ns_defs.h
RELENG_4 1.1.1.3.2.7
RELENG_4_7 1.1.1.3.2.6.2.1
RELENG_4_6 1.1.1.3.2.5.2.2
RELENG_4_5 1.1.1.3.2.3.4.2
RELENG_4_4 1.1.1.3.2.3.2.2
src/contrib/bind/bin/named/ns_ncache.c
RELENG_4 1.1.1.2.2.3
RELENG_4_7 1.1.1.2.2.2.4.1
RELENG_4_6 1.1.1.2.2.2.2.1
RELENG_4_5 1.1.1.2.2.1.6.2
RELENG_4_4 1.1.1.2.2.1.4.2
src/contrib/bind/bin/named/ns_req.c
RELENG_4 1.1.1.2.2.11
RELENG_4_7 1.1.1.2.2.10.2.1
RELENG_4_6 1.1.1.2.2.9.2.2
RELENG_4_5 1.1.1.2.2.7.4.2
RELENG_4_4 1.1.1.2.2.7.2.2
src/contrib/bind/bin/named/ns_resp.c
RELENG_4 1.1.1.2.2.8
RELENG_4_7 1.1.1.2.2.7.2.1
RELENG_4_6 1.1.1.2.2.6.2.2
RELENG_4_5 1.1.1.2.2.4.4.2
RELENG_4_4 1.1.1.2.2.4.2.2
src/contrib/bind/lib/nameser/ns_name.c
RELENG_4 1.1.1.2.2.4
RELENG_4_7 1.1.1.2.2.3.2.1
RELENG_4_6 1.1.1.2.2.2.2.2
RELENG_4_5 1.1.1.2.2.1.6.2
RELENG_4_4 1.1.1.2.2.1.4.2
src/contrib/bind/lib/nameser/ns_samedomain.c
RELENG_4 1.1.1.1.4.1
RELENG_4_7 1.1.1.1.14.1
RELENG_4_6 1.1.1.1.12.1
RELENG_4_5 1.1.1.1.10.1
RELENG_4_4 1.1.1.1.8.1
src/sys/conf/newvers.sh
RELENG_4_7 1.44.2.26.2.4
RELENG_4_6 1.44.2.23.2.22
RELENG_4_5 1.44.2.20.2.24
RELENG_4_4 1.44.2.17.2.29
- -------------------------------------------------------------------------

VII. References

<URL:http://bvlive01.iss.net/issEn/delivery/xforce/alertdetail.jsp?oid=21469>
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-1219>
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-1220>
<URL:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-1221>
<URL:http://www.isc.org/products/BIND/bind-security.html>
<URL:http://www.isc.org/products/BIND/patches/>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iQCVAwUBPdT59FUuHi5z0oilAQEQaAP+O167paqmU92KUMlxKIcjhJeV0eIQST5Y
X3K9VaKBrfE0TCMjJd8j5QnPlRkjPVy8A4wEFrZpEp1Ah94ns8JjyEoiluyA0TFF
Fx6EXnUw5rtOpyKqmdL7FPFSwcJTcv3Zs1eEsaQvRc3E9ygF6e9TJCCayfxB7qMn
SECyOVkopuA=
=9Y+6
-----END PGP SIGNATURE-----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security-notifications" in the body of the message

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close