CVE-2026-66485

Publication date 10 August 2026

Last updated 1 September 2026


Ubuntu priority

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

Status

Package Ubuntu Release Status
cpio 26.04 LTS resolute
Fixed 2.15+dfsg-2.1ubuntu0.1
24.04 LTS noble
Fixed 2.15+dfsg-1ubuntu2.1
22.04 LTS jammy
Fixed 2.13+dfsg-7ubuntu0.2
20.04 LTS focal
Fixed 2.13+dfsg-2ubuntu0.4+esm1
18.04 LTS bionic
Fixed 2.12+dfsg-6ubuntu0.18.04.4+esm1
16.04 LTS xenial
Fixed 2.11+dfsg-5ubuntu1.1+esm2
14.04 LTS trusty
Fixed 2.11+dfsg-1ubuntu1.2+esm3

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro 30-day free trial

Patch details

For informational purposes only. We recommend not to cherry-pick updates. How can I get the fixes?

Package Patch details
cpio

Severity score breakdown

CVSS version: CVSS v4.0

Base score 4.6 · Medium

Vector: 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

References

Related Ubuntu Security Notices (USN)

    • USN-8704-1
    • GNU cpio vulnerabilities
    • 31 August 2026

Other references


Access our resources on patching vulnerabilities