The vendor explicitly identifies these products as affected by this CVE.
- gvfs-client as a component of Red Hat Enterprise Linux 10
- gvfs-fuse as a component of Red Hat Enterprise Linux 10
- gvfs-goa as a component of Red Hat Enterprise Linux 10
- gvfs-gphoto2 as a component of Red Hat Enterprise Linux 10
- gvfs-mtp as a component of Red Hat Enterprise Linux 10
- gvfs-smb as a component of Red Hat Enterprise Linux 10
- gvfs.src as a component of Red Hat Enterprise Linux 10
- gvfs-afc as a component of Red Hat Enterprise Linux 6
- gvfs-archive as a component of Red Hat Enterprise Linux 6
- gvfs-devel as a component of Red Hat Enterprise Linux 6
- gvfs-fuse as a component of Red Hat Enterprise Linux 6
- gvfs-gphoto2 as a component of Red Hat Enterprise Linux 6
- Summary
- 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 and exchange 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.
- Remediation
- To mitigate this issue, adjust Polkit rules to require password authentication to start gvfsd-admin or remove execute permissions of the gvfsd-admin binary to prevent execution.
