{"id":"UBUNTU-CVE-2026-66485","details":"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","modified":"2026-09-01T15:47:52.105294575Z","published":"2026-08-10T11:17:00Z","related":["USN-8704-1"],"upstream":["CVE-2026-66485"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-66485"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-66485"},{"type":"REPORT","url":"https://cert.pl/en/posts/2026/08/CVE-2026-66484"},{"type":"REPORT","url":"https://git.savannah.gnu.org/cgit/cpio.git"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8704-1"}],"affected":[{"package":{"name":"cpio","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.11+dfsg-1ubuntu1.2+esm3"}]}],"versions":["2.11+dfsg-1ubuntu1","2.11+dfsg-1ubuntu1.1","2.11+dfsg-1ubuntu1.2","2.11+dfsg-1ubuntu1.2+esm1","2.11+dfsg-1ubuntu1.2+esm2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro","binaries":[{"binary_name":"cpio","binary_version":"2.11+dfsg-1ubuntu1.2+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-66485.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=esm-infra-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.11+dfsg-5ubuntu1.1+esm2"}]}],"versions":["2.11+dfsg-4.1ubuntu1","2.11+dfsg-5ubuntu1","2.11+dfsg-5ubuntu1.1","2.11+dfsg-5ubuntu1.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.11+dfsg-5ubuntu1.1+esm2"}],"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-66485.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.12+dfsg-6ubuntu0.18.04.4+esm1"}]}],"versions":["2.11+dfsg-6","2.12+dfsg-6","2.12+dfsg-6ubuntu0.18.04.1","2.12+dfsg-6ubuntu0.18.04.4"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.12+dfsg-6ubuntu0.18.04.4+esm1"},{"binary_name":"cpio-win32","binary_version":"2.12+dfsg-6ubuntu0.18.04.4+esm1"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-66485.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13+dfsg-2ubuntu0.4+esm1"}]}],"versions":["2.12+dfsg-9","2.12+dfsg-9ubuntu1","2.13+dfsg-1","2.13+dfsg-2","2.13+dfsg-2ubuntu0.3","2.13+dfsg-2ubuntu0.4"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.13+dfsg-2ubuntu0.4+esm1"},{"binary_version":"2.13+dfsg-2ubuntu0.4+esm1","binary_name":"cpio-win32"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-66485.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.13+dfsg-7ubuntu0.2"}]}],"versions":["2.13+dfsg-4ubuntu4","2.13+dfsg-7","2.13+dfsg-7ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.13+dfsg-7ubuntu0.2","binary_name":"cpio"},{"binary_version":"2.13+dfsg-7ubuntu0.2","binary_name":"cpio-win32"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-66485.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.15+dfsg-1ubuntu2.1"}]}],"versions":["2.13+dfsg-7.1","2.14+dfsg-1","2.15+dfsg-1","2.15+dfsg-1ubuntu1","2.15+dfsg-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.15+dfsg-1ubuntu2.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-66485.json"}},{"package":{"name":"cpio","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/cpio?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.15+dfsg-2.1ubuntu0.1"}]}],"versions":["2.15+dfsg-2ubuntu1","2.15+dfsg-2.1"],"ecosystem_specific":{"binaries":[{"binary_name":"cpio","binary_version":"2.15+dfsg-2.1ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-66485.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}