CVE-2026-66485
published medium CVSS 4.0 · 4.6Uncontrolled Memory Allocation in GNU cpio
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GNU | — | cpio0 through 2.15 · Other versions: unaffected | Affected | Not stated | CERT-PL |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned; Not Affected | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cpiox86_64 | Advisory build | 2.11-36.25.1 | SUSE-SU-2026:3959-1 |
| Ubuntu | bionic | cpio | Advisory build | 2.12+dfsg-6ubuntu0.18.04.4+esm1 | USN-8704-1 |
| SUSE / openSUSE | SLE-15-SP7 | cpioaarch64 | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-15-SP7 | cpioppc64le | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-15-SP7 | cpios390x | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
Show 50 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP7 | cpiox86_64 | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-16 | cpioaarch64 | Advisory build | 2.15-160000.3.1 | SUSE-SU-2026:23612-1 |
| SUSE / openSUSE | SLE-16 | cpioppc64le | Advisory build | 2.15-160000.3.1 | SUSE-SU-2026:23612-1 |
| SUSE / openSUSE | SLE-16 | cpios390x | Advisory build | 2.15-160000.3.1 | SUSE-SU-2026:23612-1 |
| SUSE / openSUSE | SLE-16 | cpiox86_64 | Advisory build | 2.15-160000.3.1 | SUSE-SU-2026:23612-1 |
| SUSE / openSUSE | SLE-5 | cpioaarch64 | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-5 | cpioppc64le | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-5 | cpios390x | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-5 | cpiox86_64 | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpioaarch64 | Advisory build | 2.15-160000.3.1 | OPENSUSE-SU-2026:21747-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpioppc64le | Advisory build | 2.15-160000.3.1 | OPENSUSE-SU-2026:21747-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpios390x | Advisory build | 2.15-160000.3.1 | OPENSUSE-SU-2026:21747-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpiox86_64 | Advisory build | 2.15-160000.3.1 | OPENSUSE-SU-2026:21747-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpioaarch64 | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpioppc64le | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpios390x | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpiox86_64 | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| Ubuntu | focal | cpio | Advisory build | 2.13+dfsg-2ubuntu0.4+esm1 | USN-8704-1 |
| Ubuntu | jammy | cpio | Advisory build | 2.13+dfsg-7ubuntu0.2 | USN-8704-1 |
| Ubuntu | noble | cpio | Advisory build | 2.15+dfsg-1ubuntu2.1 | USN-8704-1 |
| Ubuntu | resolute | cpio | Advisory build | 2.15+dfsg-2.1ubuntu0.1 | USN-8704-1 |
| Ubuntu | trusty | cpio | Advisory build | 2.11+dfsg-1ubuntu1.2+esm3 | USN-8704-1 |
| Ubuntu | xenial | cpio | Advisory build | 2.11+dfsg-5ubuntu1.1+esm2 | USN-8704-1 |
| SUSE / openSUSE | SLE-12-SP5 | cpio-langnoarch | Advisory build | 2.11-36.25.1 | SUSE-SU-2026:3959-1 |
| SUSE / openSUSE | SLE-15-SP7 | cpio-langnoarch | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-15-SP7 | cpio-mtaarch64 | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-15-SP7 | cpio-mtppc64le | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-15-SP7 | cpio-mts390x | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-15-SP7 | cpio-mtx86_64 | Advisory build | 2.13-150400.3.10.1 | SUSE-SU-2026:4012-1 |
| SUSE / openSUSE | SLE-16 | cpio-langnoarch | Advisory build | 2.15-160000.3.1 | SUSE-SU-2026:23612-1 |
| SUSE / openSUSE | SLE-16 | cpio-mtaarch64 | Advisory build | 2.15-160000.3.1 | SUSE-SU-2026:23612-1 |
| SUSE / openSUSE | SLE-16 | cpio-mtppc64le | Advisory build | 2.15-160000.3.1 | SUSE-SU-2026:23612-1 |
| SUSE / openSUSE | SLE-16 | cpio-mts390x | Advisory build | 2.15-160000.3.1 | SUSE-SU-2026:23612-1 |
| SUSE / openSUSE | SLE-16 | cpio-mtx86_64 | Advisory build | 2.15-160000.3.1 | SUSE-SU-2026:23612-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpio-langnoarch | Advisory build | 2.15-160000.3.1 | OPENSUSE-SU-2026:21747-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpio-mtaarch64 | Advisory build | 2.15-160000.3.1 | OPENSUSE-SU-2026:21747-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpio-mtppc64le | Advisory build | 2.15-160000.3.1 | OPENSUSE-SU-2026:21747-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpio-mts390x | Advisory build | 2.15-160000.3.1 | OPENSUSE-SU-2026:21747-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | cpio-mtx86_64 | Advisory build | 2.15-160000.3.1 | OPENSUSE-SU-2026:21747-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpio-langaarch64 | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpio-langppc64le | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpio-langs390x | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpio-langx86_64 | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpio-mtaarch64 | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpio-mtppc64le | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpio-mts390x | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cpio-mtx86_64 | Advisory build | 2.15-8.1 | OPENSUSE-SU-2026:11618-1 |
| Ubuntu | bionic | cpio-win32 | Advisory build | 2.12+dfsg-6ubuntu0.18.04.4+esm1 | USN-8704-1 |
| Ubuntu | focal | cpio-win32 | Advisory build | 2.13+dfsg-2ubuntu0.4+esm1 | USN-8704-1 |
| Ubuntu | jammy | cpio-win32 | Advisory build | 2.13+dfsg-7ubuntu0.2 | USN-8704-1 |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.6 / 10
- Severity
- medium
- Provider
- CERT-PL · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GNU | cpio | 0 through 2.15 (affected · custom)Default: unaffected | CERT-PL · cna |
Weaknesses
1- CWE-789 CWE-789 Memory allocation with excessive size value
References
2Provider assertions
2CERT-PL · cna
Uncontrolled Memory Allocation in GNU cpio
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 48afd496f85df96b22ac5fd74203506fce918d92dd751cc5b50d47894340b18c
- Ingested
- 23 Sep 2026, 09:26:54 UTC
- Source record
- Official CVE record