Skip to content

CVE-2026-61897 accountsservice: incomplete privilege drop when running Ubuntu-specific language helper scripts

HighCVSS 7.8 EPSS 0.14%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

An Ubuntu-specific patch to AccountsService before 23.13.9-8ubuntu7 only partially drops privileges before launching language helper scripts. It changes the effective UID/GID to the target user but leaves the real UID as 0 (root). A shell spawned by a helper script inherits ruid=0 and may reset its effective UID to root, enabling local privilege escalation.

Upgrade path

4 packages: 4 fixed.

PackageAffectedFixed inStatus
Canonical accountsservice >= 22.07.5-2ubuntu1, < 22.07.5-2ubuntu1.6; >= 23.13.9-2ubuntu6, < 23.13.9-2ubuntu6.1; >= 23.13.9-8ubuntu5, < 23.13.9-8ubuntu5.2; >= 23.13.9-8ubuntu6, < 23.13.9-8ubuntu7 22.07.5-2ubuntu1.6, 23.13.9-2ubuntu6.1, 23.13.9-8ubuntu5.2, 23.13.9-8ubuntu7 Fixed
ubuntu/accountsservice(Ubuntu 22.04) < 22.07.5-2ubuntu1.6 22.07.5-2ubuntu1.6 Fixed
ubuntu/accountsservice(Ubuntu 24.04) < 23.13.9-2ubuntu6.1 23.13.9-2ubuntu6.1 Fixed
ubuntu/accountsservice(Ubuntu 26.04) < 23.13.9-8ubuntu5.2 23.13.9-8ubuntu5.2 Fixed

Affected products

ProductAffected versionsFixed in
Canonical accountsservice >= 22.07.5-2ubuntu1, < 22.07.5-2ubuntu1.6 22.07.5-2ubuntu1.6
Canonical accountsservice >= 23.13.9-2ubuntu6, < 23.13.9-2ubuntu6.1 23.13.9-2ubuntu6.1
Canonical accountsservice >= 23.13.9-8ubuntu5, < 23.13.9-8ubuntu5.2 23.13.9-8ubuntu5.2
Canonical accountsservice >= 23.13.9-8ubuntu6, < 23.13.9-8ubuntu7 23.13.9-8ubuntu7
ubuntu/accountsservice(Ubuntu:22.04) < 22.07.5-2ubuntu1.6 22.07.5-2ubuntu1.6
ubuntu/accountsservice(Ubuntu:24.04) < 23.13.9-2ubuntu6.1 23.13.9-2ubuntu6.1
ubuntu/accountsservice(Ubuntu:26.04) < 23.13.9-8ubuntu5.2 23.13.9-8ubuntu5.2

References