All reports
Medium

UBUNTU-CVE-2026-66485

Affected versions

Affected versions
<2.13+dfsg-7ubuntu0.2
Fixed version
2.13+dfsg-7ubuntu0.2
Affected versions
<2.15+dfsg-1ubuntu2.1
Fixed version
2.15+dfsg-1ubuntu2.1
Affected versions
<2.15+dfsg-2.1ubuntu0.1
Fixed version
2.15+dfsg-2.1ubuntu0.1
Affected versions
<2.11+dfsg-1ubuntu1.2+esm3
Fixed version
2.11+dfsg-1ubuntu1.2+esm3
Affected versions
<2.11+dfsg-5ubuntu1.1+esm2
Fixed version
2.11+dfsg-5ubuntu1.1+esm2
Affected versions
<2.12+dfsg-6ubuntu0.18.04.4+esm1
Fixed version
2.12+dfsg-6ubuntu0.18.04.4+esm1
Affected versions
<2.13+dfsg-2ubuntu0.4+esm1
Fixed version
2.13+dfsg-2ubuntu0.4+esm1

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

Links