
CVE catalog
CVE-2026-66485
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 deri
- Severity
- Medium · CVSS 5
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.18% · Oct 25, 2026
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
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | cpio | sid | 2.15+dfsg-2.1 | vulnerable |
| Debian | cpio | forky | 2.15+dfsg-2.1 | vulnerable |
| Debian | cpio | trixie | 2.15+dfsg-2 | vulnerable |
| Debian | cpio | bookworm | 2.13+dfsg-7.1 | vulnerable |
| Ubuntu | cpio | noble | 2.15+dfsg-1ubuntu2.1 | fixed |
| Ubuntu | cpio | pro | 2.12+dfsg-9 | vulnerable |
| Ubuntu | cpio | pro | 2.12+dfsg-9ubuntu1 | vulnerable |
| Ubuntu | cpio | pro | 2.13+dfsg-1 | vulnerable |
| Ubuntu | cpio | pro | 2.13+dfsg-2 | vulnerable |
| Ubuntu | cpio | pro | 2.13+dfsg-2ubuntu0.3 | vulnerable |
| Ubuntu | cpio | pro | 2.13+dfsg-2ubuntu0.4 | vulnerable |
| Ubuntu | cpio | pro | 2.13+dfsg-2ubuntu0.4+esm1 | fixed |
| Ubuntu | cpio | 22.04 | 2.13+dfsg-4ubuntu4 | vulnerable |
| Ubuntu | cpio | 22.04 | 2.13+dfsg-7 | vulnerable |
| Ubuntu | cpio | 22.04 | 2.13+dfsg-7ubuntu0.1 | vulnerable |
| Ubuntu | cpio | 22.04 | 2.13+dfsg-7ubuntu0.2 | fixed |
| Ubuntu | cpio | 24.04 | 2.13+dfsg-7.1 | vulnerable |
| Ubuntu | cpio | 24.04 | 2.14+dfsg-1 | vulnerable |
| Ubuntu | cpio | 24.04 | 2.15+dfsg-1 | vulnerable |
| Ubuntu | cpio | 24.04 | 2.15+dfsg-1ubuntu1 | vulnerable |
| Ubuntu | cpio | 24.04 | 2.15+dfsg-1ubuntu2 | vulnerable |
| Ubuntu | cpio | 24.04 | 2.15+dfsg-1ubuntu2.1 | fixed |
| Ubuntu | cpio | 26.04 | 2.15+dfsg-2ubuntu1 | vulnerable |
| Ubuntu | cpio | 26.04 | 2.15+dfsg-2.1 | vulnerable |
| Ubuntu | cpio | 26.04 | 2.15+dfsg-2.1ubuntu0.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | cpio | source | sid | (unfixed) | not yet assigned | Not reported | [1144387] |
| Debian | cpio | source | forky | (unfixed) | not yet assigned | Not reported | [1144387] |
| Debian | cpio | source | trixie | (unfixed) | not yet assigned | Not reported | [1144387] |
| Debian | cpio | source | bookworm | (unfixed) | not yet assigned | Not reported | [1144387] |
| Ubuntu | cpio | deb | noble | 2.15+dfsg-1ubuntu2.1 | Not reported | Not reported | Not reported |
| Ubuntu | cpio | deb | pro | 2.13+dfsg-2ubuntu0.4+esm1 | Not reported | UBUNTU-CVE-2026-66485 | Not reported |
| Ubuntu | cpio | deb | 22.04 | 2.13+dfsg-7ubuntu0.2 | Not reported | UBUNTU-CVE-2026-66485 | Not reported |
| Ubuntu | cpio | deb | 24.04 | 2.15+dfsg-1ubuntu2.1 | Not reported | UBUNTU-CVE-2026-66485 | Not reported |
| Ubuntu | cpio | deb | 26.04 | 2.15+dfsg-2.1ubuntu0.1 | Not reported | UBUNTU-CVE-2026-66485 | Not reported |
Notes
[trixie] cpio: Minor issue [bookworm] cpio: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [cpio]Affected
Details (2)
2.13+dfsg-7.1· amd64 · bookwormAffected
nvd · cpio · debian · bookworm; nvd · cpio · debian · 12
2.13+dfsg-7.1· arm64 · bookwormAffected
nvd · cpio · debian · bookworm; nvd · cpio · debian · 12
- [cpio-win32]Affected
Source package: [cpio]
Details (2)
2.13+dfsg-7.1· all · bookwormAffected
nvd · cpio · debian · bookworm; nvd · cpio · debian · 12
2.13+dfsg-7.1· all · bookwormAffected
nvd · cpio · debian · bookworm; nvd · cpio · debian · 12
[Debian 13 (Trixie)]
- [cpio]Affected
Details (2)
2.15+dfsg-2· amd64 · trixieAffected
nvd · cpio · debian · 13
2.15+dfsg-2· arm64 · trixieAffected
nvd · cpio · debian · 13
Observed:
References
- [https://cert.pl/en/posts/2026/08/CVE-2026-66484]
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11618-1.json]
- [https://git.savannah.gnu.org/cgit/cpio.git]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-66485]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-66485]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-66485]
- [https://security-tracker.debian.org/tracker/CVE-2026-66485]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-66485.json]
- [https://ubuntu.com/security/notices/USN-8704-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2722.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]