Cpio: Buffer overflow — GLSA 200711-18

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

Affected packages

app-arch/cpio on all architectures
Affected versions < 2.9-r1
Unaffected versions >= 2.9-r1

Background

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

Description

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

Impact

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.

Workaround

There is no known workaround at this time.

Resolution

All GNU cpio users should upgrade to the latest version:

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

References

Release date
November 14, 2007

Latest revision
November 14, 2007: 01

Severity
normal

Exploitable
remote

Bugzilla entries