Loop with Unreachable Exit Condition ('Infinite Loop') Affecting tar package, versions <1.30+dfsg-3.1
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-DEBIAN12-TAR-1560768
- published 26 Dec 2018
- disclosed 26 Dec 2018
Introduced: 26 Dec 2018
CVE-2018-20482 Open this link in a new tabHow to fix?
Upgrade Debian:12
tar
to version 1.30+dfsg-3.1 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream tar
package and not the tar
package as distributed by Debian
.
See How to fix?
for Debian:12
relevant fixed versions and status.
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).
References
- https://security-tracker.debian.org/tracker/CVE-2018-20482
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-20482
- https://lists.debian.org/debian-lts-announce/2018/12/msg00023.html
- https://security.gentoo.org/glsa/201903-05
- http://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42ccd1e2377945fd0414eca1a49294bff454
- http://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html
- https://news.ycombinator.com/item?id=18745431
- https://twitter.com/thatcks/status/1076166645708668928
- https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00077.html
- http://www.securityfocus.com/bid/106354
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2018-20482
- https://lists.debian.org/debian-lts-announce/2021/11/msg00025.html