Bug 345091 (CVE-2007-4351)

Summary: CVE-2007-4351 cups boundary error
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: kreilly, security-response-team, twaugh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: source=vendorsec,reported=20071022,public=20071031,impact=important
Fixed In Version: 1.3.4-2.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-08 01:03:38 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On: 353981, 353991, 356541, 356551, 356561, 361661, 361671, 361681, 362971    
Bug Blocks:    
Description Flags
Patch for CUPS 1.1 by Michael Sweet
Patch for CUPS 1.2 by Michael Sweet
Patch for CUPS 1.3 by Michael Sweet none

Description Tomas Hoger 2007-10-22 08:29:15 EDT
Alin Rad Pop of the 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.


Red Hat would like to thank Alin Rad Pop for reporting this issue.
Comment 2 Tomas Hoger 2007-10-23 06:02:56 EDT
Created attachment 234891 [details]
Patch for CUPS 1.1 by Michael Sweet
Comment 3 Tomas Hoger 2007-10-23 06:05:06 EDT
Created attachment 234901 [details]
Patch for CUPS 1.2 by Michael Sweet
Comment 4 Tomas Hoger 2007-10-23 06:06:06 EDT
Created attachment 234911 [details]
Patch for CUPS 1.3 by Michael Sweet
Comment 5 Tomas Hoger 2007-10-24 04:52:44 EDT
CUPS 1.1 is not affected by "one null byte overwrite" mentioned in Secunia
advisory, that part only affects CUPS 1.2+.  Attacker can only overwrite memory
location 2^16 bytes away from current stack location towards the bottom of the

Patch for CUPS 1.1 adds additional checks on input values.  Without them, it may
still be possible to trick cupsd to read some random data from stack and
possibly crash daemon.
Comment 11 Mark J. Cox (Product Security) 2007-10-31 07:11:25 EDT
now public, removing embargo
Comment 15 Fedora Update System 2007-11-08 01:03:30 EST
cups-1.3.4-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.