Fedora Account System
Red Hat Associate
Red Hat Customer
A flaw was found in accountsservice. The systemd-homed handler for the SetIconFile D-Bus method (user_change_icon_file_homed_authorized_cb) opens a caller-supplied path as root without the path validation and privilege drop used by the classic handler. A local user with a systemd-homed-managed account can cause accounts-daemon to read arbitrary files (for example /etc/shadow) and store their contents as the user avatar. This issue affects accountsservice versions with homed avatar support (approximately 25.34.76 through 26.13.3) and is fixed in 26.26.9 by reading avatar files as the calling user.