Affected versions
Ubuntu22.04:LTS/cpio
- Affected versions
- <2.13+dfsg-7ubuntu0.2
- Fixed version
- 2.13+dfsg-7ubuntu0.2
Ubuntu24.04:LTS/cpio
- Affected versions
- <2.15+dfsg-1ubuntu2.1
- Fixed version
- 2.15+dfsg-1ubuntu2.1
Ubuntu26.04:LTS/cpio
- Affected versions
- <2.15+dfsg-2.1ubuntu0.1
- Fixed version
- 2.15+dfsg-2.1ubuntu0.1
UbuntuPro:14.04:LTS/cpio
- Affected versions
- <2.11+dfsg-1ubuntu1.2+esm3
- Fixed version
- 2.11+dfsg-1ubuntu1.2+esm3
UbuntuPro:16.04:LTS/cpio
- Affected versions
- <2.11+dfsg-5ubuntu1.1+esm2
- Fixed version
- 2.11+dfsg-5ubuntu1.1+esm2
UbuntuPro:18.04:LTS/cpio
- Affected versions
- <2.12+dfsg-6ubuntu0.18.04.4+esm1
- Fixed version
- 2.12+dfsg-6ubuntu0.18.04.4+esm1
UbuntuPro:20.04:LTS/cpio
- 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

