Every CVE Search/ Get API key

CVE-2018-7738

In util-linux before 2.32-rc1, bash-completion/umount allows local users to gain privileges by...

7.8 HighFix available

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

0.43%Down 0.3 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.2 HighAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
bash-completion
Debian: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 less
1: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-completion
Debian:13
All versions, plus listed versions
1:2.16.0-71:2.16.0-8
None known
bash-completion
Debian:14
All versions, plus listed versions
1:2.16.0-71:2.16.0-8
None known
util-linux
Debian:12
before 2.31.1-0.5
2.31.1-0.5
util-linux
Debian:13
before 2.31.1-0.5
2.31.1-0.5
util-linux
Debian:14
before 2.31.1-0.5
2.31.1-0.5
util-linux
Debian:9
before 2.29.2-1+deb9u1, plus listed versions
2.29.2-1
2.29.2-1+deb9u1
util-linux
Mageia:6
before 2.28.2-2.1.mga6
2.28.2-2.1.mga6
util-linux
SUSE:Linux Enterprise Module for Basesystem 15
before 2.31.1-9.3.1
2.31.1-9.3.1
util-linux-systemd
SUSE:Linux Enterprise Module for Basesystem 15
before 2.31.1-9.3.1
2.31.1-9.3.1
Show 61 moreShow less
Affected packages
PackageAffectedFixed
util-linux-systemd
SUSE:Linux Enterprise Module for Server Applications 15
before 2.31.1-9.3.1
2.31.1-9.3.1
python-libmount
SUSE:Linux Enterprise Desktop 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
util-linux
SUSE:Linux Enterprise Desktop 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
util-linux-systemd
SUSE:Linux Enterprise Desktop 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
util-linux
SUSE:Linux Enterprise Software Development Kit 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
python-libmount
SUSE:Linux Enterprise Server 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
util-linux
SUSE:Linux Enterprise Server 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
util-linux-systemd
SUSE:Linux Enterprise Server 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
python-libmount
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
util-linux
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
util-linux-systemd
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
util-linux
SUSE:Linux Enterprise Workstation Extension 12 SP3
before 2.29.2-3.8.1
2.29.2-3.8.1
python-libmount
SUSE:Linux Enterprise Desktop 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
util-linux
SUSE:Linux Enterprise Desktop 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
util-linux-systemd
SUSE:Linux Enterprise Desktop 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
util-linux
SUSE:Linux Enterprise Software Development Kit 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
python-libmount
SUSE:Linux Enterprise Server 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
util-linux
SUSE:Linux Enterprise Server 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
util-linux-systemd
SUSE:Linux Enterprise Server 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
python-libmount
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
util-linux
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
util-linux-systemd
SUSE:Linux Enterprise Server for SAP Applications 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
util-linux
SUSE:Linux Enterprise Workstation Extension 12 SP3
before 2.29.2-3.12.1
2.29.2-3.12.1
python-libmount
SUSE:OpenStack Cloud 7
before 2.28-44.18.38
2.28-44.18.38
util-linux
SUSE:OpenStack Cloud 7
before 2.28-44.18.18
2.28-44.18.18
util-linux-systemd
SUSE:OpenStack Cloud 7
before 2.28-44.18.25
2.28-44.18.25
python-libmount
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 2.28-44.18.38
2.28-44.18.38
util-linux
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 2.28-44.18.18
2.28-44.18.18
util-linux-systemd
SUSE:Linux Enterprise Server for SAP Applications 12 SP2
before 2.28-44.18.25
2.28-44.18.25
python-libmount
SUSE:Linux Enterprise Server 12 SP2-LTSS
before 2.28-44.18.38
2.28-44.18.38
util-linux
SUSE:Linux Enterprise Server 12 SP2-LTSS
before 2.28-44.18.18
2.28-44.18.18
util-linux-systemd
SUSE:Linux Enterprise Server 12 SP2-LTSS
before 2.28-44.18.25
2.28-44.18.25
python-libmount
SUSE:Linux Enterprise Server 12 SP2-BCL
before 2.28-44.18.38
2.28-44.18.38
util-linux
SUSE:Linux Enterprise Server 12 SP2-BCL
before 2.28-44.18.18
2.28-44.18.18
util-linux-systemd
SUSE:Linux Enterprise Server 12 SP2-BCL
before 2.28-44.18.25
2.28-44.18.25
python-libmount
SUSE:Enterprise Storage 4
before 2.28-44.18.38
2.28-44.18.38
util-linux
SUSE:Enterprise Storage 4
before 2.28-44.18.18
2.28-44.18.18
util-linux-systemd
SUSE:Enterprise Storage 4
before 2.28-44.18.25
2.28-44.18.25
util-linux
SUSE:Linux Enterprise Software Development Kit 12 SP5
before 2.33.2-4.33.1
2.33.2-4.33.1
python-libmount
SUSE:Linux Enterprise Server 12 SP5
before 2.33.2-4.33.1
2.33.2-4.33.1
util-linux
SUSE:Linux Enterprise Server 12 SP5
before 2.33.2-4.33.1
2.33.2-4.33.1
util-linux-systemd
SUSE:Linux Enterprise Server 12 SP5
before 2.33.2-4.33.1
2.33.2-4.33.1
python-libmount
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 2.33.2-4.33.1
2.33.2-4.33.1
util-linux
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 2.33.2-4.33.1
2.33.2-4.33.1
util-linux-systemd
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 2.33.2-4.33.1
2.33.2-4.33.1
util-linux
SUSE:Linux Enterprise Workstation Extension 12 SP5
before 2.33.2-4.33.1
2.33.2-4.33.1
python-libmount
openSUSE:Leap 15.4
before 2.31.1-150000.9.24.1
2.31.1-150000.9.24.1
python-libmount
openSUSE:Leap 15.5
before 2.31.1-150000.9.24.1
2.31.1-150000.9.24.1
util-linux
SUSE: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-systemd
SUSE: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
SUSE: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-systemd
SUSE: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
SUSE:Linux Enterprise Server 15 SP1-LTSS
before 2.33.2-150100.4.40.1
2.33.2-150100.4.40.1
util-linux-systemd
SUSE:Linux Enterprise Server 15 SP1-LTSS
before 2.33.2-150100.4.40.1
2.33.2-150100.4.40.1
util-linux
SUSE:Linux Enterprise Server 15 SP2-LTSS
before 2.33.2-150100.4.40.1
2.33.2-150100.4.40.1
util-linux-systemd
SUSE:Linux Enterprise Server 15 SP2-LTSS
before 2.33.2-150100.4.40.1
2.33.2-150100.4.40.1
util-linux
SUSE: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-systemd
SUSE: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
SUSE: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-systemd
SUSE: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
Ubuntu: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 less
2.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

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 24 moreShow less
MoveEnter Open