Cpio: cpio: stack-based buffer overflow in write_out_tar_header() with long usernames/groupnames
- State
- Published
- Severity
- 5.5 Medium
- Published
- Nov 12, 2026
- Updated
- Nov 27, 2026
- Reserved
- Nov 11, 2026
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.
| Product | Versions |
|---|---|
| Red Hat Hardened Images Red Hat | 2.15-10.4.hum1 and later Not Affected |
| Red Hat Enterprise Linux 10 Red Hat | |
| Red Hat Enterprise Linux 6 Red Hat | |
| Red Hat Enterprise Linux 7 Red Hat | |
| Red Hat Enterprise Linux 8 Red Hat | |
| Red Hat Enterprise Linux 9 Red Hat |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 5.5 Medium | redhat |
Weaknesses
- CWE-121 Stack-based Buffer Overflow
References
- RHSA-2026:103909Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-126831Vulnerability Database
- RHBZ#2571893Issue Tracker
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.