UBUNTU-CVE-2021-38185

Source
https://ubuntu.com/security/CVE-2021-38185
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-38185.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-38185
Related
Published
2021-08-08T00:15:00Z
Modified
2021-08-08T00:15:00Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

Ubuntu:Pro:14.04:LTS / cpio

Package

Name
cpio
Purl
pkg:deb/ubuntu/cpio?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.11+dfsg-1ubuntu1.2+esm2

Affected versions

2.*

2.11+dfsg-1ubuntu1
2.11+dfsg-1ubuntu1.1
2.11+dfsg-1ubuntu1.2
2.11+dfsg-1ubuntu1.2+esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.11+dfsg-1ubuntu1.2+esm2",
            "binary_name": "cpio"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / cpio

Package

Name
cpio
Purl
pkg:deb/ubuntu/cpio?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.11+dfsg-5ubuntu1.1+esm1

Affected versions

2.*

2.11+dfsg-4.1ubuntu1
2.11+dfsg-5ubuntu1
2.11+dfsg-5ubuntu1.1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.11+dfsg-5ubuntu1.1+esm1",
            "binary_name": "cpio"
        }
    ]
}

Ubuntu:18.04:LTS / cpio

Package

Name
cpio
Purl
pkg:deb/ubuntu/cpio?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.12+dfsg-6ubuntu0.18.04.4

Affected versions

2.*

2.11+dfsg-6
2.12+dfsg-6
2.12+dfsg-6ubuntu0.18.04.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.12+dfsg-6ubuntu0.18.04.4",
            "binary_name": "cpio"
        },
        {
            "binary_version": "2.12+dfsg-6ubuntu0.18.04.4",
            "binary_name": "cpio-win32"
        }
    ]
}

Ubuntu:20.04:LTS / cpio

Package

Name
cpio
Purl
pkg:deb/ubuntu/cpio?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.13+dfsg-2ubuntu0.3

Affected versions

2.*

2.12+dfsg-9
2.12+dfsg-9ubuntu1
2.13+dfsg-1
2.13+dfsg-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.13+dfsg-2ubuntu0.3",
            "binary_name": "cpio"
        },
        {
            "binary_version": "2.13+dfsg-2ubuntu0.3",
            "binary_name": "cpio-win32"
        }
    ]
}

Ubuntu:22.04:LTS / cpio

Package

Name
cpio
Purl
pkg:deb/ubuntu/cpio?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.13+dfsg-4ubuntu4

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.13+dfsg-4ubuntu4",
            "binary_name": "cpio"
        },
        {
            "binary_version": "2.13+dfsg-4ubuntu4",
            "binary_name": "cpio-win32"
        }
    ]
}