Operating System:

[Solaris]

Published:

20 February 2009

Protect yourself against future threats.

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

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

                        ESB-2009.0161 -- [Solaris]
The Name Service Caching Daemon (nscd(1M)) Does Not Cache Hosts for Cluster
     Nodes After Installing Patch 120011-14 (SPARC) or 120012-14 (x86)
                             20 February 2009

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

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

Product:              nscd
Publisher:            Sun Microsystems
Operating System:     Solaris
Impact:               Denial of Service
Access:               Existing Account

Original Bulletin:    
  http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-66-247466-1

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

   Solution Type: Sun Alert
   Solution  247466 :   The Name Service Caching Daemon (nscd(1M)) Does
   Not Cache Hosts for Cluster Nodes After Installing Patch 120011-14
   (SPARC) or 120012-14 (x86)          
   Bug ID: 6634592

   Product
   Solaris Cluster 3.2

   Date of Resolved Release: 18-Feb-2009

   SA Document Body
   Installing patches 120011-14 (sparc) or 120012-14 (x86) may cause 
   performance degradation:

   1. Impact
   Installing patches 120011-14 (SPARC) or 120012-14 (x86) may
   cause a performance degradation on systems running applications that
   perform hostname lookups.
   
   2. Contributing Factors
   This issue can occur in the following releases:
   SPARC Platform
     * Solaris Cluster 3.2 (for Solaris 10) with patch 120011-14 or
       later and without patch 126106-27

   x86 Platform
     * Solaris Cluster 3.2 (for Solaris 10) with patch 120012-14 or
       later and without patch 126107-28

   Note: Solaris 8 and Solaris 9 are not impacted by this issue.
   
   3. Symptoms
   If the described issue occurs, applications that do several hostname
   lookups, such as Oracle RAC, will experience performance degradation.
   
   4. Workaround
   To avoid this issue, the following work around can be used:
   1. Backup configuration files:
    # cp /etc/nsswitch.conf /etc/nsswitch.conf.cluster
    # cp /etc/inet/hosts /etc/inet/hosts.cluster
    # cp /etc/netmasks /etc/netmasks.cluster

   2. Add Private Cluster interconnect addresses to hosts.  These are the
   addresses named "clprivnet0 interfaces" on all nodes in the cluster.
   Obtain the names using ifconfig(1) on each node and add them to the
   hosts. For example:
    # ifconfig clprivnet0 | fmt
    clprivnet0:
    flags=1009843<UP,BROADCAST,RUNNING,MULTICAST,MULTI_BCAST,PRIVATE,IPv4>
    mtu 1500 index 5
    inet 172.16.4.1 netmask fffffe00 broadcast 172.16.5.255
    ether 0:0:0:0:0:1
    # cat >> /etc/inet/hosts <<EOS
    172.16.4.1    clusternode1-priv
    172.16.4.2    clusternode2-priv
    EOS

   3. Add private cluster interconnect netmasks to netmasks(5).  For
   example the following script will collect these from "cluster" before
   removing  it in the next step:
    # ifconfig -a | \
    nawk '/flags/&&!/PRIVATE/{p=0}\
    /flags/&&/PRIVATE/{p=1}\
    p==1&&$3 ~ /netmask/{print $2}'|\
    while read i; do getent netmasks $i; done > /tmp/netmasks
    # cat /tmp/netmasks
    172.16.1.1           255.255.255.128
    172.16.0.129         255.255.255.128
    172.16.4.1           255.255.254.0

   Check the output for errors. If it is correct, append these entries to
   netmasks:
    # cat /tmp/netmasks >> /etc/netmasks

   4. Edit "nsswitch.conf" to remove "cluster" entries.  Change the
   relevant lines with nawk(1), verify the changes and updated
   nsswitch.conf:
    # egrep -n '^hosts|^netmasks' /etc/nsswitch.conf
    hosts:      cluster files dns nisplus dns
    netmasks:   cluster files nisplus
    # nawk '/^(hosts|netmasks)/&&/cluster/ \
    {gsub(/cluster/, "")}{print}' /etc/nsswitch.conf > \
    /tmp/nsswitch.conf
    # diff /etc/nsswitch.conf /tmp/nsswitch.conf
    28c28
    < hosts:      cluster files files dns nisplus dns
    ---
    > hosts:       files files dns nisplus dns
    42c42
    < netmasks:   cluster files nisplus
    ---
    > netmasks:    files nisplus
    # cat /tmp/nsswitch.conf > /etc/nsswitch.conf

   5. Resolution
   This issue is addressed in the following releases:
   SPARC Platform
     * Solaris Cluster 3.2 (for Solaris 10) with patch 126106-27 or
       later

   x86 Platform
     * Solaris Cluster 3.2 (for Solaris 10) with patch 126107-28 or
       later

   This Sun Alert notification is being provided to you on an "AS IS"
   basis. This Sun Alert notification may contain information provided by
   third parties. The issues described in this Sun Alert notification may
   or may not impact your system(s). Sun makes no representations,
   warranties, or guarantees as to the information contained herein. ANY
   AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
   WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
   NON-INFRINGEMENT, ARE HEREBY DISCLAIMED. BY ACCESSING THIS DOCUMENT
   YOU ACKNOWLEDGE THAT SUN SHALL IN NO EVENT BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES THAT ARISE
   OUT OF YOUR USE OR FAILURE TO USE THE INFORMATION CONTAINED HEREIN.
   This Sun Alert notification contains Sun proprietary and confidential
   information. It is being provided to you pursuant to the provisions of
   your agreement to purchase services from Sun, or, if you do not have
   such an agreement, the Sun.com Terms of Use. This Sun Alert
   notification may only be used for the purposes contemplated by these
   agreements. 
   Copyright 2000-2008 Sun Microsystems, Inc., 4150 Network Circle, Santa
   Clara, CA 95054 U.S.A. All rights reserved

- --------------------------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

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
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

iD8DBQFJne/fNVH5XJJInbgRAqbrAJ9clUQGjhwBg7X2ee30p0056TjoBQCfTAaC
5X5oUI+m6FOwqjT50DAso1Y=
=5bu1
-----END PGP SIGNATURE-----