CVE-2018-20482

NameCVE-2018-20482
DescriptionGNU 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).
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1623-1, DLA-2830-1, ELA-69-1
Debian Bugs917377

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
tar (PTS)jessie, jessie (lts)1.27.1-2+deb8u2fixed
stretch (security), stretch (lts), stretch1.29b-1.1+deb9u1fixed
buster (security), buster, buster (lts)1.30+dfsg-6+deb10u1fixed
bullseye1.34+dfsg-1+deb11u1fixed
bookworm1.34+dfsg-1.2+deb12u1fixed
sid, trixie1.35+dfsg-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
tarsourcewheezy1.26+dfsg-0.1+deb7u2ELA-69-1
tarsourcejessie1.27.1-2+deb8u2DLA-1623-1
tarsourcestretch1.29b-1.1+deb9u1DLA-2830-1
tarsource(unstable)1.30+dfsg-3.1917377

Notes

https://utcc.utoronto.ca/~cks/space/blog/sysadmin/TarFindingTruncateBug
https://news.ycombinator.com/item?id=18745431
https://twitter.com/thatcks/status/1076166645708668928
https://lists.gnu.org/archive/html/bug-tar/2018-12/msg00023.html
Fixed by https://git.savannah.gnu.org/cgit/tar.git/commit/?id=c15c42c

Search for package or bug name: Reporting problems