Bug 2571892 (CVE-2026-126820)

Summary: CVE-2026-126820 cpio: cpio: out-of-bounds read in from_ascii() when parsing newc/crc archive headers
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: rhel-process-autobot, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-11 21:04:14 UTC
A flaw was found in GNU cpio through version 2.15. An out-of-bounds read vulnerability exists in src/copyin.c:from_ascii() when parsing newc and crc format archive headers.

The loop in from_ascii() 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 (c_chksum, offset 102..109) of struct new_ascii_header, an all-spaces value causes the loop to read one byte past ascii_header[110] on the stack of read_in_new_ascii(). If subsequent stack memory contains spaces, the pointer continues advancing into adjacent stack data and decodes those bytes into parsed header values (such as c_chksum or c_namesize).