UBUNTU-CVE-2021-20197

Source
https://ubuntu.com/security/CVE-2021-20197
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20197.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-20197
Related
Published
2021-03-26T17:15:00Z
Modified
2021-03-26T17:15:00Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
[none]
Details

There is an open race window when writing output in the following utilities in GNU binutils version 2.35 and earlier:ar, objcopy, strip, ranlib. When these utilities are run as a privileged user (presumably as part of a script updating binaries across different users), an unprivileged user can trick these utilities into getting ownership of arbitrary files through a symlink.

References

Affected packages

Ubuntu:Pro:14.04:LTS / binutils

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.23.52.20130913-0ubuntu1
2.23.90.20131017-1ubuntu1
2.23.90.20131116-1ubuntu1
2.23.91.20131123-1ubuntu1
2.24-1ubuntu1
2.24-1ubuntu2
2.24-2ubuntu1
2.24-2ubuntu2
2.24-2ubuntu3
2.24-4ubuntu1
2.24-5ubuntu1
2.24-5ubuntu2
2.24-5ubuntu3
2.24-5ubuntu3.1
2.24-5ubuntu13
2.24-5ubuntu14
2.24-5ubuntu14.1
2.24-5ubuntu14.2
2.24-5ubuntu14.2+esm1
2.24-5ubuntu14.2+esm2
2.24-5ubuntu14.2+esm3
2.24-5ubuntu14.2+esm5
2.24-5ubuntu14.2+esm6

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:Pro:16.04:LTS / binutils

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.25.1-6ubuntu1
2.25.51.20151022-0ubuntu2
2.25.51.20151022-0ubuntu3
2.25.51.20151027-0ubuntu1
2.25.51.20151028-0ubuntu1
2.25.51.20151106-0ubuntu1
2.25.51.20151113-1ubuntu1
2.25.51.20151113-2ubuntu1
2.25.90.20151125-1ubuntu1
2.25.90.20151125-2ubuntu1
2.25.90.20151211-0ubuntu1
2.25.90.20151211-0ubuntu2
2.25.90.20160101-1ubuntu1
2.25.90.20160101-1ubuntu2
2.26-2ubuntu1
2.26-3ubuntu1
2.26-4ubuntu1
2.26-5ubuntu1
2.26-6ubuntu1
2.26-7ubuntu2
2.26-8ubuntu1
2.26-8ubuntu2
2.26-8ubuntu2.1
2.26.1-1ubuntu1~16.04
2.26.1-1ubuntu1~16.04.1
2.26.1-1ubuntu1~16.04.3
2.26.1-1ubuntu1~16.04.4
2.26.1-1ubuntu1~16.04.5
2.26.1-1ubuntu1~16.04.6
2.26.1-1ubuntu1~16.04.7
2.26.1-1ubuntu1~16.04.8
2.26.1-1ubuntu1~16.04.8+esm1
2.26.1-1ubuntu1~16.04.8+esm3
2.26.1-1ubuntu1~16.04.8+esm4
2.26.1-1ubuntu1~16.04.8+esm5
2.26.1-1ubuntu1~16.04.8+esm6
2.26.1-1ubuntu1~16.04.8+esm7
2.26.1-1ubuntu1~16.04.8+esm9

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:Pro:18.04:LTS / binutils

Package

Name
binutils
Purl
pkg:deb/ubuntu/binutils?arch=src?distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.29.1-4ubuntu1
2.29.1-6ubuntu1
2.29.1-7ubuntu1
2.29.1-8ubuntu1
2.29.1-10ubuntu1
2.29.1-12ubuntu1
2.30-4ubuntu1
2.30-5ubuntu1
2.30-7ubuntu1
2.30-8ubuntu1
2.30-9ubuntu1
2.30-10ubuntu1
2.30-11ubuntu1
2.30-14ubuntu2
2.30-15ubuntu1
2.30-20ubuntu2~18.04
2.30-21ubuntu1~18.04
2.30-21ubuntu1~18.04.1
2.30-21ubuntu1~18.04.2
2.30-21ubuntu1~18.04.3
2.30-21ubuntu1~18.04.4
2.30-21ubuntu1~18.04.5
2.30-21ubuntu1~18.04.7
2.30-21ubuntu1~18.04.8
2.30-21ubuntu1~18.04.9
2.30-21ubuntu1~18.04.9+esm1
2.30-21ubuntu1~18.04.9+esm3

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:20.04:LTS / binutils

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.33-2ubuntu1
2.33.1-1ubuntu1
2.33.1-5ubuntu1
2.33.1-6ubuntu1
2.33.1-6ubuntu3
2.33.90.20200122-1ubuntu2
2.34-1ubuntu1
2.34-3ubuntu1
2.34-4ubuntu1
2.34-5ubuntu1
2.34-6ubuntu1
2.34-6ubuntu1.1
2.34-6ubuntu1.3
2.34-6ubuntu1.4
2.34-6ubuntu1.5
2.34-6ubuntu1.6
2.34-6ubuntu1.7
2.34-6ubuntu1.8
2.34-6ubuntu1.9

Ecosystem specific

{
    "ubuntu_priority": "low"
}