GNU cpio file size buffer overflow

cpio-file-size-bo (23855) The risk level is classified as HighHigh Risk

Description:

GNU cpio on 64-bit platforms is vulnerable to a buffer overflow. By creating a cpio archive with size of more than eight digits, a local attacker could overflow a buffer and cause a denial of service or execute arbitrary code on the system with elevated privileges.


Consequences:

Gain Privileges

Remedy:

For Mandrivalinux:
Refer to Mandriva Security Advisory MDKSA-2005:237 for upgrade information. See References.

For Ubuntu Linux:
Refer to USN-234-1 for patch, upgrade, or suggested workaround information. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

References:

  • GNU Project Web site: Cpio.
  • Red Hat Bugzilla Bug 172669: CVE-2005-4268 cpio large filesize buffer overflow.
  • ASA-2007-251: cpio security and bug fix update (RHSA-2007-0245)
  • BID-16057: CPIO File Size Stack Buffer Overflow Vulnerability
  • CVE-2005-4268: Buffer overflow in cpio 2.6-8.FC4 on 64-bit platforms, when creating a cpio archive, allows local users to cause a denial of service (crash) and possibly execute arbitrary code via a file whose size is represented by more than 8 digits.
  • MDKSA-2005:237: Updated cpio packages fix buffer overflow on x86_64
  • RHSA-2007-0245: Low: cpio security and bug fix update
  • SA18251: Cpio Large File Size Handling Denial of Service Vulnerability
  • SUSE-SR:2006:010: SUSE Security Summary Report
  • USN-234-1: cpio vulnerability

Platforms Affected:

  • Canonical Ubuntu 4.10
  • Canonical Ubuntu 5.04
  • Canonical Ubuntu 5.10
  • GNU cpio 2.6-8.FC4
  • MandrakeSoft Mandrake Linux 2006 X86_64
  • MandrakeSoft Mandrake Linux 2006
  • MandrakeSoft Mandrake Linux LE2005 X86_64
  • MandrakeSoft Mandrake Linux LE2005
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4 AS
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4 WS

Reported:

Dec 23, 2005

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page