CVE-2026-126820

Public on 2026-11-14
Modified on 2026-11-14
Description
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).
Severity
Low severity
Low
See what this means
CVSS v3 Base Score
3.3
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core cpio Pending Fix
Amazon Linux 2023 cpio Pending Fix
Amazon Linux 2027 Preview cpio Pending Fix

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 3.3 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L