search menu icon-carat-right cmu-wordmark

CERT Coordination Center

CUPS integer overflow vulnerability

Vulnerability Note VU#218395

Original Release Date: 2008-04-25 | Last Revised: 2008-04-30

Overview

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

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.

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.

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.

Vendor Information

218395
 

View all 41 vendors View less vendors


CVSS Metrics

Group Score Vector
Base
Temporal
Environmental

References

Acknowledgements

This document was written by Dean Reges.

Other Information

CVE IDs: CVE-2008-1722
Severity Metric: 8.33
Date Public: 2008-04-15
Date First Published: 2008-04-25
Date Last Updated: 2008-04-30 15:38 UTC
Document Revision: 41

Sponsored by CISA.