Advisory

UBUNTU-CVE-2026-66485

Also known as: CVE-2026-66485

Summary

The record has no summary.

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

Severity

Not rated by the source.

Dates

Published
2026-08-10 11:17 UTC
Modified
2026-09-01 15:47 UTC

Affected packages and fixes

cpio

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.13+dfsg-7ubuntu0.2 (ecosystem)

Fixed versions

2.13+dfsg-7ubuntu0.2

Fix

  • Fixed version 2.13+dfsg-7ubuntu0.2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

cpio

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2.15+dfsg-1ubuntu2.1 (ecosystem)

Fixed versions

2.15+dfsg-1ubuntu2.1

Fix

  • Fixed version 2.15+dfsg-1ubuntu2.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

cpio

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 2.15+dfsg-2.1ubuntu0.1 (ecosystem)

Fixed versions

2.15+dfsg-2.1ubuntu0.1

Fix

  • Fixed version 2.15+dfsg-2.1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences