REDHAT-BUG-2519647: Race Condition

Published Aug 19, 2026
·
Updated

A race condition exists in util-linux's SUID mount binary (hookowner.c). When the X-mount.owner, X-mount.group, or X-mount.mode fstab options are set, mount(8) performs a post-mount permission change (lchown()/chmod()) on the mount target path without re-verifying the path still refers to the object that was just mounted. A local unprivileged attacker can use an atomic ancestor directory swap in the window between the mount and the ownership/mode change to redirect the chown/chmod operation to an arbitrary file, gaining control of that file and potentially escalating privileges to root. Exploitation requires an /etc/fstab entry with the user option plus one of X-mount.owner/group/mode, and an ancestor directory writable by the attacker. Introduced in commit 722c96974dd4 (2022-04-19); affects util-linux v2.39 through v2.41.3 (unfixed as of the June 16, 2026 advisory). Reported upstream by Xinyao Hu. GHSA-g8wm-75wr-g2vh.

Affected Software

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

Event History

Aug 19, 2026
Data Sourced
via Red Hat·02:36 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which systems are realistically exposed to this issue?

Exposure requires a util-linux version from v2.39 through v2.41.3 and a matching /etc/fstab entry that combines the user option with X-mount.owner, X-mount.group, or X-mount.mode. The mount target must also have an ancestor directory writable by the local attacker.

2

What level of access does an attacker need?

The attacker must already have local unprivileged access and the ability to manipulate a writable ancestor directory. They exploit an atomic directory swap during the interval between mounting and the post-mount ownership or mode change.

3

Are default mount configurations affected?

The issue is not triggered by the described conditions unless an /etc/fstab entry uses both the user option and at least one of X-mount.owner, X-mount.group, or X-mount.mode. A writable ancestor directory is also required.

4

What can be done before a fix is available?

Remove the user option or the X-mount.owner, X-mount.group, and X-mount.mode options from affected fstab entries where possible. Ensure unprivileged users cannot write to ancestor directories of mount targets using those 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