CVE-2018-20482
tar: Infinite read loop in sparse_dump_region function in sparse.c
Overview
Description
GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to cause a denial of service (infinite read loop in sparse_dump_region in sparse.c) by modifying a file that is supposed to be archived by a different user's process (e.g., a system backup running as root).
Source: OX vulnerability database
Severity
4.7 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-835
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 21 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | tar | wont fix |
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | tar +1 | 1.27.1-15.6.3 | SUSE-SU-2020:2806-1 |
SUSE Linux Enterprise Micro 3 releases · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 5.0 | tar | 1.34-150000.3.12.1 | SUSE-SU-2022:1548-1 |
| 5.1 | tar | 1.34-150000.3.12.1 | SUSE-SU-2022:1548-1 |
| 5.2 | tar | 1.34-150000.3.12.1 | SUSE-SU-2022:1548-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | tar | 1.31-r0 |
| 3.23 | tar | 1.31-r0 |
| 3.24 | tar | 1.31-r0 |
| edge | tar | 1.31-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | tar | 1.30+dfsg-3.1 |
| 12 | tar | 1.30+dfsg-3.1 |
| 13 | tar | 1.30+dfsg-3.1 |
| 14 | tar | 1.30+dfsg-3.1 |
| 9 | tar | 1.29b-1.1+deb9u1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| tar | 1.30+dfsg-3.1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | tar +5 | 1.34-2.2 | openSUSE-SU-2024:11422-1 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-tar | 1.30+dfsg-3.1 |
| 13 | rootio-tar | 1.30+dfsg-3.1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | seal-tar +1 | 2:1.26-35.el7+sp999 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | tar | 1.29b-2ubuntu0.2 |
| 18.04-ESM | tar | 1.29b-2ubuntu0.2 |
References
- git.savannah.gnu.org http://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454
- lists.gnu.org http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html
- lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00077.html
- www.securityfocus.com http://www.securityfocus.com/bid/106354
- access.redhat.com https://access.redhat.com/security/cve/CVE-2018-20482
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2018/12/msg00023.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/11/msg00025.html
- news.ycombinator.com https://news.ycombinator.com/item?id=18745431
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2018-20482
Show all 15 references
- security.gentoo.org https://security.gentoo.org/glsa/201903-05
- twitter.com https://twitter.com/thatcks/status/1076166645708668928
- ubuntu.com https://ubuntu.com/security/notices/USN-4692-1
- utcc.utoronto.ca https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2018-20482
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.