Local Privilege Escalation in gvfsd-admin via TOCTOU Race Condition
A Time-of-Check Time-of-Use (TOCTOU) race condition in the gvfsd-admin daemon allows local attackers to perform privilege escalation by manipulating symbolic links to modify ownership of arbitrary system files.
CVE search metadata
CVE search record: CVE-2026-88924. Severity: high. CVSS: 7.0. KEV: no. Product: gvfs. Brief: Local Privilege Escalation in gvfsd-admin via TOCTOU Race Condition. Brief link: https://feed.craftedsignal.io/briefs/2026-09-gvfs-admin-lpe/
CVE-2026-88924 describes a vulnerability in the admin backend of the GNOME Virtual File System (gvfs), specifically within the privileged gvfsd-admin daemon. The daemon is responsible for managing private D-Bus sockets and improperly handles ownership changes for these sockets. By calling a link-following chown() function on a pathname located within a user-controlled directory, the daemon becomes susceptible to a TOCTOU race condition. An authenticated local attacker can monitor the creation of the socket and replace the expected socket path with a symbolic link pointing to a sensitive root-owned file, such as /etc/pam.d/su. Because the daemon follows the symbolic link during the ownership change, it inadvertently changes the ownership of the target file to the attacker, providing the attacker with write access to root-controlled system configurations. This vulnerability enables a complete local privilege escalation to root.
Attack Chain
- The attacker monitors the file system for the creation of new D-Bus sockets by gvfsd-admin within a user-accessible directory.
- The attacker identifies the specific directory path where gvfsd-admin will create the temporary socket.
- The attacker anticipates the timing of the chown() call by the privileged daemon.
- The attacker quickly removes or moves the temporary socket file created by the daemon.
- The attacker replaces the socket path with a symbolic link targeting a sensitive system file (e.g., /etc/shadow or /etc/pam.d/su).
- The gvfsd-admin daemon follows the malicious symlink and executes chown() on the target file.
- The attacker gains ownership of the target root-owned file.
- The attacker modifies the system file to insert a back door, change credentials, or execute arbitrary code with root privileges.
Impact
Successful exploitation allows an authenticated local user to gain full root privileges on systems running affected versions of gvfs. By modifying critical files like /etc/pam.d/su or /etc/passwd, an attacker can bypass authentication, create unauthorized administrative accounts, or execute persistent malicious code at the highest privilege level, effectively compromising the integrity and security of the entire operating system.
Recommendation
Prioritize the application of patches for CVE-2026-88924 as provided by the GNOME project or relevant Linux distribution maintainers. Ensure that all systems are updated to the fixed versions of gvfs. In the absence of a patch, limit local user access to the system, as the exploit requires an authenticated local session.
Immediate actions
Patch gvfs to the vendor-recommended version once available
Mitigations
Monitor for unexpected symlink creation in gvfs-related temporary directories
CVE-2026-88924