CVE-2026-126831
Cpio: cpio: stack-based buffer overflow in write_out_tar_header() with long usernames/groupnames
5.5
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 products and versions
| Product / package | Ecosystem / vendor | Versions | Fixed in | Source |
|---|---|---|---|---|
| red hat enterprise linux 10 | red hat | — | — | CVE.org |
| red hat enterprise linux 6 | red hat | — | — | CVE.org |
| red hat enterprise linux 7 | red hat | — | — | CVE.org |
| red hat enterprise linux 8 | red hat | — | — | CVE.org |
| red hat enterprise linux 9 | red hat | — | — | CVE.org |
| red hat hardened images | red hat | — | — | CVE.org |