CVE-2018-7738

NameCVE-2018-7738
DescriptionIn util-linux before 2.32-rc1, bash-completion/umount allows local users to gain privileges by embedding shell commands in a mountpoint name, which is mishandled during a umount command (within Bash) by a different user, as demonstrated by logging in as root and entering umount followed by a tab character for autocompletion.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-4134-1
NVD severityhigh (attack range: local)
Debian Bugs892179

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
bash-completion (PTS)jessie1:2.1-4vulnerable
stretch1:2.1-4.3vulnerable
buster, sid1:2.8-4vulnerable
util-linux (PTS)jessie2.25.2-6fixed
stretch (security), stretch2.29.2-1+deb9u1fixed
buster, sid2.33-0.2fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
bash-completionsource(unstable)(unfixed)unimportant
util-linuxsource(unstable)2.31.1-0.5high892179
util-linuxsourcejessie(not affected)
util-linuxsourcestretch2.29.2-1+deb9u1highDSA-4134-1
util-linuxsourcewheezy(not affected)

Notes

[jessie] - util-linux <not-affected> (umount completion added later)
[wheezy] - util-linux <not-affected> (umount completion added later)
Fix in bash-completion's from util-linux:
https://github.com/karelzak/util-linux/commit/75f03badd7ed9f1dd951863d75e756883d3acc55#diff-a47601b5dbce9dc06c3af1deb02758c7
src:util-linux/2.28-1 takes over the umount completion from
src:bash-completion (which in turn starting from 1:2.1-4.3
does not provide the umount completion in the binary packaage)

Search for package or bug name: Reporting problems