-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2012.0545
        Incorrect handling of zero-length RDATA fields in named(8)
                               13 June 2012

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           bind
Publisher:         FreeBSD
Impact/Access:     Denial of Service              -- Remote/Unauthenticated
                   Access Privileged Data         -- Remote/Unauthenticated
                   Provide Misleading Information -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2012-1667  

Reference:         ESB-2012.0518

Original Bulletin: 
   http://security.freebsd.org/advisories/FreeBSD-SA-12:03.bind.asc

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

=============================================================================
FreeBSD-SA-12:03.bind                                       Security Advisory
                                                          The FreeBSD Project

Topic:          Incorrect handling of zero-length RDATA fields in named(8)

Category:       contrib
Module:         bind
Announced:      2012-06-12
Credits:        Dan Luther, Jeffrey A. Spain
Affects:        All supported versions of FreeBSD
Corrected:      2012-06-12 12:10:10 UTC (RELENG_7, 7.4-STABLE)
                2012-06-12 12:10:10 UTC (RELENG_7_4, 7.4-RELEASE-p9)
                2012-06-04 22:21:55 UTC (RELENG_8, 8.3-STABLE)
                2012-06-12 12:10:10 UTC (RELENG_8_3, 8.3-RELEASE-p3)
                2012-06-12 12:10:10 UTC (RELENG_8_2, 8.2-RELEASE-p9)
                2012-06-12 12:10:10 UTC (RELENG_8_1, 8.1-RELEASE-p11)
                2012-06-04 22:14:33 UTC (RELENG_9, 9.0-STABLE)
                2012-06-12 12:10:10 UTC (RELENG_9_0, 9.0-RELEASE-p3)
CVE Name:       CVE-2012-1667

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

I.   Background

BIND 9 is an implementation of the Domain Name System (DNS) protocols.
The named(8) daemon is an Internet Domain Name Server.

II.  Problem Description

The named(8) server does not properly handle DNS resource records where
the RDATA field is zero length, which may cause various issues for the
servers handling them.

III. Impact

Resolving servers may crash or disclose some portion of memory to the
client.  Authoritative servers may crash on restart after transferring a
zone containing records with zero-length RDATA fields.  These would
result in a denial of service, or leak of sensitive information.

IV.  Workaround

No workaround is available, but systems not running the BIND name
server are not affected.

V.   Solution

Perform one of the following:

1) Upgrade your vulnerable system to 7-STABLE, 8-STABLE, or 9-STABLE,
or to the RELENG_7_4, RELENG_8_3, RELENG_8_2, RELENG_8_1, or RELENG_9_0
security branch dated after the correction date.

2) To update your vulnerable system via a source code patch:

The following patches have been verified to apply to FreeBSD 7.4,
8.3, 8.2, 8.1 and 9.0 systems.

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

[FreeBSD 7.4-RELEASE, 8.3-RELEASE, 8.2-RELEASE, and 8.1-RELEASE]
# fetch http://security.FreeBSD.org/patches/SA-12:03/bind.patch
# fetch http://security.FreeBSD.org/patches/SA-12:03/bind.patch.asc

[FreeBSD 9.0-RELEASE]
# fetch http://security.FreeBSD.org/patches/SA-12:03/bind-90.patch
# fetch http://security.FreeBSD.org/patches/SA-12:03/bind-90.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

3) To update your vulnerable system via a binary patch:

Systems running 7.4-RELEASE, 8.3-RELEASE, 8.2-RELEASE, 8.1-RELEASE,
or 9.0-RELEASE on the i386 or amd64 platforms can be updated via the
freebsd-update(8) utility:

# freebsd-update fetch
# freebsd-update install

4) Install and run BIND from the Ports Collection after the correction
date.  The following versions and newer versions of BIND installed from
the Ports Collection are not affected by this vulnerability:

        bind96-9.6.3.1.ESV.R7.1
        bind97-9.7.6.1
        bind98-9.8.3.1
        bind99-9.9.1.1

VI.  Correction details

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

CVS:

Branch                                                           Revision
  Path
- - -------------------------------------------------------------------------
RELENG_7
  src/contrib/bind9/lib/dns/rdata.c                           1.1.1.5.2.4
  src/contrib/bind9/lib/dns/rdataslab.c                       1.1.1.2.2.5
RELENG_7_4
  src/UPDATING                                            1.507.2.36.2.11
  src/sys/conf/newvers.sh                                  1.72.2.18.2.14
  src/contrib/bind9/lib/dns/rdata.c                       1.1.1.5.2.1.2.1
  src/contrib/bind9/lib/dns/rdataslab.c                   1.1.1.2.2.3.2.1
RELENG_8
  src/contrib/bind9/lib/dns/rdata.c                               1.2.2.4
  src/contrib/bind9/lib/dns/rdataslab.c                           1.2.2.5
RELENG_8_3
  src/UPDATING                                             1.632.2.26.2.5
  src/sys/conf/newvers.sh                                   1.83.2.15.2.7
  src/contrib/bind9/lib/dns/rdata.c                           1.2.2.2.2.1
  src/contrib/bind9/lib/dns/rdataslab.c                       1.2.2.3.2.1
RELENG_8_2
  src/UPDATING                                            1.632.2.19.2.11
  src/sys/conf/newvers.sh                                  1.83.2.12.2.14
  src/contrib/bind9/lib/dns/rdata.c                               1.2.8.1
  src/contrib/bind9/lib/dns/rdataslab.c                       1.2.2.2.2.1
RELENG_8_1
  src/UPDATING                                            1.632.2.14.2.14
  src/sys/conf/newvers.sh                                  1.83.2.10.2.15
  src/contrib/bind9/lib/dns/rdata.c                               1.2.6.1
  src/contrib/bind9/lib/dns/rdataslab.c                       1.2.2.1.2.1
RELENG_9
  src/contrib/bind9/lib/dns/rdata.c                               1.5.2.2
  src/contrib/bind9/lib/dns/rdataslab.c                           1.7.2.2
RELENG_9_0
  src/UPDATING                                              1.702.2.4.2.5
  src/sys/conf/newvers.sh                                    1.95.2.4.2.7
  src/contrib/bind9/lib/dns/rdata.c                               1.5.4.1
  src/contrib/bind9/lib/dns/rdataslab.c                           1.7.4.1
- - -------------------------------------------------------------------------

Subversion:

Branch/path                                                      Revision
- - -------------------------------------------------------------------------
stable/7/                                                         r236953
releng/7.4/                                                       r236953
stable/8/                                                         r236590
releng/8.3/                                                       r236953
releng/8.2/                                                       r236953
releng/8.1/                                                       r236953
stable/9/                                                         r236587
releng/9.0/                                                       r236953
- - -------------------------------------------------------------------------

VII. References

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-1667
http://www.isc.org/software/bind/advisories/cve-2012-1667

The latest revision of this advisory is available at
http://security.FreeBSD.org/advisories/FreeBSD-SA-12:03.bind.asc
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iEYEARECAAYFAk/XQGEACgkQFdaIBMps37LU+gCfcP1MdQy8s5gjNWJfW+BiP6oI
CWkAnRZzIRxAKWgD2spPAuBu04S9ZQkA
=aI2g
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBT9gJbu4yVqjM2NGpAQJrOw//XwCZ3hFfdHzvdeDjFkNhRewb7oc6anWD
LFTBKcBnLiwhS3ZXreaK80MDfXlMbDXUULPwAj0l08iXJ7w5kL8q3wAdKjqINa9u
PfLm4k6HF2M+BpedEafgv34XQQfzxp4KyhfAkg6DDGlcWcjcXkIKlUgVtRdc/eyq
e/DzrYoRGYonjwJ8+7KxgWc6nudka4Oj78FbdGsQKtZp4yna4RCkLqoTpp/d78uS
44xnOoiMpWqA5Oz6bL6qbXO2Cj6J7fbbCIRcBUgBhjHjbBRIrLMnXspPVcf7Qqvw
p+f8XvYk+f+LdHMKndd69xzGmxFTcOWd2DauqhSJttUk68uYkXpYa0a/NtjjpHXp
BRdcN8cvA9RLi9FIe9S3atcJ4j9z5k3wm+BcFrbYZpW1wq6XxRJMI92uVQLOf0Kt
7Q2C2QEZaEs1VExkUrvN7aeVeyATgQFpVwTBNK45SB8i49o6L5H4umarCJSEEJm1
MYrHLrCnl3+Q/8LobGhFDyFb/vOAj/OalyTeIiJ2TCcESwDdMLKfIubHdAPY2BUA
anIi0QbxmNFKXab/KqYNxPNQcr+Gjn9J/nZe//9lfk4bJ19q3UWvkmra0CM8IJec
wwnwwMQJFWjQRu7FSyS2jRfqeNvTuC/vry90ew0kGuGKQQmE/KRFl1Fm8zhQqD0E
3qzCZvlfNVs=
=B1tG
-----END PGP SIGNATURE-----