Note: This is an archival copy of Security Sun Alert 249966 as previously published on http://sunsolve.sun.com.
Latest version of this security advisory is available from http://support.oracle.com as Sun Alert 1019967.1.
Article ID : 1019967.1
Article Type : Sun Alerts (SURE)
Last reviewed : 2009-02-01
Audience : PUBLIC
Copyright Notice: Copyright © 2010, Oracle Corporation and/or its affiliates.

Security Vulnerability in the Solaris "autofs" Kernel Module may Allow a Local Unprivileged User to Execute Arbitrary Code



Category
Security

Release Phase
Resolved

Bug Id
6687134

Product
Solaris 8 Operating System
Solaris 9 Operating System
Solaris 10 Operating System
OpenSolaris

Date of Resolved Release
26-Jan-2009

A security vulnerability in the Solaris "autofs" kernel module may allow a local unprivileged user to cause "autofs" mounts to break:

1. Impact

A security vulnerability in the Solaris "autofs" kernel module may allow a local unprivileged user to cause "autofs" mounts to break, which is a type of Denial of Service (DoS). In rare occurrences, this may allow an unprivileged user to execute code as a root user.

2. Contributing Factors

This issue can occur in the following releases:

SPARC Platform
  • Solaris 8 without patch 128624-09
  • Solaris 9 without patch 113318-34
  • Solaris 10 without patch 139560-01
  • OpenSolaris based upon builds snv_01 through snv_107
x86 Platform
  • Solaris 8 without patch 128625-09
  • Solaris 9 without patch 116053-03
  • Solaris 10 without patch 139561-01
  • OpenSolaris based upon builds snv_01 through snv_107
Note 1: This issue only occurs on systems that have "autofs" enabled.

To determine if "autofs" is enabled on Solaris 10 and OpenSolaris systems, use the following command and verify that the "enabled" state is "true":
    $ svcs -l autofs
fmri         svc:/system/filesystem/autofs:default
name         automounter
enabled      true
state        online
To determine if "autofs" is enabled on Solaris 8 and Solaris 9 systems, use the following command and verify that the automountd(1M) process is running:
    $ ps -ef | grep autofs
root   168    1   0   11:22:33  ?   0:00  /usr/lib/autofs/automountd

Note 2: OpenSolaris distributions may include additional bug fixes above and beyond the build from which it was derived.  To determine the base build of OpenSolaris, the following command can be used:
    $ uname -v
snv_86
3. Symptoms

If the described issue occurs an "autofs" mount can fail.  There are no predictable symptoms that would indicate that the issue has been exploited to execute arbitrary commands.

4. Workaround

To work around the described issue, disable the use of "autofs":

To disable "autofs" on Solaris 10 and OpenSolaris systems, run the following command:
    # svcadm disable autofs
To re-enable "autofs" on Solaris 10 and OpenSolaris systems, run the following command:
    # svcadm enable autofs
To disable "autofs" on Solaris 8 and Solaris 9 systems, run the following commands:
    # /etc/init.d/autofs stop
# mv /etc/rc2.d/S74autofs /etc/rc2.d/xxxS74autofs
To re-enable "autofs" on Solaris 8 and Solaris 9 systems, run the following commands:
    # /etc/init.d/autofs start
# mv /etc/rc2.d/xxxS74autofs /etc/rc2.d/S74autofs
5. Resolution

This issue is addressed in the following releases:

SPARC Platform
  • Solaris 8 with patch 128624-09 or later
  • Solaris 9 with patch 113318-34 or later
  • Solaris 10 with patch 139560-01 or later
  • OpenSolaris based upon builds snv_108 or later
x86 Platform
  • Solaris 8 with patch 128625-09 or later
  • Solaris 9 with patch 116053-03 or later
  • Solaris 10 with patch 139561-01 or later
  • OpenSolaris based upon builds snv_108 or later
For more information on Security Sun Alerts, see 1009886.1.

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


Modification History
02-Feb-2009: Updated the Workaround section.


References

128624-09
128625-09
113318-34
116053-03
139560-01
139561-01





Attachments
This solution has no attachment