|
|
|
View Notes By
|
|
|
|
Other Documents
|
|
|
|
 |
Vulnerability Note VU#446897
CUPS buffer overflow vulnerability
OverviewThe Common Unix Printing System contains a buffer overflow vulnerability. This vulnerability may allow a remote attacker to execute arbitrary code.
I. DescriptionThe Common Unix Printing System (CUPS) is a printing service used by many Linux and Unix operating systems. CUPS uses a print scheduling process that dispatches print jobs and provides the printer's status to local and remote programs.
The Internet Printing Protocol (IPP) is a standard protocol that defines printing and managing print ques. As specified in RFC 2910, the IPP transport layer consists of an HTTP/1.1 request or response. Section 3.5 of RFC 2910 specifies two different types of tags that can either delimit sections of protocols (delimiter tags) or specify the type of each attribute value (value tags). textWithLanguage tags are defined in section 4.1.1.2 and nameWithLanguage is defined in section 4.1.2.2.
Per Secunia Advisory 2007-76:
Secunia Research has discovered a vulnerability in CUPS, which can be exploited by malicious people to compromise a vulnerable system.
The vulnerability is caused due to a boundary error within the "ippReadIO()" function in cups/ipp.c when processing IPP (Internet Printing Protocol) tags. This can be exploited to overwrite one byte on the stack with a zero by sending an IPP request containing specially crafted "textWithLanguage" or "nameWithLanguage" tags.
Successful exploitation allows execution of arbitrary code.
II. ImpactA remote, unauthenticated attacker may be able to execute arbitrary code with the privileges of the user running the CUPS server or cause the server to crash. The cupsd daemon may run with root privileges.
III. SolutionAdministrators and users should see the systems affected portion of this document for a partial list of affected vendors. Users who compile CUPS from source should see CUPS Article #508: Common UNIX Printing System 1.3.4 for information about obtaining fixed software.
Restrict access
Restricting access to CUPS servers by using the CUPS configuration directives, firewall rules, or access control lists may mitigate this vulnerability. By default, cupsd listens on port 631/udp. Systems that use CUPS exclusively for local printing should set the Listen directive to localhost:631 in the cupsd configuration file to prevent remote systems from exploiting this vulnerability.
Systems Affected
| Vendor | Status | Date Notified | Date Updated |
| Apple Computer, Inc. | Unknown | 1-Nov-2007 |
| Conectiva Inc. | Unknown | 1-Nov-2007 |
| Cray Inc. | Unknown | 1-Nov-2007 |
| CUPS, the Common UNIX Printing System | Vulnerable | 1-Nov-2007 |
| Debian GNU/Linux | Unknown | 1-Nov-2007 |
| EMC Corporation | Not Vulnerable | 2-Nov-2007 |
| Engarde Secure Linux | Unknown | 1-Nov-2007 |
| F5 Networks, Inc. | Unknown | 1-Nov-2007 |
| Fedora Project | Unknown | 1-Nov-2007 |
| FreeBSD, Inc. | Unknown | 1-Nov-2007 |
| Fujitsu | Unknown | 1-Nov-2007 |
| Gentoo Linux | Unknown | 1-Nov-2007 |
| Hewlett-Packard Company | Not Vulnerable | 5-Nov-2007 |
| Hitachi | Unknown | 1-Nov-2007 |
| IBM Corporation | Unknown | 1-Nov-2007 |
| IBM Corporation (zseries) | Unknown | 1-Nov-2007 |
| IBM eServer | Unknown | 1-Nov-2007 |
| Immunix Communications, Inc. | Unknown | 1-Nov-2007 |
| Ingrian Networks, Inc. | Unknown | 1-Nov-2007 |
| Juniper Networks, Inc. | Unknown | 1-Nov-2007 |
| Mandriva, Inc. | Vulnerable | 6-Nov-2007 |
| Microsoft Corporation | Unknown | 1-Nov-2007 |
| MontaVista Software, Inc. | Unknown | 1-Nov-2007 |
| NEC Corporation | Unknown | 1-Nov-2007 |
| NetBSD | Unknown | 1-Nov-2007 |
| Nokia | Unknown | 1-Nov-2007 |
| Novell, Inc. | Unknown | 1-Nov-2007 |
| OpenBSD | Unknown | 1-Nov-2007 |
| Openwall GNU/*/Linux | Unknown | 1-Nov-2007 |
| QNX, Software Systems, Inc. | Unknown | 1-Nov-2007 |
| Red Hat, Inc. | Vulnerable | 2-Nov-2007 |
| Silicon Graphics, Inc. | Unknown | 1-Nov-2007 |
| Slackware Linux Inc. | Not Vulnerable | 2-Nov-2007 |
| Sony Corporation | Not Vulnerable | 2-Nov-2007 |
| Sun Microsystems, Inc. | Not Vulnerable | 5-Nov-2007 |
| SUSE Linux | Vulnerable | 5-Nov-2007 |
| The SCO Group | Unknown | 1-Nov-2007 |
| Trustix Secure Linux | Unknown | 1-Nov-2007 |
| Turbolinux | Unknown | 1-Nov-2007 |
| Ubuntu | Vulnerable | 6-Nov-2007 |
| Unisys | Unknown | 1-Nov-2007 |
| Wind River Systems, Inc. | Unknown | 1-Nov-2007 |
References
http://www.cups.org/articles.php?L508
http://secunia.com/secunia_research/2007-76/advisory/
http://www.cups.org/documentation.php/spec-design.html
http://www.cups.org/documentation.php/man-cupsd.conf.html
http://tools.ietf.org/html/rfc2910#section-3.5
http://en.opensuse.org/AppArmor_Geeks
http://www.cups.org/articles.php?L508
http://www.nsa.gov/selinux/info/faq.cfm
http://docs.info.apple.com/article.html?artnum=307179
Credit
This vulnerability was published in Secunia Advisory 2007-76.
This document was written by Ryan Giobbi.
Other Information
| Date Public: | 2007-10-31 |
| Date First Published: | 2007-11-01 |
| Date Last Updated: | 2007-12-18 |
| CERT Advisory: | |
| CVE-ID(s): | CVE-2007-4351 |
| NVD-ID(s): | CVE-2007-4351 |
| US-CERT Technical Alerts: | |
| Metric: | 11.88 |
| Document Revision: | 22 |
If you have feedback, comments, or additional information about this vulnerability, please send us
email.
|
|