Gentoo Logo

cpio: Arbitrary code execution


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 201311-21 / cpio
Release Date November 28, 2013
Latest Revision November 28, 2013: 1
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-arch/cpio < 2.11 >= 2.11 All supported architectures

Related bugreports: #314663


A heap-based buffer overflow in cpio might allow a remote rmt server to execute arbitrary code or cause a Denial of Service condition.

2.  Impact Information


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


Cpio contains a heap-based buffer overflow in the rmt_read__ function in lib/rtapelib.c.


A remote server could sending more data than was requested, related to archive filenames that contain a : (colon) character, possibly resulting in execution of arbitrary code or a Denial of Service condition.

3.  Resolution Information


There is no known workaround at this time.


All cpio users should upgrade to the latest version:

Code Listing 3.1: Resolution

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

4.  References


Page updated November 28, 2013

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

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