Bug 2506690

Summary: CVE-2026-16743 accountsservice: accountsservice: arbitrary file read via SetIconFile for systemd-homed users [fedora-all]
Product: [Fedora] Fedora Reporter: Ganesh <gnaik>
Component: accountsserviceAssignee: Matthias Clasen <mclasen>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: gnome-sig, lpavan, mclasen, stefw
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["24b4feb3-2dd3-4418-99ef-520418e72fdf"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-08-17 10:09:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2506381    

Description Ganesh 2026-07-24 07:56:25 UTC
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.

Comment 1 lpavan 2026-08-10 11:02:14 UTC
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.