Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185085 - <=app-arch/libarchive-2.2.4 security vulnerability
Summary: <=app-arch/libarchive-2.2.4 security vulnerability
Status: RESOLVED DUPLICATE of bug 184984
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Security
URL: http://security.freebsd.org/advisorie...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-12 17:09 UTC by Roy Marples (RETIRED)
Modified: 2009-12-28 10:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roy Marples (RETIRED) gentoo-dev 2007-07-12 17:09:05 UTC
.   Background

The libarchive library provides a flexible interface for reading and
writing streaming archive files such as tar and cpio, and has been the
basis for FreeBSD's implementation of the tar(1) utility since FreeBSD 5.3.

II.  Problem Description

Several problems have been found in the code used to parse the tar and
pax interchange formats.  These include entering an infinite loop if an
archive prematurely ends within a pax extension header or if certain
types of corruption occur in pax extension headers [CVE-2007-3644];
dereferencing a NULL pointer if an archive prematurely ends within a
tar header immediately following a pax extension header or if certain
other types of corruption occur in pax extension headers [CVE-2007-3645];
and miscomputing the length of a buffer resulting in a buffer overflow
if yet another type of corruption occurs in a pax extension header
[CVE-2007-3641].

III. Impact

An attacker who can cause a corrupt archive of his choice to be parsed
by libarchive, including by having "tar -x" (extract) or "tar -t" (list
entries) run on it, can cause libarchive to enter an infinite loop, to
core dump, or possibly to execute arbitrary code provided by the
attacker.

--------------------------

This is fixed in app-arch/libarchive-2.2.4 which is in portage now.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-07-12 17:10:54 UTC

*** This bug has been marked as a duplicate of bug 184984 ***