Document Audience:PUBLIC
Document ID:57675
Title:Document ID 57675
Synopsis:Security Vulnerability in ping(1M)
Update Date:2004-11-30

DescriptionTop
Sun(sm) Alert Notification 1. Impact There is a potential buffer overflow in ping(1M) which could result in a local unprivileged user gaining elevated privileges.

2. Contributing Factors This issue can occur in the following releases:

SPARC Platform

x86 Platform

3. Symptoms There are no predictable symptoms that would show the described issue has been exploited.

Solution SummaryTop
4. Relief/Workaround To reduce the chances of the described issue from occurring, apply one of the following workarounds:

1. Remove the "set-user-ID" bit from the ping(1M) binary by issuing the following command:

    # chmod u-s /usr/sbin/ping                              
Note: Removing the "set-user-ID" bit from the ping(1M) utility will prevent unprivileged users from using the ping(1M) command.

2. Enable non-executable program stacks by adding the following lines to the "/etc/system" file and reboot the system:

    set noexec_user_stack = 1
    set noexec_user_stack_log = 1                  
The above tunable parameters are described in the Solaris Tunable Parameters Reference Manual at: http://docs.sun.com.

Note: Although enabling non-executable user stacks makes the likelihood of a successful exploit much smaller, it does not provide 100 percent against exploitation of this vulnerability.

This workaround is only effective on sun4u, sun4m, and sun4d architectures (enter "uname -m" to display a systems architecture). This workaround will not work on x86 platforms.

5. Resolution This issue is addressed in the following releases:

SPARC Platform

x86 Platform

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-2004 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved.

Applies To

Attachments