CVE-2018-7738
In util-linux before 2.32-rc1, bash-completion/umount allows local users to gain privileges by...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
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.
- Record
CVE-2018-7738- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.2 High
AV:L/AC:L/Au:N/C:C/I:C/A:C - Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-7738- Updated
- 2026-11-02
EUVDEUVD-2018-19453 No score
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.
- Record
EUVD-2018-19453- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-jh5x-7c5f-4c44
7.8
In util-linux before 2.32-rc1, bash-completion/umount allows local users to gain privileges by...
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.
- Record
GHSA-jh5x-7c5f-4c44- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
7.8
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.
- Record
CVE-2018-7738- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-7738
7.8
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.
- Record
DEBIAN-CVE-2018-7738- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 10 moreShow less
OSVUBUNTU-CVE-2018-7738
7.8
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.
- Record
UBUNTU-CVE-2018-7738- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2018-0237 No score
Updated util-linux packages fix security vulnerability
A command injection flaw was found in the way util-linux implements umount autocompletion in Bash. An attacker with the ability to mount a filesystem with custom mount points may execute arbitrary commands on behalf of the user who triggers the umount autocompletion (CVE-2018-7738).
- Record
MGASA-2018-0237- Updated
- 2026-11-02
OSVSUSE-SU-2018:2066-1 No score
Security update for util-linux
This update for util-linux fixes the following security issue:
- CVE-2018-7738: Fix local vulnerability using embedded shell commands in a mountpoint name (bsc#1084300)
- Record
SUSE-SU-2018:2066-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:2071-1 No score
Security update for util-linux
This update for util-linux fixes the following issues:
This non-security issue was fixed:
- CVE-2018-7738: bash-completion/umount allowed local users to gain privileges by embedding shell commands in a mountpoint name, which was mishandled during a umount command by a different user (bsc#1084300).
These non-security issues were fixed:
- Fixed crash loop in lscpu (bsc#1072947).
- Fixed possible segfault of umount -a
- Fixed mount -a on NFS bind mounts (bsc#1080740).
- Fixed lsblk on NVMe (bsc#1078662).
- Record
SUSE-SU-2018:2071-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:3926-1 No score
Security update for util-linux
This update for util-linux fixes the following issues:
This non-security issue was fixed:
- CVE-2018-7738: bash-completion/umount allowed local users to gain privileges by embedding shell commands in a mountpoint name, which was mishandled during a umount command by a different user (bsc#1084300).
These non-security issues were fixed:
- Fixed crash loop in lscpu (bsc#1072947).
- Fixed possible segfault of umount -a
- Fixed mount -a on NFS bind mounts (bsc#1080740).
- Fixed lsblk on NVMe (bsc#1078662).
- Record
SUSE-SU-2018:3926-1- Updated
- 2026-11-02
OSVSUSE-SU-2019:0390-1 No score
Security update for util-linux
This update for util-linux fixes the following issues:
This non-security issue was fixed:
- CVE-2018-7738: bash-completion/umount allowed local users to gain privileges by embedding shell commands in a mountpoint name, which was mishandled during a umount command by a different user (bsc#1084300).
These non-security issues were fixed:
- Fixed crash loop in lscpu (bsc#1072947).
- Fixed possible segfault of umount -a
- Fixed mount -a on NFS bind mounts (bsc#1080740).
- Fixed lsblk on NVMe (bsc#1078662).
- Record
SUSE-SU-2019:0390-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:3268-1 No score
Security update for util-linux
This update for util-linux fixes the following issues:
- CVE-2018-7738: Fixed shell code injection in umount bash-completions. (bsc#1213865, bsc#1084300)
- Record
SUSE-SU-2023:3268-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:4372-1 No score
Security update for util-linux
This update for util-linux fixes the following issues:
- CVE-2018-7738: Fixed shell code injection in umount bash-completions (bsc#1213865).
- Record
SUSE-SU-2023:4372-1- Updated
- 2026-11-02
OSVSUSE-SU-2023:4512-1 No score
Security update for util-linux
This update for util-linux fixes the following issues:
- CVE-2018-7738: Fixed shell code injection in umount bash-completions (bsc#1213865).
- Record
SUSE-SU-2023:4512-1- Updated
- 2026-11-02
OSVUSN-4512-1 No score
util-linux vulnerability
It was discovered that the umount bash completion script shipped in util-linux incorrectly handled certain mountpoints. If a local attacker were able to create arbitrary mountpoints, another user could be tricked into executing arbitrary code when attempting to run the umount command with bash completion.
- Record
USN-4512-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
bash-completionDebian:12 |
All versions, plus listed versions 1:2.11-61:2.11-71:2.11-81:2.12.0-11:2.13.0-1 Show 10 moreShow less1:2.14.0-11:2.14.0-21:2.16.0-11:2.16.0-21:2.16.0-31:2.16.0-41:2.16.0-51:2.16.0-61:2.16.0-71:2.16.0-8 |
None known |
bash-completionDebian:13 |
All versions, plus listed versions 1:2.16.0-71:2.16.0-8 |
None known |
bash-completionDebian:14 |
All versions, plus listed versions 1:2.16.0-71:2.16.0-8 |
None known |
util-linuxDebian:12 |
before 2.31.1-0.5 | 2.31.1-0.5 |
util-linuxDebian:13 |
before 2.31.1-0.5 | 2.31.1-0.5 |
util-linuxDebian:14 |
before 2.31.1-0.5 | 2.31.1-0.5 |
util-linuxDebian:9 |
before 2.29.2-1+deb9u1, plus listed versions 2.29.2-1 |
2.29.2-1+deb9u1 |
util-linuxMageia:6 |
before 2.28.2-2.1.mga6 | 2.28.2-2.1.mga6 |
util-linuxSUSE:Linux Enterprise Module for Basesystem 15 |
before 2.31.1-9.3.1 | 2.31.1-9.3.1 |
util-linux-systemdSUSE:Linux Enterprise Module for Basesystem 15 |
before 2.31.1-9.3.1 | 2.31.1-9.3.1 |
Show 61 moreShow less
| Package | Affected | Fixed |
|---|---|---|
util-linux-systemdSUSE:Linux Enterprise Module for Server Applications 15 |
before 2.31.1-9.3.1 | 2.31.1-9.3.1 |
python-libmountSUSE:Linux Enterprise Desktop 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
util-linuxSUSE:Linux Enterprise Desktop 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
util-linux-systemdSUSE:Linux Enterprise Desktop 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
util-linuxSUSE:Linux Enterprise Software Development Kit 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
python-libmountSUSE:Linux Enterprise Server 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
util-linuxSUSE:Linux Enterprise Server 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
util-linux-systemdSUSE:Linux Enterprise Server 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
python-libmountSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
util-linuxSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
util-linux-systemdSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
util-linuxSUSE:Linux Enterprise Workstation Extension 12 SP3 |
before 2.29.2-3.8.1 | 2.29.2-3.8.1 |
python-libmountSUSE:Linux Enterprise Desktop 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
util-linuxSUSE:Linux Enterprise Desktop 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
util-linux-systemdSUSE:Linux Enterprise Desktop 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
util-linuxSUSE:Linux Enterprise Software Development Kit 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
python-libmountSUSE:Linux Enterprise Server 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
util-linuxSUSE:Linux Enterprise Server 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
util-linux-systemdSUSE:Linux Enterprise Server 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
python-libmountSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
util-linuxSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
util-linux-systemdSUSE:Linux Enterprise Server for SAP Applications 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
util-linuxSUSE:Linux Enterprise Workstation Extension 12 SP3 |
before 2.29.2-3.12.1 | 2.29.2-3.12.1 |
python-libmountSUSE:OpenStack Cloud 7 |
before 2.28-44.18.38 | 2.28-44.18.38 |
util-linuxSUSE:OpenStack Cloud 7 |
before 2.28-44.18.18 | 2.28-44.18.18 |
util-linux-systemdSUSE:OpenStack Cloud 7 |
before 2.28-44.18.25 | 2.28-44.18.25 |
python-libmountSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 2.28-44.18.38 | 2.28-44.18.38 |
util-linuxSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 2.28-44.18.18 | 2.28-44.18.18 |
util-linux-systemdSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 2.28-44.18.25 | 2.28-44.18.25 |
python-libmountSUSE:Linux Enterprise Server 12 SP2-LTSS |
before 2.28-44.18.38 | 2.28-44.18.38 |
util-linuxSUSE:Linux Enterprise Server 12 SP2-LTSS |
before 2.28-44.18.18 | 2.28-44.18.18 |
util-linux-systemdSUSE:Linux Enterprise Server 12 SP2-LTSS |
before 2.28-44.18.25 | 2.28-44.18.25 |
python-libmountSUSE:Linux Enterprise Server 12 SP2-BCL |
before 2.28-44.18.38 | 2.28-44.18.38 |
util-linuxSUSE:Linux Enterprise Server 12 SP2-BCL |
before 2.28-44.18.18 | 2.28-44.18.18 |
util-linux-systemdSUSE:Linux Enterprise Server 12 SP2-BCL |
before 2.28-44.18.25 | 2.28-44.18.25 |
python-libmountSUSE:Enterprise Storage 4 |
before 2.28-44.18.38 | 2.28-44.18.38 |
util-linuxSUSE:Enterprise Storage 4 |
before 2.28-44.18.18 | 2.28-44.18.18 |
util-linux-systemdSUSE:Enterprise Storage 4 |
before 2.28-44.18.25 | 2.28-44.18.25 |
util-linuxSUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 2.33.2-4.33.1 | 2.33.2-4.33.1 |
python-libmountSUSE:Linux Enterprise Server 12 SP5 |
before 2.33.2-4.33.1 | 2.33.2-4.33.1 |
util-linuxSUSE:Linux Enterprise Server 12 SP5 |
before 2.33.2-4.33.1 | 2.33.2-4.33.1 |
util-linux-systemdSUSE:Linux Enterprise Server 12 SP5 |
before 2.33.2-4.33.1 | 2.33.2-4.33.1 |
python-libmountSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 2.33.2-4.33.1 | 2.33.2-4.33.1 |
util-linuxSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 2.33.2-4.33.1 | 2.33.2-4.33.1 |
util-linux-systemdSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 2.33.2-4.33.1 | 2.33.2-4.33.1 |
util-linuxSUSE:Linux Enterprise Workstation Extension 12 SP5 |
before 2.33.2-4.33.1 | 2.33.2-4.33.1 |
python-libmountopenSUSE:Leap 15.4 |
before 2.31.1-150000.9.24.1 | 2.31.1-150000.9.24.1 |
python-libmountopenSUSE:Leap 15.5 |
before 2.31.1-150000.9.24.1 | 2.31.1-150000.9.24.1 |
util-linuxSUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linux-systemdSUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linuxSUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linux-systemdSUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linuxSUSE:Linux Enterprise Server 15 SP1-LTSS |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linux-systemdSUSE:Linux Enterprise Server 15 SP1-LTSS |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linuxSUSE:Linux Enterprise Server 15 SP2-LTSS |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linux-systemdSUSE:Linux Enterprise Server 15 SP2-LTSS |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linuxSUSE:Linux Enterprise Server for SAP Applications 15 SP1 |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linux-systemdSUSE:Linux Enterprise Server for SAP Applications 15 SP1 |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linuxSUSE:Linux Enterprise Server for SAP Applications 15 SP2 |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linux-systemdSUSE:Linux Enterprise Server for SAP Applications 15 SP2 |
before 2.33.2-150100.4.40.1 | 2.33.2-150100.4.40.1 |
util-linuxUbuntu:18.04:LTS |
before 2.31.1-0.4ubuntu3.7, plus listed versions 2.30.1-0ubuntu42.30.2-0.1ubuntu12.30.2-0.1ubuntu22.30.2-0.1ubuntu32.31.1-0.4ubuntu2 Show 7 moreShow less2.31.1-0.4ubuntu32.31.1-0.4ubuntu3.12.31.1-0.4ubuntu3.22.31.1-0.4ubuntu3.32.31.1-0.4ubuntu3.42.31.1-0.4ubuntu3.52.31.1-0.4ubuntu3.6 |
2.31.1-0.4ubuntu3.7 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-7738 is a high vulnerability (CVSS 7.8) in Kernel Util-linux, published March 6, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.43%, the 37th percentile. Fixed in util-linux 2.31.1-0.5.
References
github.com/karelzak/util-linux/issues/539
debian.org/security/2018/dsa-4134
securityfocus.com/bid/103367
bugs.debian.org/892179
github.com/karelzak/util-linux/commit/75f03badd7ed9f1dd951863d75e756883d3acc55
usn.ubuntu.com/4512-1
Show 24 moreShow less
security.netapp.com/advisory/ntap-20241213-0002
nvd.nist.gov/vuln/detail/CVE-2018-7738
github.com/advisories/GHSA-jh5x-7c5f-4c44
security-tracker.debian.org/tracker/CVE-2018-7738
advisories.mageia.org/MGASA-2018-0237.html
bugs.mageia.org/show_bug.cgi?id=22726
lists.fedoraproject.org/archives/list/[email protected]/thread/N76EQ5XFDZ7L4B2EBFLEF5PK476OERQB
suse.com/support/update/announcement/2018/suse-su-20182066-1
bugzilla.suse.com/1084300
suse.com/security/cve/CVE-2018-7738
suse.com/support/update/announcement/2018/suse-su-20182071-1
bugzilla.suse.com/1072947
bugzilla.suse.com/1078662
bugzilla.suse.com/1080740
suse.com/support/update/announcement/2018/suse-su-20183926-1
suse.com/support/update/announcement/2019/suse-su-20190390-1
suse.com/support/update/announcement/2023/suse-su-20233268-1
bugzilla.suse.com/1194038
bugzilla.suse.com/1213865
suse.com/support/update/announcement/2023/suse-su-20234372-1
suse.com/support/update/announcement/2023/suse-su-20234512-1
ubuntu.com/security/CVE-2018-7738
ubuntu.com/security/notices/USN-4512-1
cve.org/CVERecord?id=CVE-2018-7738