Bug 2571892 (CVE-2026-126820) - CVE-2026-126820 cpio: cpio: out-of-bounds read in from_ascii() when parsing newc/crc archive headers
Summary: CVE-2026-126820 cpio: cpio: out-of-bounds read in from_ascii() when parsing n...
Keywords:
Status: NEW
Alias: CVE-2026-126820
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-11 21:04 UTC by OSIDB Bzimport
Modified: 2026-11-11 21:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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).


Note You need to log in before you can comment on or make changes to this bug.