Impact
GNU cpio contains an uncontrolled memory allocation flaw in its make_path function, where alloca allocates stack memory directly from the length of a pathname extracted from an archive. A malicious cpio file with a deeply nested pathname can trigger an unbounded stack allocation, causing a stack overflow and crashing the cpio process. This flaw (CWE‑789) results in a denial of service for the user running the extraction.
Affected Systems
All releases of GNU cpio prior to commit 3cd514031371d8aeeaf2048aa10103e02831aaa9 contain the flaw. The patch that resolves the issue is incorporated in newer releases of the project.
Risk and Exploitability
The CVSS score of 4.6 indicates a moderate risk, and the EPSS score of < 1% signals a very low probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an attacker to supply a malicious cpio archive to a user or service that performs extraction. Successful execution results in a crash of the cpio process, thereby denying service to the current session.
OpenCVE Enrichment