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 165680

Summary: CVE-2005-2458 gzip/zlib flaws
Product: Red Hat Enterprise Linux 3 Reporter: Mark J. Cox <mjc>
Component: kernelAssignee: Peter Staubach <staubach>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: medium    
Version: 3.0CC: dhoward, dhowells, lwang, peterm, petrides, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=low,source=vendorsec
Fixed In Version: RHSA-2006-0144 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-15 16:23:21 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:
Bug Depends On:    
Bug Blocks: 168424    
Attachments:
Description Flags
Proposed patch
none
Proposed patch none

Description Mark J. Cox 2005-08-11 11:49:42 UTC
+++ This bug was initially created as a clone of Bug #165679 +++

Tim Yamin from Gentoo noticed that some older security related bugs in the
decompression code had not been fixed in the kernel.  This is fairly minor as
there are few places where the kernel decompresses arbitrary data.  However it
could be a problem for things like zisofs (if someone mounts a malicious
filesystem), perhaps cslip or ppp too).

CAN-2005-2458 
http://sources.redhat.com/ml/bug-gnu-utils/1999-06/msg00183.html
impact=low,source=vendorsec,public=19990625

CAN-2005-2459
http://bugs.gentoo.org/show_bug.cgi?id=94584
impact=low,source=vendorsec,public=20050531

Fix for 2.6 is here, pretty much identical for 2.4:

http://linux.bkbits.net:8080/linux-2.6/cset@42f3f4e9KIoV6pLtA430xgwjKh2V7g

(See bug noted above for private reproducers)

Comment 1 Ernie Petrides 2005-08-11 20:59:45 UTC
PeterS, it isn't immediately clear to me how the affected code can even be
invoked on RHEL3.  If it can't, then this should be closed as WONTFIX.
Otherwise, I think we should make sure that a fix gets into U7.

Comment 2 Ernie Petrides 2005-08-11 21:01:23 UTC
Don, please read my comment #1, which might be relevant to whether
you'd consider fixing this in RHEL2.1/RHEL2.1-IPF.

Comment 3 Peter Staubach 2005-08-15 19:22:43 UTC
Created attachment 117766 [details]
Proposed patch

Comment 7 Mark J. Cox 2005-08-18 10:10:08 UTC
Sergey Vlasov has done some analysis on these issues and discovered that the
changes in file lib/zlib_inflate/inftrees.c are incorrect and in fact are not
needed.  Gentoo have agreed and therefore from the patch above please ignore the
lib/zlib_inflate/inftrees.c hunk.  This means that CAN-2005-2549 is dropped, but
CAN-2005-2548 still applies.

Comment 8 Peter Staubach 2005-10-04 15:12:43 UTC
Actually, those references should be for CAN-2005-2459 and CAN-2005-2458.

Comment 9 Peter Staubach 2005-10-04 17:10:07 UTC
Created attachment 119613 [details]
Proposed patch

Comment 11 Ernie Petrides 2005-11-03 01:53:41 UTC
A fix for this problem has just been committed to the RHEL3 U7
patch pool this evening (in kernel version 2.4.21-37.8.EL).


Comment 14 Red Hat Bugzilla 2006-03-15 16:23:21 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-2006-0144.html