II. Impact
A remote intruder may be able to execute arbitrary code with the
privileges in the running daemon (typically root). In addition, a
remote intruder may be able to crash vulnerable printer daemons.
III. Solution
Apply patches as soon as possible
Patches have been released by Sun. They are part of a jumbo lp patch set identified by the following ids, per Sun Security Bulletin #206:
The following patches are available in relation to the above problem.
OS Version Patch ID
__________ _________
SunOS 5.8 109320-04
SunOS 5.8_x86 109321-04
SunOS 5.7 107115-09
SunOS 5.7_x86 107116-09
SunOS 5.6 106235-09
SunOS 5.6_x86 106236-09
Patches listed here are available at:
-
http://sunsolve.sun.com/securitypatch
The in.lpd daemon was not available prior to Solaris 2.6.
These patches resolve Sun problem report 4446925 *in.lpd* contains a
remote exploitable overflow.
The complete signed text of Sun Security Bulletin #206 may be found at:
-
Sun Information for VU#484011
Implement a workaround
A number of different workaround strategies have been suggested for dealing with this problem until patches can be applied:
- Disable the print service in /etc/inetd.conf if remote print job handling is unnecessary; see the ISS X-Force advisory for step-by-step details if needed
- Enable the noexec_user_stack tunable (although this does
not provide 100 percent protection against exploitation of this
vulnerability, it makes the likelihood of a successful exploit much
smaller). Add the following lines to the /etc/system file and
reboot:
set noexec_user_stack = 1
set noexec_user_stack_log = 1
- Block access to network port 515/tcp (printer) at all appropriate network perimeters
- Deploy tcpwrappers, also available in the tcpd-7.6 package at:
-
http://www.sun.com/solaris/freeware.html#cd