Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649812 (CVE-2018-7738) - <sys-apps/util-linux-2.30.2-r1: code execution in bash-completion for umount (CVE-2018-7738)
Summary: <sys-apps/util-linux-2.30.2-r1: code execution in bash-completion for umount ...
Alias: CVE-2018-7738
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Security
Whiteboard: A1 [glsa+ cve]
Depends on:
Reported: 2018-03-07 08:20 UTC by Agostino Sarubbo
Modified: 2018-03-07 19:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2018-03-07 08:20:20 UTC
From ${URL} :

Björn Bosselmann reported to the Debian bugtracker[0], that the umount
bash-completion as provided by the util-linux source does not escape
mount point paths. A user with privileges to mount filesystems can
embbed shell commands in a mountpoint name and taking advantage of
this flaw to gain privilgeges.

The issue was (indirectly) in [1] while adressing another issue.

MITRE has assigned 'CVE-2018-7738' for this issue.



@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Larry the Git Cow gentoo-dev 2018-03-07 09:28:01 UTC
The bug has been referenced in the following commit(s):

commit da1d16289d67d7d99ec17e1d04f0aa0bbab5c7b8
Author:     Lars Wendler <>
AuthorDate: 2018-03-07 09:27:46 +0000
Commit:     Lars Wendler <>
CommitDate: 2018-03-07 09:27:46 +0000

    sys-apps/util-linux: Revbump fix bash-completion umount code execution
    Committed straight to stable.
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 .../util-linux-2.32_rc2-umount_completion.patch    | 41 ++++++++++++++++++++++
 ...x-2.30.2.ebuild => util-linux-2.30.2-r1.ebuild} |  4 +++
 ...x-2.31.1.ebuild => util-linux-2.31.1-r1.ebuild} |  4 +++
 3 files changed, 49 insertions(+)}
Comment 2 Thomas Deutschmann gentoo-dev Security 2018-03-07 14:55:43 UTC
New GLSA request filed.
Comment 3 GLSAMaker/CVETool Bot gentoo-dev 2018-03-07 19:10:17 UTC
This issue was resolved and addressed in
 GLSA 201803-02 at
by GLSA coordinator Thomas Deutschmann (whissi).