REDHAT-BUG-2521999: High severity util-linux util-linux vulnerability

Published Aug 24, 2026
·
Updated

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

1 affected component
util-linux util-linux>=2.39

Event History

Aug 24, 2026
Data Sourced
via Red Hat·03:06 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203