Bug 126740

Summary: CAN-2004-0694 Buffer overflow in lha (CAN-2004-0745, CAN-2004-0769, CAN-2004-0771)
Product: Red Hat Enterprise Linux 3 Reporter: Josh Bressers <bressers>
Component: lhaAssignee: Than Ngo <than>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-01 18:57:47 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
Patch to fix the dir_length buffer overflow.
none
Demo exploit none

Description Josh Bressers 2004-06-25 15:50:43 UTC
Another buffer overflow exists in lha.  More information, and exploit
can be found here.

http://marc.theaimsgroup.com/?l=bugtraq&m=108668791510153

This affects RHEL 3 and 2.1.

Comment 1 Josh Bressers 2004-06-25 16:04:21 UTC
Created attachment 101416 [details]
Patch to fix the dir_length buffer overflow.

Comment 3 Than Ngo 2004-06-25 19:24:53 UTC
ok, i will build new lha today. thanks for the patch.

Comment 5 Josh Bressers 2004-09-01 15:17:13 UTC
Created attachment 103339 [details]
Demo exploit

In order to properly run this on RHEL, you will have to set your LANG
environment variable to C (ie export LANG=C).

Comment 6 Josh Bressers 2004-09-01 18:57:47 UTC
An errata 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-2004-323.html


Comment 7 Josh Bressers 2004-09-07 15:38:30 UTC
An errata 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-2004-440.html