REDHAT-BUG-2521999: High severity util-linux util-linux vulnerability
When an external mount.<type> helper executes but exits nonzero, libmount records the helper's failure in helperstatus yet returns success from exechelper() in contextmount.c. mntcontextdomount() then runs privileged MNTSTAGEMOUNTPOST hooks as if the helper had mounted the requested filesystem. With an /etc/fstab entry usable by an unprivileged user that specifies X-mount.idmap, the idmap post-hook clones the pre-existing filesystem under the target (inheriting suid,exec from the underlying mount because helper-path VFS-flag application is skipped), enabling a local unprivileged user to obtain EUID 0. Independently, X-mount.owner/group/mode post-hooks can change ownership and mode of the physical target inode even when no mount was created. Exploitation requires SUID-root mount(8), a root-controlled fstab entry with the user option plus X-mount.idmap or X-mount.owner/group/mode, and an external helper that exits nonzero; the helper need not be malicious. This is distinct from CVE-2026-53612 (TOCTOU in hookowner.c): there is no race or path substitution. Affects util-linux v2.39 through current master (dynamically confirmed on 2.41-5, 2.42.2-2, and 0f119878). No upstream fix as of 2026-08-24. Reported upstream by 4drez and S0S4. GHSA-m25x-3hj9-m26f.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
A local unprivileged user can exploit it when mount(8) is SUID-root and a root-controlled /etc/fstab entry is usable by that user. The relevant entry must include the user option and either X-mount.idmap or X-mount.owner, X-mount.group, or X-mount.mode.
Does exploitation require a malicious mount helper?
No. Exploitation requires an external mount.<type> helper to execute and exit with a nonzero status, but the helper itself does not need to be malicious.
What is the impact of the affected post-hooks?
With X-mount.idmap, an attacker can obtain EUID 0 because the post-hook can clone the pre-existing filesystem beneath the target with inherited suid and exec properties. Separately, the owner, group, and mode post-hooks can modify the physical target inode even though no mount was created.
How can I identify potentially affected deployments?
Review systems using util-linux versions 2.39 through current master, including the dynamically confirmed 2.41-5 and 2.42.2-2 builds. Then inspect root-controlled fstab entries usable by unprivileged users for the user option combined with the affected X-mount post-hook options.