CVE-2026-126831
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 package | Versions | Reported by |
|---|---|---|
| cpio | Not specified | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-126831 changed 2026-11-24 | CVE Terms of Use |
| NVD | CVE-2026-126831 changed 2026-11-27 | Public domain |