Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 173344

Summary: CVE-2005-3632 Netpbm buffer overflow
Product: Red Hat Enterprise Linux 3 Reporter: Josh Bressers <bressers>
Component: netpbmAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: pknirsch, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20051112,reported=20051116,source=vendorsec
Fixed In Version: RHSA-2005-843 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-20 14:39:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Proposed patch for this issue
none
New patch that fixes the buffer overflows. none

Description Josh Bressers 2005-11-16 14:34:25 UTC
Netpbm buffer ovflow

Vladimir Nadvornik from Suse discovered a buffer overfow in pnmtopng
which will overflow the textine[256] buffer


This issue also affects RHEL2.1

Comment 1 Josh Bressers 2005-11-16 14:35:23 UTC
Created attachment 121124 [details]
Proposed patch for this issue

Comment 2 Jindrich Novy 2005-11-17 18:24:42 UTC
This patch looks like it needs backporting as netpbm-9.24 we have doesn't
contain the "convertor/other" directory hierarchy.

The 9.24 pnmtopng misses the allocation check for "cp", so that the code there
would segfault if malloc fails. This is what I fixed in addition to this patch.

Patches for 2.1 and 3 are finished.

Waiting on info whether to commit or not to non-embargoed branch.

Comment 3 Jindrich Novy 2005-11-18 14:17:24 UTC
Applied. Packages added to the errata, rpmdiff passed, test request filed.

Comment 4 Jindrich Novy 2005-12-05 15:17:22 UTC
Created attachment 121853 [details]
New patch that fixes the buffer overflows.

The original patch didn't fix all possible overflows/underflows so a basic all
of:
"pnmtopng -text file.txt test.pnm" still segfaulted. This is now fixed by this
patch.

Comment 7 Red Hat Bugzilla 2005-12-20 14:39:16 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-843.html