CVE-2026-126831
JSON

5.5medium

Cpio: cpio: stack-based buffer overflow in write_out_tar_header() with long usernames/groupnames

Severity
5.5medium CVSS:3.1 by redhat
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

Description

A flaw was found in cpio. A local user can cause a Denial of Service (DoS) by triggering a stack-based buffer overflow when creating archives in tar or ustar formats. When archiving files owned by users or groups with names exceeding 32 characters, cpio copies these names into fixed-size memory without verifying their length. This unbounded copy corrupts stack memory and causes the application to crash.

Affected

Product or packageVersionsReported by
cpioNot specifiedCVE List

Classification

CWE-121

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-126831 changed 2026-11-24CVE Terms of Use
NVDCVE-2026-126831 changed 2026-11-27Public domain