CVE-2026-126831 Cpio: cpio: stack-based buffer overflow in write_out_tar_header() with long usernames/groupnames
Local users can crash cpio by archiving files with overlong usernames or groupnames, overflowing a stack buffer.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Harmful if only installed
- No
- Needs a specific call
- No
- Fix
- None listed
What is CVE-2026-126831?
CVE-2026-126831 is a medium-severity memory corruption vulnerability in Red Hat Enterprise Linux 10, published on 12 Nov 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-121
Which versions are affected by CVE-2026-126831?
An affected version is exposed as installed. No special setting or call is needed.
How do I fix CVE-2026-126831?
No fix has been published for CVE-2026-126831 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-126831 being exploited?
There is no known exploitation of CVE-2026-126831 in the wild and no public exploit code.
Sources
Also known as AZL-113972, DEBIAN-CVE-2026-126831, GHSA-ffxh-f67m-r64f, UBUNTU-CVE-2026-126831.