REDHAT-BUG-2519648: High severity util-linux util-linux vulnerability
The SUID binary /usr/bin/mount from util-linux reads the LIBMOUNTFORCEMOUNT2 environment variable via an unsafe getenv() call rather than safegetenv(), even when running with elevated privileges. An unprivileged local user can set LIBMOUNTFORCEMOUNT2=always to force mount(8) onto the legacy mount(2) code path, which performs a bind mount followed by a separate remount/propagation syscall to apply security flags such as nosuid and noexec. During the window between these two syscalls, the mounted filesystem is missing those protections, allowing the attacker to execute a SUID/SGID binary from the newly mounted filesystem before the restrictions are applied, resulting in local privilege escalation to root. Affects util-linux v2.39.1 through v2.43-devel (current master); unfixed as of the June 16, 2026 advisory. Reported upstream by Xinyao Hu. GHSA-67r7-8m5w-22wx.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to exploitation?
Systems with an affected util-linux version where /usr/bin/mount is installed as a SUID binary are exposed to a local unprivileged user. The issue affects util-linux v2.39.1 through v2.43-devel, according to the advisory data.
What does an attacker need to exploit this issue?
The attacker needs local unprivileged access and must be able to invoke the SUID mount(8) binary with LIBMOUNT_FORCE_MOUNT2=always in its environment. Exploitation relies on mounting a filesystem containing a SUID or SGID executable that can be run during the brief interval before nosuid and noexec protections are applied.
Are default mount security flags sufficient to prevent exploitation?
No. When the environment variable forces the legacy mount(2) path, flags such as nosuid and noexec are applied only after an initial bind mount, leaving a temporary interval in which they are absent.
How can administrators determine whether a system is potentially affected?
Check whether the installed util-linux version falls between v2.39.1 and v2.43-devel and whether /usr/bin/mount has the SUID permission bit. The provided advisory states that the issue was unfixed as of June 16, 2026.