CVE-2026-126831
Cpio: cpio: stack-based buffer overflow in write_out_tar_header() with long usernames/groupnames
- Severity
- medium CVSS 5.5 (v3.1)
- Affects
- Red Hat Hardened Images · Red Hat
- Weakness
- CWE-121: Stack-based Buffer Overflow
- Published
- 12 November 2026 by redhat
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.