Bug 138462 - CAN-2004-0947 buffer overflow in unarj
CAN-2004-0947 buffer overflow in unarj
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: unarj (Show other bugs)
2.1
All Linux
medium Severity low
: ---
: ---
Assigned To: Lon Hohberger
impact=low,reported=20041109
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-11-09 09:25 EST by Josh Bressers
Modified: 2007-11-30 17:06 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-01-12 13:38:52 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed patch for the buffer overflow. (1.49 KB, patch)
2004-11-09 09:27 EST, Josh Bressers
no flags Details | Diff
Proposed patch for the directory traversal issue. (2.97 KB, patch)
2004-11-09 09:27 EST, Josh Bressers
no flags Details | Diff
Buffer overflow POC archive. (2.06 KB, application/octet-stream)
2004-11-09 09:28 EST, Josh Bressers
no flags Details
Directory traversal POC archive. (143 bytes, application/octet-stream)
2004-11-09 09:30 EST, Josh Bressers
no flags Details

  None (edit)
Description Josh Bressers 2004-11-09 09:25:00 EST
This was reported to vendor-sec by Suse.

Recently some guy called "doubles" posted something about a directory
traversal bug in unarj to full-disclosure. While looking into that
issue I also found a buffer overflow. The problem is that the value of
'short entry_pos' in unarj.c:read_header() is not checked but later
used as offset into 'char filename[512]' when copying into a 512 byte
buffer on the stack in extract(). It's exploitable if the compiler
doesn't inline the extract() function in unarj.c.
Comment 1 Josh Bressers 2004-11-09 09:27:16 EST
Created attachment 106328 [details]
Proposed patch for the buffer overflow.
Comment 2 Josh Bressers 2004-11-09 09:27:39 EST
Created attachment 106329 [details]
Proposed patch for the directory traversal issue.
Comment 5 Josh Bressers 2004-11-09 10:05:30 EST
No embargo date has been set for this issue.
Comment 8 Mark J. Cox (Product Security) 2005-01-11 04:49:06 EST
Now public, removing embargo
Comment 9 Josh Bressers 2005-01-12 13:38:52 EST
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-007.html

Note You need to log in before you can comment on or make changes to this bug.