SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

 

Vulnerability Note VU#218395

CUPS integer overflow vulnerability

Overview

CUPS contains an integer overflow that may allow a remote attacker to cause a vulnerable system to crash.

I. Description

The Common Unix Printing System (CUPS) is a print server that is used and distributed by many Unix-like operating systems. CUPS contains an integer overflow vulnerability that occurs in its image processing library.

From the CUPS bug tracker:

    1)filter/image-png.c

    img->xsize * img->ysize may overflow (CUPS_IMAGE_MAX_WIDTH and CUPS_IMAGE_MAX_HEIGHT are too big for multiplication).

    malloc(img->xsize * img->ysize * 3) can result in a buffer that's too small. Also, the return codes of alot of the mallocs aren't checked, when a NULL pointer is passed to png_read_row, it may be possible to corrupt memory this way as well. I have a .png that does this.

II. Impact

Users who obtain CUPS from their operating system vendor should see the systems affected portion of this document for a partial list of affected vendors.

III. Solution

Upgrade

Versions newer than 1.3.7 available from the CUPS SVN server have applied a fix to address this issue. Users who obtain CUPS from their operating system vendor should see the systems affected portion of this document for more details.

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

VendorStatusDate Updated
Apple Computer, Inc.Unknown25-Apr-2008
Conectiva Inc.Unknown25-Apr-2008
Cray Inc.Unknown25-Apr-2008
CUPS, the Common UNIX Printing SystemVulnerable25-Apr-2008
Debian GNU/LinuxUnknown25-Apr-2008
EMC CorporationUnknown25-Apr-2008
Engarde Secure LinuxUnknown25-Apr-2008
F5 Networks, Inc.Unknown25-Apr-2008
Fedora ProjectUnknown25-Apr-2008
FreeBSD, Inc.Unknown25-Apr-2008
FujitsuUnknown25-Apr-2008
Gentoo LinuxVulnerable30-Apr-2008
Hewlett-Packard CompanyUnknown25-Apr-2008
HitachiUnknown25-Apr-2008
IBM CorporationUnknown25-Apr-2008
IBM Corporation (zseries)Unknown25-Apr-2008
IBM eServerUnknown25-Apr-2008
Ingrian Networks, Inc.Unknown25-Apr-2008
Juniper Networks, Inc.Not Vulnerable30-Apr-2008
Linux Kernel ArchivesUnknown25-Apr-2008
Mandriva, Inc.Unknown25-Apr-2008
Microsoft CorporationNot Vulnerable30-Apr-2008
MontaVista Software, Inc.Unknown25-Apr-2008
NEC CorporationUnknown25-Apr-2008
NetBSDNot Vulnerable30-Apr-2008
NokiaUnknown25-Apr-2008
Novell, Inc.Unknown25-Apr-2008
OpenBSDUnknown25-Apr-2008
Openwall GNU/*/LinuxUnknown25-Apr-2008
QNX, Software Systems, Inc.Unknown25-Apr-2008
Red Hat, Inc.Unknown25-Apr-2008
Silicon Graphics, Inc.Unknown25-Apr-2008
Slackware Linux Inc.Unknown25-Apr-2008
Sony CorporationUnknown25-Apr-2008
Sun Microsystems, Inc.Unknown25-Apr-2008
SUSE LinuxUnknown25-Apr-2008
The SCO GroupUnknown25-Apr-2008
Trustix Secure LinuxUnknown25-Apr-2008
TurbolinuxUnknown25-Apr-2008
UbuntuUnknown25-Apr-2008
Wind River Systems, Inc.Unknown25-Apr-2008

References


http://www.cups.org/str.php?L2790
http://www.cups.org/software.php
http://www.cups.org/documentation.php/man-cupsd.conf.html
https://www.securecoding.cert.org/confluence/display/seccode/INT32-C.+Ensure+that+operations+on+signed+integers+do+not+result+in+overflow
http://en.wikipedia.org/wiki/Integer_overflow

Credit

This document was written by Dean Reges.

Other Information

Date Public04/15/2008
Date First Published04/25/2008 11:48:56 AM
Date Last Updated04/30/2008
CERT Advisory 
CVE NameCVE-2008-1722
US-CERT Technical Alerts 
Metric8.33
Document Revision41

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

 
Page Corner Image
Produced 2008 by US-CERT, a government organization
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader