Cpio: cpio: stack-based buffer overflow in write_out_tar_header() with long usernames/groupnames
- CVE-2026-126831
- GHSA-ffxh-f67m-r64f
- EUVD-2026-124565
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.
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
Red Hat Red Hat Enterprise Linux 10
No versions listed
Red Hat Red Hat Enterprise Linux 6
No versions listed
Red Hat Red Hat Enterprise Linux 7
No versions listed
Red Hat Red Hat Enterprise Linux 8
No versions listed
Red Hat Red Hat Enterprise Linux 9
No versions listed
Red Hat Red Hat Hardened Images
Affected versions Fixed in from 2.15-10.4.hum1 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.