Fedora Account System
Red Hat Associate
Red Hat Customer
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process. 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.
This CVE does not affect any current Fedora version. The `user_change_icon_file_homed_authorized_cb` function was introduced in commit 697a432 ("homed: Support changing avatar"), first released in version 25.34.76. The fix landed in commit fb271c6 ("homed: Read avatar files as the caller") in version 26.26.9. Fedora 43 and 44 ship version 23.13.9, which has no homed support in user.c at all. Fedora rawhide ships version 26.27.3, which already includes the fix.