REDHAT-BUG-2531456: Race Condition

Published Sep 10, 2026
·
Updated

A flaw was found in the admin backend of gvfs. The privileged gvfsd-admin daemon changes the ownership of newly created private D-Bus sockets by calling the link-following chown() function on a pathname inside a user-controlled directory. A local attacker can exploit this via a Time-of-Check Time-of-Use (TOCTOU) race condition by using inotify to detect the socket creation, and then atomically exchanging the socket pathname with a symbolic link pointing to an arbitrary root-owned file (such as /etc/pam.d/su). The daemon subsequently follows the symlink and changes the ownership of the targeted root-owned file to the attacker's user ID. This allows an authenticated local attacker to modify critical system files, leading to a full local privilege escalation to root. This vulnerability affects gvfs versions 1.48.1 and newer.

Affected Software

1 affected component
gvfs>=undefined

Event History

Sep 10, 2026
Data Sourced
via Red Hat·01:31 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated local attacker can exploit it. The attack relies on access to a user-controlled directory and the ability to race creation of a private D-Bus socket.

2

What does successful exploitation allow?

The attacker can cause the privileged gvfsd-admin daemon to change ownership of an arbitrary root-owned file by replacing a socket pathname with a symbolic link. They can then modify critical system files and escalate privileges to root.

3

Which gvfs versions are affected?

The issue affects gvfs version 1.48.1 and newer.

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