accountsservice: incomplete privilege drop when running Ubuntu-specific language helper scripts
Canonical accountsservice
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Canonical accountsservice Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu 26.04 LTS, Ubuntu 26.10 |
| No fix yet |
Original 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.