Bug 173342

Summary: CVE-2005-3662 netpbm off by one error
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
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20051112,reported=20051112,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:03 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:

Description Josh Bressers 2005-11-16 14:19:29 UTC
Netpbm off my one error

The latest release of pnmtopng fixed an off by one error in the
alphas_of_color[] array.

--- pnmtopng-2.38/pnmtopng.c    2002-06-16 17:38:48.000000000 -0700
+++ pnmtopng-2.39/pnmtopng.c    2005-11-12 19:40:45.000000000 -0800
@@ -389,8 +419,8 @@
int alpha_rows;
int alpha_cols;
int alpha_trans;
-  gray *alphas_of_color[MAXCOLORS];
-  int alphas_of_color_cnt[MAXCOLORS];
+  gray *alphas_of_color[MAXCOLORS+1];
+  int alphas_of_color_cnt[MAXCOLORS+1];
int alphas_first_index[MAXCOLORS+1];
int mapping[MAXCOLORS];      /* mapping[old_index] = new_index */
int colors;


This issue also affects RHEL2.1

Comment 1 Jindrich Novy 2005-11-17 17:45:51 UTC
The fix is now applied in both 3 and 2.1.
The patch isn't cleanly applicable though.


Comment 5 Red Hat Bugzilla 2005-12-20 14:39:03 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