REDHAT-BUG-2571892: Low severity GNU cpio vulnerability

Published Nov 11, 2026
·
Updated

A flaw was found in GNU cpio through version 2.15. An out-of-bounds read vulnerability exists in src/copyin.c:fromascii() when parsing newc and crc format archive headers.

The loop in fromascii() that skips leading whitespace dereferences the buffer pointer (buf) prior to validating whether the pointer has reached the end boundary (buf == end). When parsing the final field (cchksum, offset 102..109) of struct newasciiheader, an all-spaces value causes the loop to read one byte past asciiheader[110] on the stack of readinnewascii(). If subsequent stack memory contains spaces, the pointer continues advancing into adjacent stack data and decodes those bytes into parsed header values (such as cchksum or cnamesize).

Affected Software

1 affected component
GNU cpio<=2.15

Event History

Nov 11, 2026
Data Sourced
via Red Hat·09:04 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What does an attacker need to provide to trigger the issue?

The attacker needs a crafted newc or crc format archive whose final header field, c_chksum, is filled with spaces. GNU cpio must parse that archive header.

2

Which deployments are exposed?

Deployments using GNU cpio through version 2.15 are affected when they process newc or crc archives. Exposure is most relevant where cpio is used to handle archives from untrusted or insufficiently validated sources.

3

What is the effect of the out-of-bounds read?

GNU cpio can read past the end of the archive header buffer into adjacent stack memory. If the adjacent bytes are spaces, they may be interpreted as header data such as the checksum or name-size fields.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203