CVE-2026-66485 Uncontrolled Memory Allocation in GNU cpio
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
GNU cpio is vulnerable to an uncontrolled memory allocation in the make_path function at src/makepath.c. The function uses alloca to allocate stack memory based on the length of argpath, which is derived from an archive-controlled pathname during extraction. A malicious cpio archive containing a sufficiently long nested pathname causes an unbounded stack allocation, resulting in a stack overflow and crash of the cpio process. An attacker who can supply a crafted cpio archive to a victim who extracts it can cause a denial of service.
This issue has been fixed in commit 3cd514031371d8aeeaf2048aa10103e02831aaa9
Upgrade path
14 packages: 5 fixed, 1 partially fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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/cpio(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/cpio(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/cpio(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/cpio(Red Hat rhel_els 6) | All versions | No fix listed | No fix yet |
| redhat/cpio(Red Hat rhel_els 7) | All versions | No fix listed | No fix yet |
| azure linux cpio(Azure Linux 3.0) | < 2.14-2; All versions | 2.14-2 | Partially fixed |
| GNU cpio | <= 2.15 | after 2.15 | Fixed |
| redhat/cpio-main(Red Hat hummingbird 1) | < 2.15-10.3.hum1 | 2.15-10.3.hum1 | Fixed |
| ubuntu/cpio(Ubuntu 22.04) | < 2.13+dfsg-7ubuntu0.2 | 2.13+dfsg-7ubuntu0.2 | Fixed |
| ubuntu/cpio(Ubuntu 24.04) | < 2.15+dfsg-1ubuntu2.1 | 2.15+dfsg-1ubuntu2.1 | Fixed |
| ubuntu/cpio(Ubuntu 26.04) | < 2.15+dfsg-2.1ubuntu0.1 | 2.15+dfsg-2.1ubuntu0.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| GNU cpio | <= 2.15 | No fix listed |
| redhat/cpio-main(Red Hat:hummingbird:1) | < 2.15-10.3.hum1 | 2.15-10.3.hum1 |
| redhat/cpio(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/cpio(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/cpio(Red Hat:rhel_els:7) | All versions | No fix listed |
| redhat/cpio(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/cpio(Red Hat:enterprise_linux:9) | 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) | < 2.13+dfsg-7ubuntu0.2 | 2.13+dfsg-7ubuntu0.2 |
| ubuntu/cpio(Ubuntu:24.04) | < 2.15+dfsg-1ubuntu2.1 | 2.15+dfsg-1ubuntu2.1 |
| ubuntu/cpio(Ubuntu:26.04) | < 2.15+dfsg-2.1ubuntu0.1 | 2.15+dfsg-2.1ubuntu0.1 |
| azure linux cpio(Azure Linux:3.0) | All versions | No fix listed |
| azure linux cpio(Azure Linux:3.0) | < 2.14-2 | 2.14-2 |
References
- MSRC Security Update Guide vendor-advisory
- Security Update patch
- cert.pl third-party-advisory
- git.savannah.gnu.org product
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:82414 patch vendor-advisory
- Red Hat Bugzilla 2513083 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-66485 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8704-1 vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-55255 third-party-advisory