| Name | CVE-2018-7738 |
| Description | In 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-4134-1 |
| Debian Bugs | 892179 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| bash-completion (PTS) | bullseye | 1:2.11-2 | vulnerable |
| bookworm | 1:2.11-6 | vulnerable | |
| forky, sid, trixie | 1:2.16.0-7 | vulnerable | |
| util-linux (PTS) | bullseye (security), bullseye | 2.36.1-8+deb11u2 | fixed |
| bookworm | 2.38.1-5+deb12u3 | fixed | |
| bookworm (security) | 2.38.1-5+deb12u1 | fixed | |
| trixie | 2.41-5 | fixed | |
| forky | 2.41.2-1 | fixed | |
| sid | 2.41.2-4 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| bash-completion | source | (unstable) | (unfixed) | unimportant | ||
| util-linux | source | wheezy | (not affected) | |||
| util-linux | source | jessie | (not affected) | |||
| util-linux | source | stretch | 2.29.2-1+deb9u1 | DSA-4134-1 | ||
| util-linux | source | (unstable) | 2.31.1-0.5 | 892179 |
[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)