search menu icon-carat-right cmu-wordmark

CERT Coordination Center


Cisco IOS LPD buffer overflow vulnerability

Vulnerability Note VU#230505

Original Release Date: 2007-10-13 | Last Revised: 2007-10-15

Overview

The Cisco IOS Line Printer Daemon contains a buffer overflow vulnerability. If successfully exploited, this vulnerability may allow an attacker to execute arbitrary code or create a denial-of-service condition .

Description

The Cisco IOS includes support for the UNIX Line Printer Daemon (LPD) protocol. The LPD service listens on 515/tcp and is not enabled by default.

The IOS LPD service does not properly check the length of the hostname of the router. This error may result in a buffer overflow. See Cisco Security Response Document ID: 99109 for more information about this vulnerability.

From Information Risk Management Advisory 024:
When the LPD daemon is configured in Cisco IOS it listens on the default LPD TCP port, 515. If connected to with a source TCP port of anything other than 515 the following error is displayed:
$ telnet 172.30.3.101 515
Trying 172.30.3.101...
Connected to 172.30.3.101 (172.30.3.101).
Escape character is '^]'.
hostname_of_the_router: /usr/lib/lpd: Malformed from address
If the hostname is 99 characters or longer then the overflow occurs as the result of a call to the sprintf() function.

Impact

An attacker may be able to execute arbitrary code or create a denial-of-service condition .

Solution

Cisco has released an update to address this issue. See Cisco Security Response: Cisco IOS Line Printer Daemon (LPD) Protocol Stack Overflow Document ID: 99109 for more details.

The following workarounds may mitigate this vulnerability.


Restrict access
Using access control lists or firewall rules to limit access to port 515/tcp will prevent attackers from connecting to the LPD service.

Disable the LPD service
Disabling the LPD service will mitigate this vulnerability. See Cisco Security Response Document ID: 99109 for more information.

Disable unencrypted SNMP
The Simple Network Management Protocol (SNMP) service can be used to change settings or monitor device status. Some versions of Cisco IOS support SNMPv1, SNMPv2c, and SNMPv3. To use SNMP commands to change the hostname of an affected device, an attacker would need to know the SNMP read-write community string. SNMPv3 offers authentication and encryption features that may prevent an attacker from obtaining the read-write community string by sniffing Ethernet segments.

Disable SNMP
Disabling SNMP on affected devices may prevent this vulnerability from being exploited.

Vendor Information

230505
Expand all

Cisco Systems, Inc.

Updated:  October 13, 2007

Status

  Vulnerable

Vendor Statement

No statement is currently available from the vendor regarding this vulnerability.

Vendor Information

The vendor has not provided us with any further information regarding this vulnerability.

Addendum

See http://www.cisco.com/warp/public/707/cisco-sr-20071010-lpd.shtml for more details.

If you have feedback, comments, or additional information about this vulnerability, please send us email.


CVSS Metrics

Group Score Vector
Base N/A N/A
Temporal N/A N/A
Environmental N/A

References

Credit

Information about this vulnerability was released by Information Risk Management.

This document was written by Ryan Giobbi.

Other Information

CVE IDs: None
Severity Metric: 7.14
Date Public: 2007-10-10
Date First Published: 2007-10-13
Date Last Updated: 2007-10-15 17:09 UTC
Document Revision: 11

Sponsored by the Department of Homeland Security Office of Cybersecurity and Communications.