Gentoo Logo

Cpio: Buffer overflow


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200711-18 / cpio
Release Date November 14, 2007
Latest Revision November 14, 2007: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-arch/cpio < 2.9-r1 >= 2.9-r1 All supported architectures

Related bugreports: #196978


GNU cpio contains a buffer overflow vulnerability, possibly resulting in a Denial of Service.

2.  Impact Information


GNU cpio copies files into or out of a cpio or tar archive.


A buffer overflow vulnerability in the safer_name_suffix() function in GNU cpio has been discovered.


A remote attacker could entice a user to open a specially crafted archive file resulting in a stack-based buffer overflow, possibly crashing the application. It is disputed whether the execution of arbitrary code is possible.

3.  Resolution Information


There is no known workaround at this time.


All GNU cpio users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/cpio-2.9-r1"

4.  References


Page updated November 14, 2007

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.