Advisory

UBUNTU-CVE-2021-38185

Also known as: CVE-2021-38185

Summary

The record has no summary.

Details

GNU cpio through 2.13 allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2021-08-08 00:15 UTC
Modified
2026-02-04 04:31 UTC

Affected packages and fixes

cpio

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 2.12+dfsg-6ubuntu0.18.04.4 (ecosystem)

Fixed versions

2.12+dfsg-6ubuntu0.18.04.4

Fix

  • Fixed version 2.12+dfsg-6ubuntu0.18.04.4
    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 20.04

Affected

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

Fixed versions

2.13+dfsg-2ubuntu0.3

Fix

  • Fixed version 2.13+dfsg-2ubuntu0.3
    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 22.04

Affected

  • introduced 0, fixed 2.13+dfsg-4ubuntu4 (ecosystem)

Fixed versions

2.13+dfsg-4ubuntu4

Fix

  • Fixed version 2.13+dfsg-4ubuntu4
    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