REDHAT-BUG-2519646: Race Condition
A race condition vulnerability exists in util-linux's SUID mount binary /usr/bin/mount. The fstab validation and permission checks for the mount target occur before the actual mount syscall executes. A local unprivileged attacker can exploit this window using renameat2(RENAMEEXCHANGE) (or equivalent ancestor directory swaps) to redirect the intended target path to an arbitrary root-owned location, such as /etc/sudoers.d, causing SUID mount(8) to mount there instead. Exploitation requires an /etc/fstab entry with the user or users option where an ancestor directory of the mount target is writable by the attacker. Affects util-linux v2.17 through v2.43-devel (unfixed as of the June 16, 2026 advisory). Reported upstream by Xinyao Hu. GHSA-8gj5-72r3-428g.
Affected Software
Event History
Frequently Asked Questions
Which systems are practically exposed to this issue?
Exposure requires an /etc/fstab entry using the user or users option and a mount target whose ancestor directory is writable by a local unprivileged user. Systems without that combination are not described as exploitable.
What access does an attacker need to exploit it?
The attacker needs local unprivileged access and the ability to swap the mount target path or one of its ancestor directories, such as through renameat2(RENAME_EXCHANGE) or an equivalent directory swap.
What is the impact of successful exploitation?
An attacker can redirect the SUID mount binary to mount on an arbitrary root-owned location, with /etc/sudoers.d given as an example. This can cause mount(8) to act on a location different from the one validated in fstab.
What can be done while a fix is unavailable?
Review /etc/fstab for entries with the user or users option and ensure that no ancestor directory of their mount targets is writable by unprivileged users. Removing those options where they are not needed also eliminates the stated prerequisite.
How can administrators identify potentially vulnerable configurations?
Inspect /etc/fstab for mount entries that permit user mounting via user or users, then check permissions on every ancestor directory leading to each configured mount target. A writable ancestor directory for an unprivileged user indicates the configuration condition required for exploitation.