Skip to content

CVE-2026-126831 Cpio: cpio: stack-based buffer overflow in write_out_tar_header() with long usernames/groupnames

MediumCVSS 5.5 EPSS 0.11%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

12 packages: 0 fixed, 12 with no fix yet.

PackageAffectedFixed inStatus
azure linux cpio(Azure Linux 3.0) All versions No fix listed No fix yet
azure linux cpio(Azure Linux 4.0) All versions No fix listed No fix yet
debian/cpio(Debian 12) = 2.13+dfsg-7.1; = 2.14+dfsg-1; = 2.15+dfsg-1; = 2.15+dfsg-2 +2 more No fix listed No fix yet
debian/cpio(Debian 13) = 2.15+dfsg-2; = 2.15+dfsg-2.1; All versions No fix listed No fix yet
debian/cpio(Debian 14) = 2.15+dfsg-2; = 2.15+dfsg-2.1; All versions No fix listed No fix yet
redhat enterprise linux All versions No fix listed No fix yet
redhat hummingbird All versions No fix listed No fix yet
redhat rhel els All versions No fix listed No fix yet
ubuntu/cpio(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/cpio(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/cpio(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/cpio(Ubuntu 26.10) All versions No fix listed No fix yet

Affected products

ProductAffected versionsFixed in
redhat enterprise linux All versions No fix listed
redhat rhel els All versions No fix listed
redhat hummingbird All versions No fix listed
debian/cpio(Debian:12) All versions No fix listed
debian/cpio(Debian:12) = 2.13+dfsg-7.1 No fix listed
debian/cpio(Debian:12) = 2.14+dfsg-1 No fix listed
debian/cpio(Debian:12) = 2.15+dfsg-1 No fix listed
debian/cpio(Debian:12) = 2.15+dfsg-2 No fix listed
debian/cpio(Debian:12) = 2.15+dfsg-2.1 No fix listed
debian/cpio(Debian:13) All versions No fix listed
debian/cpio(Debian:13) = 2.15+dfsg-2 No fix listed
debian/cpio(Debian:13) = 2.15+dfsg-2.1 No fix listed
debian/cpio(Debian:14) All versions No fix listed
debian/cpio(Debian:14) = 2.15+dfsg-2 No fix listed
debian/cpio(Debian:14) = 2.15+dfsg-2.1 No fix listed
ubuntu/cpio(Ubuntu:22.04) All versions No fix listed
ubuntu/cpio(Ubuntu:24.04) All versions No fix listed
ubuntu/cpio(Ubuntu:26.04) All versions No fix listed
ubuntu/cpio(Ubuntu:26.10) All versions No fix listed
azure linux cpio(Azure Linux:4.0) All versions No fix listed
azure linux cpio(Azure Linux:3.0) All versions No fix listed

References