Last revised: August 31, 2001
Source: CERT/CC
A complete revision history can be found at the end of this file.
A buffer overflow exists in the Solaris BSD-style line
printer daemon, in.lpd, that may allow a remote intruder to
execute arbitrary code with the privileges of the running daemon. This
daemon runs with root privileges on all default installations of
vulnerable Solaris systems listed above.
The Solaris
in.lpd provides BSD-style services for remote users to interact
with a local printer, listening for remote requests on port 515/tcp
(printer). There is an unchecked buffer in the part of the code
responsible for transferring print jobs from one machine to
another. If given too many jobs to work on at once, the printer daemon
may crash or allow arbitrary code to be executed with elevated
privileges on the victim system.
This problem was discovered by the ISS
X-Force who have released an advisory:
Although the CERT/CC has not received any reports of this
vulnerability being successfully exploited, we do strongly encourage
all affected system adminsitrators to take one or more of the
recommended actions in III. Solution. Such
actions have proven effective at minimizing the likelihood of being
successfully attacked using vulnerabilities similar to this one.
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.
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 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:
A number of different workaround strategies have been suggested for dealing with this problem until patches can be applied:
Systems Affected
Overview
I. Description
II. Impact
III. Solution
Apply patches as soon as possible
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:
Implement a workaround
set noexec_user_stack = 1
set noexec_user_stack_log = 1
Appendix B. - References
- CVE Name: CAN-2001-0353
- https://www.kb.cert.org/vuls/id/484011
- http://xforce.iss.net/alerts/advise80.php
- http://www.securityfocus.com/bid/2894
- http://www.sun.com/security
- http://www.sunfreeware.com/notes.html#tcp_wrappers
- http://www.sun.com/solaris/freeware.html#cd
- http://www.sun.com/software/solutions/blueprints/0601/jass_quick_start-v03.html
- Sun Security Bulletin Archive
The CERT Coordination Center thanks Sun Microsystems for contributing to the creation of this advisory.
This document was written by Jeffrey S. Havrilla. If you have feedback concerning this document, please send email to:
Copyright 2001 Carnegie Mellon University.
Revision History
Jun 29, 2001: Initial release Jul 02, 2001: Fixed broken link to vulnerability note Aug 31, 2001: Updated with patch information from Sun Security Bulletin #206