Security Advisory Moderate: bind security, bug fix, and enhancement update

Advisory: RHSA-2008:0300-16
Type: Security Advisory
Severity: Moderate
Issued on: 2008-05-20
Last updated on: 2008-05-21
Affected Products: RHEL Desktop Workstation (v. 5 client)
Red Hat Enterprise Linux (v. 5 server)
Red Hat Enterprise Linux Desktop (v. 5 client)
OVAL: com.redhat.rhsa-20080300.xml
CVEs (cve.mitre.org): CVE-2007-6283
CVE-2008-0122

Details

Updated bind packages that fix two security issues, several bugs, and add
enhancements are now available for Red Hat Enterprise Linux 5.

This update has been rated as having moderate security impact by the Red
Hat Security Response Team.

The Berkeley Internet Name Domain (BIND) is an implementation of the Domain
Name System (DNS) protocols. BIND includes a DNS server (named); a resolver
library (routines for applications to use when interfacing with DNS); and
tools for verifying that the DNS server is operating correctly.

It was discovered that the bind packages created the "rndc.key" file with
insecure file permissions. This allowed any local user to read the content
of this file. A local user could use this flaw to control some aspects of
the named daemon by using the rndc utility, for example, stopping the named
daemon. This problem did not affect systems with the bind-chroot package
installed. (CVE-2007-6283)

A buffer overflow flaw was discovered in the "inet_network()" function, as
implemented by libbind. An attacker could use this flaw to crash an
application calling this function, with an argument provided from an
untrusted source. (CVE-2008-0122)

As well, these updated packages fix the following bugs:

* when using an LDAP backend, missing function declarations caused
segmentation faults, due to stripped pointers on machines where pointers
are longer than integers.

* starting named may have resulted in named crashing, due to a race
condition during D-BUS connection initialization. This has been resolved in
these updated packages.

* the named init script returned incorrect error codes, causing the
"status" command to return an incorrect status. In these updated packages,
the named init script is Linux Standard Base (LSB) compliant.

* in these updated packages, the "rndc [command] [zone]" command, where
[command] is an rndc command, and [zone] is the specified zone, will find
the [zone] if the zone is unique to all views.

* the default named log rotation script did not work correctly when using
the bind-chroot package. In these updated packages, installing
bind-chroot creates the symbolic link "/var/log/named.log", which points
to "/var/named/chroot/var/log/named.log", which resolves this issue.

* a previous bind update incorrectly changed the permissions on the
"/etc/openldap/schema/dnszone.schema" file to mode 640, instead of mode
644, which resulted in OpenLDAP not being able to start. In these updated
packages, the permissions are correctly set to mode 644.

* the "checkconfig" parameter was missing in the named usage report. For
example, running the "service named" command did not return "checkconfig"
in the list of available options.

* due to a bug in the named init script not handling the rndc return value
correctly, the "service named stop" and "service named restart" commands
failed on certain systems.

* the bind-chroot spec file printed errors when running the "%pre" and
"%post" sections. Errors such as the following occurred:

Locating //etc/named.conf failed:
[FAILED]

This has been resolved in these updated packages.

* installing the bind-chroot package creates a "/dev/random" file in the
chroot environment; however, the "/dev/random" file had an incorrect
SELinux label. Starting named resulted in an 'avc: denied { getattr } for
pid=[pid] comm="named" path="/dev/random"' error being logged. The
"/dev/random" file has the correct SELinux label in these updated packages.

* in certain situations, running the "bind +trace" command resulted in
random segmentation faults.

As well, these updated packages add the following enhancements:

* support has been added for GSS-TSIG (RFC 3645).

* the "named.root" file has been updated to reflect the new address for
L.ROOT-SERVERS.NET.

* updates BIND to the latest 9.3 maintenance release.

All users of bind are advised to upgrade to these updated packages, which
resolve these issues and add these enhancements.


Solution

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.

This update is available via Red Hat Network. Details on how to use
the Red Hat Network to apply this update are available at
http://kbase.redhat.com/faq/FAQ_58_10188

Updated packages

RHEL Desktop Workstation (v. 5 client)

IA-32:
bind-chroot-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    fac56da983e257516720bb2cbe244799
bind-devel-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    4a90752422e8482fd0ab8048860262ac
bind-libbind-devel-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    bc0ab5186b4b1dd0d146bcf7392b9aef
caching-nameserver-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    c41fcc07f67d1192e35fd0cdec0ce13d
 
x86_64:
bind-chroot-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    b4022940433087181030b68f31d29df0
bind-devel-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    4a90752422e8482fd0ab8048860262ac
bind-devel-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    4553967b1655209b206e0c9c5ff40df7
bind-libbind-devel-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    bc0ab5186b4b1dd0d146bcf7392b9aef
bind-libbind-devel-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    713c5ec7a7d830be2556332f290177af
caching-nameserver-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    f9705daa3c18b43fe65c5bb385196c89
 
Red Hat Enterprise Linux (v. 5 server)

SRPMS:
bind-9.3.4-6.P1.el5.src.rpm
File outdated by:  RHSA-2008:0533
    d3713fa09b4f86d38ae2424538b74829
 
IA-32:
bind-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    ed7b4c659b01d3010528d82ffe0a1568
bind-chroot-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    fac56da983e257516720bb2cbe244799
bind-devel-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    4a90752422e8482fd0ab8048860262ac
bind-libbind-devel-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    bc0ab5186b4b1dd0d146bcf7392b9aef
bind-libs-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    3da82a5865741cc39d09b5263839a823
bind-sdb-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    09c6b1aea3620a5ead4175d605a24a41
bind-utils-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    30bdbec0d81f4ff5f4de4df258e90f6f
caching-nameserver-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    c41fcc07f67d1192e35fd0cdec0ce13d
 
IA-64:
bind-9.3.4-6.P1.el5.ia64.rpm
File outdated by:  RHSA-2008:0533
    5b9fa004d36a5439766e8807970102c9
bind-chroot-9.3.4-6.P1.el5.ia64.rpm
File outdated by:  RHSA-2008:0533
    6240f86ce244bf1781f911ec3aaa102b
bind-devel-9.3.4-6.P1.el5.ia64.rpm
File outdated by:  RHSA-2008:0533
    971ee55cdaf7d38688427f5530ec675e
bind-libbind-devel-9.3.4-6.P1.el5.ia64.rpm
File outdated by:  RHSA-2008:0533
    b070717321f9d56c0aced17344518064
bind-libs-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    3da82a5865741cc39d09b5263839a823
bind-libs-9.3.4-6.P1.el5.ia64.rpm
File outdated by:  RHSA-2008:0533
    ba487d7523d5e93f0fba1089208ae2ef
bind-sdb-9.3.4-6.P1.el5.ia64.rpm
File outdated by:  RHSA-2008:0533
    acf6ab4854876021f7e3f0435a7789b6
bind-utils-9.3.4-6.P1.el5.ia64.rpm
File outdated by:  RHSA-2008:0533
    61b58ed9758893eec8203ed2baed1094
caching-nameserver-9.3.4-6.P1.el5.ia64.rpm
File outdated by:  RHSA-2008:0533
    2f93e3edfffefc63a79d0769d466cd33
 
PPC:
bind-9.3.4-6.P1.el5.ppc.rpm
File outdated by:  RHSA-2008:0533
    aa61a527e8233a40adee20e5a185114b
bind-chroot-9.3.4-6.P1.el5.ppc.rpm
File outdated by:  RHSA-2008:0533
    11aea191e23a7e01f4069c0517a16ebd
bind-devel-9.3.4-6.P1.el5.ppc.rpm
File outdated by:  RHSA-2008:0533
    d3825dbdb3cf449b2e0b7b228b257529
bind-devel-9.3.4-6.P1.el5.ppc64.rpm
File outdated by:  RHSA-2008:0533
    b29de5aaf34406d9165b13a00294f35f
bind-libbind-devel-9.3.4-6.P1.el5.ppc.rpm
File outdated by:  RHSA-2008:0533
    6ffb99fb5be1acdc5098c77d8be4ee60
bind-libbind-devel-9.3.4-6.P1.el5.ppc64.rpm
File outdated by:  RHSA-2008:0533
    3ff83d9f5bb9bd0fcb612e27b8e9e8a3
bind-libs-9.3.4-6.P1.el5.ppc.rpm
File outdated by:  RHSA-2008:0533
    8e11dbcb824f8f58dd6946d0a57553c6
bind-libs-9.3.4-6.P1.el5.ppc64.rpm
File outdated by:  RHSA-2008:0533
    9a9905494a84626fd3853cb212c7173b
bind-sdb-9.3.4-6.P1.el5.ppc.rpm
File outdated by:  RHSA-2008:0533
    a595a0f59be7ee000c4b2aef2d4cf21d
bind-utils-9.3.4-6.P1.el5.ppc.rpm
File outdated by:  RHSA-2008:0533
    383a58736aa311e27522010688a291a4
caching-nameserver-9.3.4-6.P1.el5.ppc.rpm
File outdated by:  RHSA-2008:0533
    bb64c1cebfd7d7f4b499c1eab2efe6e8
 
s390x:
bind-9.3.4-6.P1.el5.s390x.rpm
File outdated by:  RHSA-2008:0533
    c12603d9eb4b572445f233d58d41d7fc
bind-chroot-9.3.4-6.P1.el5.s390x.rpm
File outdated by:  RHSA-2008:0533
    9ae349afde26da41bbbe1832573b3ce3
bind-devel-9.3.4-6.P1.el5.s390.rpm
File outdated by:  RHSA-2008:0533
    58038dba78f23dbc5f356b285c53707c
bind-devel-9.3.4-6.P1.el5.s390x.rpm
File outdated by:  RHSA-2008:0533
    730f9c03404c7fe19de5803f56773aa0
bind-libbind-devel-9.3.4-6.P1.el5.s390.rpm
File outdated by:  RHSA-2008:0533
    2754cefa1ba4727a4ef7c25e46b3d734
bind-libbind-devel-9.3.4-6.P1.el5.s390x.rpm
File outdated by:  RHSA-2008:0533
    7c530841bcbb5768836b77146613aea9
bind-libs-9.3.4-6.P1.el5.s390.rpm
File outdated by:  RHSA-2008:0533
    71f4d7209e408647f1feda4b162cd260
bind-libs-9.3.4-6.P1.el5.s390x.rpm
File outdated by:  RHSA-2008:0533
    401f7a0a59a1e5cfa3fbff2fff1baf6d
bind-sdb-9.3.4-6.P1.el5.s390x.rpm
File outdated by:  RHSA-2008:0533
    25196a1a48d6155c1dabb9dcff85c41b
bind-utils-9.3.4-6.P1.el5.s390x.rpm
File outdated by:  RHSA-2008:0533
    4bf926d52d2240b53d6b7429c42bf00e
caching-nameserver-9.3.4-6.P1.el5.s390x.rpm
File outdated by:  RHSA-2008:0533
    c9ee037cb81218bf677a371d5c9e1f19
 
x86_64:
bind-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    e4a13851aecea3c0fba8fe8a3499c175
bind-chroot-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    b4022940433087181030b68f31d29df0
bind-devel-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    4a90752422e8482fd0ab8048860262ac
bind-devel-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    4553967b1655209b206e0c9c5ff40df7
bind-libbind-devel-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    bc0ab5186b4b1dd0d146bcf7392b9aef
bind-libbind-devel-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    713c5ec7a7d830be2556332f290177af
bind-libs-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    3da82a5865741cc39d09b5263839a823
bind-libs-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    d4586c77b74ee59aa2b3b24e1be09ab4
bind-sdb-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    8f199042e19433d6420f6ff0bd74ca83
bind-utils-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    6c3eb8bcda2a7478c801ea30e8e8419a
caching-nameserver-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    f9705daa3c18b43fe65c5bb385196c89
 
Red Hat Enterprise Linux Desktop (v. 5 client)

SRPMS:
bind-9.3.4-6.P1.el5.src.rpm
File outdated by:  RHSA-2008:0533
    d3713fa09b4f86d38ae2424538b74829
 
IA-32:
bind-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    ed7b4c659b01d3010528d82ffe0a1568
bind-libs-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    3da82a5865741cc39d09b5263839a823
bind-sdb-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    09c6b1aea3620a5ead4175d605a24a41
bind-utils-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    30bdbec0d81f4ff5f4de4df258e90f6f
 
x86_64:
bind-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    e4a13851aecea3c0fba8fe8a3499c175
bind-libs-9.3.4-6.P1.el5.i386.rpm
File outdated by:  RHSA-2008:0533
    3da82a5865741cc39d09b5263839a823
bind-libs-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    d4586c77b74ee59aa2b3b24e1be09ab4
bind-sdb-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    8f199042e19433d6420f6ff0bd74ca83
bind-utils-9.3.4-6.P1.el5.x86_64.rpm
File outdated by:  RHSA-2008:0533
    6c3eb8bcda2a7478c801ea30e8e8419a
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

240788 - bind_sdb, ldap2zone segfaulting
240876 - bind crashes on restart and also when running without forwarders
242734 - Wrong init script
247486 - bind-chroot does not modify /etc/logrotate.d/named
250118 - dnszone.schema bad file permissions
250744 - missed parameter "configtest" in init script usage report
250901 - "service named restart" fails
251528 - RFE: add support for GSSTSIG
252334 - bind-chroot-9.3.3-9.0.1 leaks error noise in its scripts
253537 - avc: denied { getattr } for comm="named" path="/dev/random"
353741 - Rebase to latest 9.3 maintenance release
363531 - New L.ROOT-SERVERS.NET address
419421 - CVE-2007-6283 bind: /etc/rndc.key has 644 permissions by default
423741 - resolver library causes segfaults in bind-utils such as dig,ping
429149 - CVE-2008-0122 libbind off-by-one buffer overflow


References


Keywords

gss-tsig, lsb, sdb


These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/